Re: [xslt] Text inside CDATA being converted to character entities by xsltproc

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
> &lt;pitch base="40%"&gt;
> 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.
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
especially the paragraph on "cdata-section-elements",


Daniel Veillard      | Red Hat Desktop team
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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