Hello all
I'm using docbook for generating XHTML pages with "docbkx-maven-plugin". My
source files use the <classname> inline element with various values for the
"role" attribute. Those values appear to be ignored, since <classname> elements
are systematically translated to <code class="classname"> in XHTML.
I have read the " Generate custom class values" instructions [1]. Following the
example given there, I tried the following XSL template (I must said that I
never used XSL before):
<xsl:template match="classname[@role = 'OGC']" mode="class.value">
<xsl:value-of select="'OGC'"/>
</xsl:template>
However my <classname role="OGC"> elements are still translated to <code
class="classname">, while I'm trying to get <code class="OGC">. I verified that
the XSL is really used since it works as expected for an other task (file can be
view at [2]). I suspect that my lack of XSL knowledge is at cause. Does anyone
can see some error I'm doing?
Thanks and best regards,
Martin Desruisseaux
[1] http://www.sagehill.net/docbookxsl/HtmlCustomEx.html#CustomClassValues
[2]
http://hg.geotoolkit.org/geotoolkit/file/42a008ee622a/src/main/docbook/book.xsl
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]