Hello all,

I've written an xsl stylesheet to serve as customization stylesheet for a docbook document. The goal is to insert some php code into the generated (html) documentation. For that to happen I need my stylesheet to output php tags, like this:
<?php
into the generated html. It's the < that is causing me troubles. My first try was to put it in a CDATA section, like this:
<![CDATA[
<?php
]]>
and that worked for me, but it turned out that someone else, with a newer version of xsltproc, got a different output than I did: he got
&lt;?php
(the < was escaped). So I upgraded my xsltproc to the latest version and then I got the same problem. Now, my questions are:


1.) Is this behaviour ok? Should a < in a CDATA section be escaped to &lt;?
2.) What other options do I have to reach my goal? I've tried <xsl:text> but that (as I expected) didn't help.


The bug report with the original stylesheet and the message that it didn't work can be found in the gnome bugzilla, see http://bugzilla.gnome.org/show_bug.cgi?id=168030. Thanks for any help in this.


cheers,

roel
_______________________________________________
xslt mailing list, project page http://xmlsoft.org/XSLT/
[email protected]
http://mail.gnome.org/mailman/listinfo/xslt

Reply via email to