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: Re: [docbook-apps] adding a class value for html

Hi Tim,
Nothing wrong with your template, but with version 1.76.1. There was a bug related to the $phrase.propagates.style parameter that interfered with such customizations. That bug is fixed in 1.77.1.

Bob Stayton
Sagehill Enterprises

----- Original Message ----- From: "Tim Arnold" <jtim.arnold@gmail.com>
To: "DocBook Apps" <docbook-apps@lists.oasis-open.org>
Sent: Wednesday, June 27, 2012 10:02 AM
Subject: [docbook-apps] adding a class value for html

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

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'" />

but I get this in the HTML:

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?

--Tim Arnold

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]