Re: [xslt] CDATA sections, nested entities



On Wed, Jan 07, 2004 at 03:26:14PM +0100, Markus Bayerlein wrote:
> However, xsltproc still ignores the cdata-section-elements attribute:
> <xsl:stylesheet version="1.0" 
>                 xmlns="&svgns;" 

   default namespace

>                 xmlns:xsl="&xsltns;"
>                 exclude-result-prefixes="xsl">
> 
> <xsl:output method="xml" indent="yes" encoding="iso-8859-1" standalone="yes"
>             cdata-section-elements="script"/>

   script -> no namespace indicated so applies only to element
             named script in no namespace.

> <xsl:variable name="foo" select="'bar'"/>
> 
> <xsl:template match="/">
>   <script type="text/ecmascript">

  script is in a namespace, the one from "&xsltns;"

Not a bug, you misunderstood the XSLT spec IMHO.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.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]