Hi,
You can use xsl:choose inside an xsl:attribute element because the attribute-set is
evaluated on each instance of usage. For an example, see:
http://lists.oasis-open.org/archives/docbook-apps/201106/msg00084.html
In this case, you want the test to be something like <xsl:when
test="self::d:caution">yellow</xsl:when> (omit the d: if DocBook4).
Bob Stayton
Sagehill Enterprises
[email protected]
----- Original Message -----
From: "Parker, Joel J. K. (GSFC-5950)" <[email protected]>
To: <[email protected]>
Sent: Wednesday, November 02, 2011 1:12 PM
Subject: [docbook-apps] Different attribute-sets for note, caution, info, etc.
Is there an easy canned way to get different attribute-sets for the different
admonitions (note, caution, info, ...)?
Specifically, I want each to have a shaded box, and I'd like to alter the color based
on the "severity" of the admonition.
Thanks,
--
Joel J. K. Parker
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]