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: adding a class value for html


hi,
I have a DocBook 5 element with a remap= attribute that I'm trying to
pass on as a class value to the html, using the 1.76.1 namespaced
stylesheets.

The XML element looks like this:
<phrase remap="Mathtext">t</phrase>

The template:
  <xsl:template match="d:*[@remap='Mathtext']" mode="class.value">
    <xsl:value-of select="local-name(.)" />
    <xsl:value-of select="' mathtext'" />
  </xsl:template>

but I get this in the HTML:
<span>t</span>

I don't claim to fully understand my xsl template--I copied it from a
similar example in the book. I suppose my cargo-cult style of
programming is wrong, but I don't know how.

Can someone enlighten me please?

thanks,
--Tim Arnold


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