xsl-list
[Top] [All Lists]

[xsl] namespace xmlns="http://www.w3.org/1999/xhtml"

2007-01-13 20:21:34
Hello,

 I have been reading the FAQ entry:
[XHTL to fo, namespace problems.]
http://www.dpawson.co.uk/xsl/sect2/N5536.html#d6784e1669
 I thought this would work for me, but I can't get any output using
(1). My xml is the following:

<html xmlns="http://www.w3.org/1999/xhtml";>
<head>...</head>
<body>...</body>
</html>

and my xsl file (according to the FAQ) is:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
               xmlns="http://www.w3.org/1999/xhtml";>
<xsl:template match="/">
   <xsl:for-each select="html/body">
     <xsl:value-of select="."/>
   </xsl:for-each>
</xsl:template>
</xsl:stylesheet>

Am I doing something wrong here ?

Thanks again !
(1)
$ xsltproc --version
Using libxml 20627, libxslt 10119 and libexslt 813
xsltproc was compiled against libxml 20627, libxslt 10119 and libexslt 813
libxslt 10119 was compiled against libxml 20627
libexslt 813 was compiled against libxml 20627

--
Mathieu

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>