[xslt] CDATA sections, nested entities
- From: Markus Bayerlein <bayerlein genomatix de>
- To: xslt gnome org
- Subject: [xslt] CDATA sections, nested entities
- Date: Fri, 19 Dec 2003 18:36:36 +0100
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">
&foo;</xsl:text>
var foo = <xsl:value-of select="$foo"/>;
var foo2 = text;
</script>
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.
Cheers
Markus
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]