OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Can I make a XSLT not resolve CDATA sections for programlisting?


In my documents I have snippets like:

  <programlisting>
  <![CDATA[int foo = 0;
  foo++;
  ]]>

I want to keep this after running it through XSLT. xsltproc resolves it, 
so I lose the 
beginning and end markers of the CDATA section. 

This is very similar to the problem I had trying to keep entity references 
from being resolved,
which Bob Stayton helped me with a while ago.

Can I keep these CDATA sections in the XSLT output? Or is it impossible?

I know I can use external code files as illustrated at:

http://www.sagehill.net/docbookxsl/ProgramListings.html

but I'd like to keep the code listings in place if possible.

Taro


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]