[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] how do i get a common parent with a unique id?
On Nov 14, 2007 11:30 AM, Bob Stayton <bobs@sagehill.net> wrote:[moving this over to the docbook-apps mailing list where such topics are
discussed]
I think when Norm Walsh designed the nested div elements in the titlepage
mechanism for HTML, he was allowing for customization of attributes at each
level of nesting. But since most people don't do such customization with
XSL (they use CSS instead), then they become a lot of baggage. This
customization trims down section output a bit:
<xsl:template name=" section.titlepage">
<xsl:call-template name="section.titlepage.before.recto"/>
<xsl:call-template name="section.titlepage.recto"/>
<xsl:call-template name="section.titlepage.before.verso "/>
<xsl:call-template name="section.titlepage.verso"/>
<xsl:call-template name="section.titlepage.separator"/>
</xsl:template>
<xsl:template match="section" mode=" class.attribute">
<xsl:attribute name="id">
<xsl:call-template name="object.id"/>
</xsl:attribute>
</xsl:template>
It looks correct, but isn't working for me:
<div class="section" lang="en" xml:lang="en">
<h2 class="title" style="clear: both"><a id="the_title"></a>Title</h2>
<p>The description</p>
</div>
I want to remove that <a id> generation and put the id on the outer <div>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]