[xslt] <exsl:document> problems



When I use <exsl:document> in my stylesheet, it is simply output by libxslt as regular markup (it shows up as text in the result document).

I'm using libxslt-1.0.33. xsltproc --dumpextensions shows {http://exslt.org/common}document registered as an element. But it seems to be treating it as just another regular element.

I've searched the web all day without finding a possible cause. Hopefully someone here can help?

XML, XSL, and transformation output are below.

XML document:
-------------
<?xml version='1.0'?>
<test>
    <name>value</name>
</test>

XSL document:
-------------
<?xml version='1.0'?>
<xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
    xmlns:exsl="http://exslt.org/common";
    version="1.0">
    <xsl:output method="html" omit-xml-declaration="yes"/>
    <xsl:template match="/">
        <exsl:document href="test.html">
            <xsl:apply-templates/>
        </exsl:document>
    </xsl:template>
</xsl:stylesheet>

Transformation result of "xsltproc test.xsl test.xml", which was printed to STDOUT, not to test.html:
----------------------------
<exsl:document xmlns:exsl="http://exslt.org/common"; href="test.html">
value
</exsl:document>
^^^^^^^^^^^^^^^^ This shouldn't be printed out, as far as I can tell.


-j

--
Jeremy Jongsma
Lead Architect
FutureSource, LLC
jjongsma futuresource com
http://www.futuresource.com


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]