Hi Bob, Wow, thank you for that information. I just downloaded and installed 1.77.1, re-ran my doc and Lo! the class value is now populated.
thanks! --Tim On Wed, Jun 27, 2012 at 1:34 PM, Bob Stayton <[email protected]> wrote: > 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 > [email protected] > > > ----- Original Message ----- From: "Tim Arnold" <[email protected]> > To: "DocBook Apps" <[email protected]> > Sent: Wednesday, June 27, 2012 10:02 AM > Subject: [docbook-apps] 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 >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
