This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: XInclude doesn't validate with xmllint


At 16:00 2002 12 03 +0300, Vitaly Ostanin wrote:
>On Tue, 03 Dec 2002 07:30:03 -0500
>Norman Walsh <ndw@nwalsh.com> wrote:
>> Base URIs have no bearing on ID values.
>
>ID values used for linking and must be uniq, right?

It is a validation error if there are duplicate IDs
in a document.

>In modular set of docbook/xml after processing XInclude some
>documents may to have duplicates of ID. 

True, and this would be a validation error.  The same is
true if you used external parsed entities.  XInclude does
nothing to solve the ID uniqueness problem.  

In particular, if you reuse the same chunk of XML in two places 
in the same document and any element therein contains an ID, you
will end up with a document that is not valid (whether you
use external parsed entities or XInclude).

>I think what using 
>'xml:base' + 'filename' + 'id'
>can produce uniq values as result. 

Maybe, but that isn't how things work in XML.

paul


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]