[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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


Subject: Re: [xsl] namespace xmlns="http://www.w3.org/1999/xhtml"
From: "CyberSpace Industries 2000 Inc." <csi2000@xxxxxxxxxxxxxxx>
Date: Sat, 13 Jan 2007 23:51:39 -0500

That would depend on what you were expecting to get as output. Your stylesheet appears to output the concatented value of all descendent text() nodes of body ( untagged). If that is what you wanted - all is OK - but I expect you were trying for something else.

Your problem does not appear to have anything to do with namespaces. The reference you point to tells you how to get rid of extraneous namespace declarations like <p xmlns="">.... </p>.


Cheers....Hugh CyberSpace Industries 2000 Inc. XML Training and Consulting

----- Original Message ----- From: "Mathieu Malaterre" <mathieu.malaterre@xxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Saturday, January 13, 2007 10:21 PM
Subject: [xsl] namespace xmlns="http://www.w3.org/1999/xhtml"



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


Current Thread
Keywords