[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK-APPS: Re: XML V. 1.58.1: The ID d0e2346 already exists inthe document (Solution)
I've had the same error in a similar circumstance. It only started when I began assigning ID's to my important sections (sect1-3, procedures). What I have in the original document is an end reference as a Word bookmark in plain text (e.g., "refid_parta_of_the_document"). I then make this the end point of an XREF. I never had the error until I started processing the document as HTML as well as FO/PDF. Because of the former, I needed to put IDs on all the sections: <xsl:template match="paragraph[@class='sec1title']"> <sect1> <!--<xsl:attribute name="id"><xsl:value-of select="generate-id()"/></xsl:attribute>--> <!-- fill in current title --> <title> <xsl:if test="child::reference"> <xsl:attribute name="id"> <xsl:value-of select="reference[substring(@id,1,5)='refid']/@id"/> </xsl:attribute> </xsl:if> If I remove the ID attribute (as it is now) - it works fine. What I assumed was happening was that the sect1 paragraph and the title paragraph would, for the purposes of generate-id()-ness, be the same. So XSL-FO was probably trying to turn plain-text Title element ID into a generate-id() and discoverying that it had already been used by the sect1 ID. Hope that helps identify the issue. -- Andy Norman Walsh wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > / Stephan Wiesner <stephan@stephan-wiesner.de> was heard to say: > | Uups, sorry, my mistake. > | I referenced a section with the linkend element. This got copied by > | the link and therefore I had to IDs. I did want to reference only the > | title (sec_AppendixManagerT) of the section, not the whole one > | (sec_AppendixManager). > > Can you provide a small example? A linkend reference shouldn't cause > a duplicate ID. > > Be seeing you, > norm > > - -- > Norman Walsh <ndw@nwalsh.com> | Exuberance is beauty.--Blake > http://www.oasis-open.org/docbook/ | > Chair, DocBook Technical Committee | > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/> > > iD4DBQE+J2PjOyltUcwYWjsRAv95AJ4+Syies5c2gJkpWz718F6uvZa5qQCY3Xoi > d31/4/Tkgt0YTvsVLT++sw== > =oyhk > -----END PGP SIGNATURE-----
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC