[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Adding custom attributes to body and table
Hi Robert,
The body element is easy, see:
For tables, not so easy. You would need to
copy this template from xhtml/table.xsl to your customization
layer:
<xsl:template match="d:tgroup"
name="tgroup">
(remove the d: namespace if you are using DocBook 4
instead of DocBook 5). That is the template that generates the
<table> element for CALS tables. Unfortunately, it is a pretty big
template because of all the other attributes it handles. You would need to
add something like this after the opening table tag:
<xsl:if test="@userlevel">
<xsl:attribute
name="userlevel">
<xsl:value-of
select="@userlevel"/>
</xsl:attribute>
</xsl:if>
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]