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

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

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


Subject: Re: [docbook] How to decrease font in the code examples


Well, no.  The processing instruction would be applied to the whole 
programlisting, because that is the level at which the attribute-set is 
applied.  In any case, I believe any markup inside CDATA would not be 
recognized in an XPath select statement.

If you want to emphasize only certain content, then I don't think you can 
use CDATA.  You could remove the CDATA and replace "<" with "&lt;", then 
you could wrap any words in <emphasis role="strong"> to make it bold.

If you just want to
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Markus Innerebner" <markus@innerebner.net>
Cc: "Bob Stayton" <bobs@sagehill.net>; <docbook@lists.oasis-open.org>
Sent: Wednesday, May 16, 2007 10:50 AM
Subject: Re: [docbook] How to decrease font in the code examples


> Sorry for the bad code format.
> now I correct it.
>
> <programlisting>
> <![CDATA[
> <root>    <?db-font-weight="bold"?>
>   <child id="123"/>
> </root>
> ]]>
> </programlisting>
>
>
> <xsl:attribute-set name="monospace.verbatim.properties">
> <xsl:attribute name="font-weight">
>   <xsl:choose>
>      <xsl:when test="processing-instruction('db-font-weight')">
>       <xsl:value-of select="processing-instruction('db-font-weight')"/>
>      </xsl:when>
>     <xsl:otherwise>inherit</xsl:otherwise>
>   </xsl:choose>
> </xsl:attribute>
> </xsl:attribute-set>
>
> 




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