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



On Wed, Oct 10, 2001 at 03:57:24PM +0200, Eric van der Vlist wrote:
> 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.

  argh ... "fake" is back, I hoped to have killed it this summer :-\

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

  Okay one more bug ...
  
> 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?

  yes, <grin/>

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard@redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/




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