"fake" added in nodesets (was Re: [xslt] Release of libxslt-1.0.5)



Hi,

Bernhard Zwischenbrugger wrote:

> # xsltproc test.xslt one.xml
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <fake>
>   <eins>
> <content>content of one</content>
> </eins>
> </fake>


Actually, the addition of a "fake" element in node sets converted from 
RTF using the nodeset extension function is something which makes it 
incompatible with other implementations and I was wondering if this 
should be reported as a bug.

I guess that it's a way to deal with multi rooted RTFs, but this is 
(also) an element of incompatibility with other implementations of exslt 
as shown by this simple test:

xslt:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:exsl="http://exslt.org/common"
	extension-element-prefixes="exsl">
	<xsl:variable name="rtf"><test/></xsl:variable>
	<xsl:template match="/">
		<xsl:copy-of select="exsl:node-set($rtf)"/>
	</xsl:template >
</xsl:stylesheet>

Result (with any source doc) using libxslt:
<?xml version="1.0"?>
<fake><test/></fake>

Result with Saxon:
<?xml version="1.0" encoding="utf-8"?><test/>

This is obviously not at all the same result document (not even the same 
document type!).

Should this be considered as a bug?

Eric
-- 
Rendez-vous à Paris pour une visite guidee de la nebuleuse XML.
                                           http://dyomedea.com/formation/
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
http://xsltunit.org      http://4xt.org           http://examplotron.org
------------------------------------------------------------------------





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