<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 08/01/2012 08:37 AM, Kendall Moore
wrote:<br>
</div>
<blockquote
cite="mid:CAOfcVFVeTwVSRnPkkU50bhuRLinxTx0KveDYJD8dCT25PkMQGA@mail.gmail.com"
type="cite">Hello Publican users,<br>
<br>
I'm currently stuck trying to do something I would have guessed to
be a simple task. I have a set of two books, and some of the
content for them I would like to be shared between the books. I
created a directory for the common content (at the same level as
the directories for the two books) and put the XML files which
contain sections in it. Now, when I try to use an xi:include to
grab these sections in each of the books, I get an error trying to
run publican with the '--formats=test' option. The issue seems to
be that some of the tags inside of these common files have IDs,
and each book attempts to import the IDs into its own namespace
but fails to do so because the IDs aren't unique. Specifically,
the error(s) look like the following:<br>
<br>
../common/<some_xml_file>:6: validity error : ID
<some_id> already defined<br>
<br>
If I remove all of the IDs from these common files then there is
no issue, but unfortunately that is not an option for me. I link
to the pieces with IDs other places by way of xrefs and need an ID
to do so (or at least that's my understanding).<br>
<br>
Any help on the subject is greatly appreciated!<br>
<br>
--<br>
Kendall
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
Hi Kendall, yes you need an ID to be the target for an xref.<br>
<br>
You didn't state it, but are you including your common content more
than once in the same book?<br>
<br>
If you give some more specifics about your use case (maybe even some
sample code) I can give some suggestions - I've worked around this
issue several times with different strategies.<br>
<br>
- Josh<br>
</body>
</html>