OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] Re: [docbook] valid XHTML

According to the reference page for the generate.id.attributes parameter, 
it is supposed to be a switch that outputs id attributes and disables 
anchors, but it is "incompletely implemented".

Someone please file a bug report on the SourceForge site to get this fully 
implemented so it is useful.

Bob Stayton
Sagehill Enterprises
DocBook Consulting

----- Original Message ----- 
From: "Mauritz Jeanson" <mj@johanneberg.com>
To: "'Tomasz Przechlewski'" <tomasz@gnu.univ.gda.pl>; "'Bob Stayton'" 
Cc: "'DocBook Apps'" <docbook-apps@lists.oasis-open.org>
Sent: Tuesday, February 27, 2007 11:03 AM
Subject: RE: [docbook-apps] Re: [docbook] valid XHTML

> -----Original Message-----
> From: Tomasz Przechlewski
>     <div class="article" xml:lang="pl" id="id2656957">
>       <div class="titlepage">
>         <div>
>           <div>
>             <h2 class="title"><a id="id2656957"/>DocBook, praktyczne
>                   wykorzystanie standardu XML</h2>
>           </div>
>           <div>
> and the same is for bibliography:
>  <div class="bibliography" id="id2666002">
>         <div class="titlepage">
>           <div>
>             <div>
>               <h2 class="title"><a id="id2666002"/>Bibliografia</h2>
>             </div>
> I have transformed the document with saxon 6.5 in the meantime.
> There are no duplicate ids, which may indicate bug in xsltproc?.

I can confirm that duplicate IDs are emitted when generate.id.attributes=1
(using the stock 1.72.0 stylesheets). I don't think it is due to an XSLT
processor bug. Both Saxon and xsltproc generate duplicate IDs.

The first id attribute for an article is generated by the template with
match="article" in component.xsl (by calling the "object.id" template).
The second id attribute is generated by the template with
name="component.title" in component.xsl (by calling the "anchor" template 

> saxon inserts lot of silly namespaces declarations, like:
> <a xmlns:.0="" .0:href="#Ray2001" .0:title="Nauka języka

I cannot reproduce this.


To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]