[xslt] CDATA sections, nested entities

Hi all.

I installed libxml2-2.6.3 and libxslt-1.1.1 (Tru64 Unix V5.1) and ran
into following problems with xsltproc:

xsltproc seems to ignore the "cdata-section-elements" attribute of the
<xsl:output> element

xsltproc did not proprely dereference nested entities, i.e. specifying
<!ENTITY bar "bar"> 
<!ENTITY foo "var foo = &bar;">
and dereferencing &foo; resulted in 

var foo =

("bar" was omitted)

Placing the entity reference in between <xsl:text> tags and disabling
output escaping like this:

  <xsl:text disable-output-escaping="yes">
  var foo = <xsl:value-of select="$foo"/>;
  var foo2 = text;

even resulted in

compilation error: file testcase5.xsl line 27 element text
xsltParseTemplateContent: xslt:text content problem

With xmllint the nested substitution worked.

I did not experience this behavior with libxml-2.4.26 and
libxslt-1.0.22, which I had installed before.



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