On Nov 19, 2007 10:43 AM, Anthony Ettinger <[EMAIL PROTECTED]> wrote:
>
>
> On Nov 14, 2007 11:30 AM, Bob Stayton <[EMAIL PROTECTED]> 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>
>
>
I've managed to get the <h2> correct, but putting the id on the div is not
working...it seems to not get parsed with mode="class.attribute".
I removed it, and then I get an error that attributes cannot be added after
children have already been inserted.
Anthony Ettinger
Ph: 408-656-2473
var (bonita, farley) = new Dog;
farley.barks("very loud");
bonita.barks("at strangers");
http://chovy.dyndns.org/resume/
http://utuxia.com/consulting