[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Selecting text styles for elements within <indexterm>
Typical markup is: <indexterm class="startofrange" xml:id="abstract"> In the autoindex, I only want to style the text contained within the <literal> tags as font-family “monospace”, but all of the text within the <primary> element is styled as monospace. My customization in <xsl:template match="d:indexterm" mode="index-primary"> is: <xsl:choose> As
you can see, for
d:primary/d:literal, I’m attempting to style only d:literal as
monospace, and for
any text following that (within d:primary) as normal text. So,
I’m trying to separate
text in d:primary/d:literal from all other text within
d:primary so I can apply
two types of font styles. The _expression_ "d:primary[not(child::d:literal)]”
doesn’t
generate the text outside of d:literal. Is
there an XPath _expression_ to achieve this? --
Dave Gardiner |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]