Subject: Re: Re: Creating a XSL to return the input
From: Daniel Veillard <daniel@xxxxxxxxxxxx>
Date: Wed, 5 Mar 2003 00:00:34 +0100
|
On Tue, Mar 04, 2003 at 09:19:57PM +0000, David Carlisle wrote:
>
> > so, remind me again -- which one is behaving correctly?
>
> PIs should be copied
> Comments should be copied if they are there but an XML parser is allowed
> not to report comments at all in which case no comment nodes will appear
> in the source tree at all, in which case they won't be copied.
Libxml2 provides both PIs and comments in the parsed document
provided to libxslt, so both will be available. Libxslt
allows processing-instructions() and comments() based templates,
this case for node() is just an oversight. Sorry about this...
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard@xxxxxxxxxx | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|