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
[EMAIL PROTECTED]


----- Original Message ----- From: "Markus Innerebner" <[EMAIL PROTECTED]>
Cc: "Bob Stayton" <[EMAIL PROTECTED]>; <[email protected]>
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>





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to