This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: XML V. 1.58.1: The ID d0e2346 already exists in thedocument (Solution)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
/ Andy Jewell <andy_jewell@fanniemae.com> was heard to say:
| 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']">
"paragraph" isn't a DocBook element.
| <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.
The paragraphs are only the same if they are the same.
| Hope that helps identify the issue.
I am completely confused about what you're trying to accomplish. It looks
like you're generating DocBook from something else. Is that the case? Are
you processing paragraph twice?
Be seeing you,
norm
- --
Norman Walsh <ndw@nwalsh.com> | Life does not cease to be funny
http://www.oasis-open.org/docbook/ | when people die anymore than it
Chair, DocBook Technical Committee | ceases to be serious when people
| laugh.--George Bernard Shaw
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>
iD8DBQE+KBHsOyltUcwYWjsRAqkZAJ4ohBdaemJIzwxDadv8pOkJCHpISACggeS4
pn8nwNZXYfIcKAJnkVkUKAk=
=Ggp9
-----END PGP SIGNATURE-----