Re: [xslt] Text inside CDATA being converted to character entities by xsltproc
- From: Daniel Veillard <veillard redhat com>
- To: Paul Giannaros <ceruleanblaze gmail com>, The Gnome XSLT library mailing-list <xslt gnome org>
- Cc:
- Subject: Re: [xslt] Text inside CDATA being converted to character entities by xsltproc
- Date: Sun, 31 Oct 2004 10:02:46 -0500
On Thu, Oct 28, 2004 at 11:17:43PM +0100, Paul Giannaros wrote:
> Hi,
> Is xsltproc supposed to convert text inside a CDATA section into
> character entites?
> For example,
> <![CDATA[<pitch base="40%">]]>
> Outputs
> <pitch base="40%">
>
> Is this meant to be happening? If so, does xsltproc provide an option
> for not processing the text inside a CDATA section?
XSLT use the XPAth data model as the conceptual representation of a
document. In the XPath data model there is no representation for CData
sections. It will be processed once parsed like any other text node.
http://www.w3.org/TR/xpath#section-Text-Nodes
In general nothing replace reading the specs to understand the behaviour
of the tools ;-)
As for an extension of libxslt it not in order, but you may want to read
http://www.w3.org/TR/xslt#section-XML-Output-Method
especially the paragraph on "cdata-section-elements",
Daniel
--
Daniel Veillard | Red Hat Desktop team http://redhat.com/
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]