[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Re: [docbook] valid XHTML
Thanks for prompt response. The document is fairly simple one: an article containing a few sec1 elements and a bibliography; resulting XHTML has identical id attributes attached to very first h2 element: <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?. Saxon also generates empty elements using <script ...></script>, or <a id=''></a> notation which is more healthy for some browsers, but at the same time saxon inserts lot of silly namespaces declarations, like: <a xmlns:.0="" .0:href="#Ray2001" .0:title="Nauka języka XML">[Ray2001]</a> the problem which I am not able to cope with. --tomasz przechlewski PS: I have put the whole stuff (23Kb zip, document + stylesheets) at http://gnu.univ.gda.pl/~tomasz/Download/tmp/ On Sat, 17 Feb 2007, Bob Stayton wrote: > [oops, forgot to change the address to docbook-apps. Please respond to this > one] > > [moving this over to docbook-apps where such topics are discussed] > > Hi, > You should not be getting duplicate ids in the output, unless there are > duplicate ids in the input. I'm pretty sure that all instances of id > attributes in the output are produced using the template named "object.id". > That template copies the input id if there is one, or uses the XSLT > generate-id() function if there isn't one, and that function produces > unique ids for each input element. I'm wondering if some input element is > being processed twice and getting the same id in the output? Can you post > a short example output with duplicate ids? > > > Bob Stayton > Sagehill Enterprises > DocBook Consulting > bobs@sagehill.net > > > ----- Original Message ----- > From: "Tomasz Przechlewski" <tomasz@gnu.univ.gda.pl> > To: <docbook@lists.oasis-open.org> > Sent: Saturday, February 17, 2007 5:43 AM > Subject: [docbook] valid XHTML > > > > Hi, > > > > Proceeding along recommendations from chapter 24 of DocBook XSL: The > > Complete Guide, I have managed to get `almost' valid XHTML > > using 1.72.0 of the xslstylesheets and xsltproc. The > > most serious problem encountered was that resulting xhtml document > > contains id attributes that are not unique. > > Is this a known bug or I have missed something in my > > customization layer? > > > > Regards > > > > --tp > > > > The customization layer used is included below (relevant part of it) > > > > <?xml version='1.0' encoding="iso-8859-2" ?> > > <xsl:stylesheet > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > > xmlns="http://www.w3.org/1999/xhtml" > > version="1.0" > > > <xsl:import > > href="/usr/local/sgml/stylesheets/xmldocbook/1.72.0/xhtml/docbook.xsl"/> > > > > <xsl:output method="xml" > > doctype-public="-//W3C//DTD XHTML 1.1//EN" > > doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" /> > > <xsl:param name="css.decoration" select="0"/> > > <xsl:param name="ulink.target" select="''"/> > > <xsl:param name="make.graphic.viewport" select="0"/> > > <xsl:param name='html.longdesc' select='0'/> > > <xsl:param name="generate.id.attributes" select="1" /> > > > > etc... > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org > > For additional commands, e-mail: docbook-help@lists.oasis-open.org > > > > > > > > > > --------------------------------------------------------------------- > 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]