[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'?>

XSL document:
<?xml version='1.0'?>
    <xsl:output method="html" omit-xml-declaration="yes"/>
    <xsl:template match="/">
        <exsl:document href="test.html">

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">
^^^^^^^^^^^^^^^^ This shouldn't be printed out, as far as I can tell.


Jeremy Jongsma
Lead Architect
FutureSource, LLC
jjongsma futuresource com

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