OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: class.value mode with multiple values

hi, I have an element that I want to have multiple class values by matching in class.value mode.

I've read this doc, but still not sure how to proceed:

Currently I have these two templates:
<xsl:template match="d:term" mode="class.value">
  <xsl:value-of select="'AAterm'" />

<xsl:template match="d:*[@conformance='experimental']" mode="class.value">
  <xsl:value-of select="local-name()" />
  <xsl:value-of select="' AAexperimental'" />

My DocBook source has a <term conformance="experimental">; it seems that the last template wins so this is the result:
  <dt class="term AAexperimental">
but I need 
  <dt class="AAexperimental AAterm">

the attribute conformance="experimental" can appear on multiple element types, (e.g., section, term)

How to get the two templates to work together?


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]