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
[EMAIL PROTECTED]
----- Original Message -----
From: "Mauritz Jeanson" <[EMAIL PROTECTED]>
To: "'Tomasz Przechlewski'" <[EMAIL PROTECTED]>; "'Bob Stayton'"
<[EMAIL PROTECTED]>
Cc: "'DocBook Apps'" <[email protected]>
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
in
html.xsl).
saxon inserts lot of silly namespaces declarations, like:
<a xmlns:.0="" .0:href="#Ray2001" .0:title="Nauka języka
I cannot reproduce this.
/MJ
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]