This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Re: XML V. 1.58.1: The ID d0e2346 already exists inthe document (Solution)
- From: Andy Jewell <andy_jewell at fanniemae dot com>
- To: Norman Walsh <ndw at nwalsh dot com>
- Cc: Stephan Wiesner <stephan at stephan-wiesner dot de>,"docbook-apps at lists dot oasis-open dot org" <docbook-apps at lists dot oasis-open dot org>
- Date: Fri, 17 Jan 2003 08:23:58 -0500
- Subject: Re: DOCBOOK-APPS: Re: XML V. 1.58.1: The ID d0e2346 already exists inthe document (Solution)
- Organization: Fannie Mae
- References: <3E1ED264.2020206@stephan-wiesner.de><3E1EE29B.2030608@stephan-wiesner.de> <877kd45ycb.fsf@nwalsh.com>
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-----