[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Different attribute-sets for note, caution, info, etc.
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.htmlIn 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 bobs@sagehill.net----- Original Message ----- From: "Parker, Joel J. K. (GSFC-5950)" <joel.j.k.parker@nasa.gov>
To: <docbook-apps@lists.oasis-open.org> 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: docbook-apps-unsubscribe@lists.oasis-open.org For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]