xsl-list
[Top] [All Lists]

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

2007-01-13 21:51:57
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(_dot_)malaterre(_at_)gmail(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
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

--~------------------------------------------------------------------
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>
--~--



--~------------------------------------------------------------------
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>