[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] Adding attributes/parameters to the "<para>" template?
<
xsl:template match="para[@pm='+++']"><
xsl:param name="pm" select="self::*[@pm][1]/@pm"/><
fo:inline><
xsl:value-of select="$pm"/></xsl:apply-templates></
fo:inline></
xsl:template>
If <para> has no pm attribute this template would be ignored.
<
xsl:template match="strict_para[@pm] != 'xxx' "></
xsl:template>The above would catch any use of <strict_para> that didn't have an attribute pm which equals 'xxx'.
A good place to read up on XSLT: http://en.wikipedia.org/wiki/XSLT
Hope that helps,
David White
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]