[xsl] Which xmlns:xsl to use ?

Subject: [xsl] Which xmlns:xsl to use ?
From: "Dudu Oz" <duduoz@xxxxxxxxxxxxxx>
Date: Tue, 20 Mar 2001 11:11:59 +0200
Hi
I do not know which xmlns:xsl to use
This is a simple xsl file (aaa.xsl):

<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
<!--xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"-->
<xsl:template match="/">
<html><head>
<title><xsl:value-of select="book/tit[1]"/> - OZ</title>
</head><body bgcolor="orange"></body></html>
</xsl:template>
</xsl:stylesheet>

This is a simple xml file (aaa.xml) that I would like to transform to html

<?xml version="1.0"?>
<?xml-stylesheet  href="aaa.xsl" type="text/xsl" ?>
<book>
    <tit>This is title1</tit>
    <tit>This is title2</tit>
    <tit>This is title3</tit>
</book>



The line
<title><xsl:value-of select="book/tit[1]"/> - OZ</title>
is the line that should build the title in the html file.

When I use the blue declaration
<!--xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"-->
it works
but when I use the declaration
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
it does not work-
Instead of building the title:
This is title2 - OZ
it put the title:
<xsl:value-of select="book/tit[1]"/> - OZ

So what is wrong? What declaration should I use according to what rule ?
(and which xnlns:fo should I use ?)

Thanks
	David

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread