Next in thread → Next in month →

Re: [docbook-apps] include pretty printed program listings

From
Markus Spath <>
Date
2004-02-28T11:24:54+00:00
ID
Thread
Re: [docbook-apps] include pretty printed program listings
ok, I found a solution:

in my customization layer for profile.xsl:

<xsl:template match="programlisting[@condition = 'verypretty']">
   <xsl:copy-of select="./node()"/>
</xsl:template>

will produce what I want;

Markus



BTW: please ignore if my previous posting pops up again, I mistakenly posted it 
from another account first.

sorry for the noise ;)




Markus Spath wrote:
> is it possible to have external html-ized pretty printed code displayed 
> 'as is' using the docbook xsl stylesheets?
> 
> something like:
> 
> 
>   <programlisting condition="plain">
>     <xi:include  href="foo.rb"  parse="text" />
>   </programlisting>
> 
>   <!-- will be copied into the result tree without being escaped -->
>   <programlisting condition="verypretty">
>     <xi:include  href="foo.rb.html" />
>   </programlisting>
Next in thread → Next in month →