This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: Uniq values of "ID" attributes
- From: Dave Pawson <daveP at dpawson dot freeserve dot co dot uk>
- To: Vitaly Ostanin <vyt at vzljot dot ru>
- Cc: docbook at lists dot oasis-open dot org
- Date: Sun, 28 Jul 2002 18:49:33 -0700
- Subject: Re: DOCBOOK: Uniq values of "ID" attributes
- References: <5.1.1.6.2.20020728154131.01f7a828@pop.freeserve.net>
At 08:06 28/07/2002, Vitaly Ostanin wrote:
>>>It's possible to do common attribute "id" uniq not for all document, in some levels only ?
>>No, the id values must be unique to the whole document you are parsing.
>
>Then authors of modular documents must to use long name values for id's. And this names will depend of document's structure :( Ok.
Having seen what docbook stuff uses, I steal those ideas.
E.g. a chapter on subject pages,
<chapter id='pgs'>
then
<example id='pgs.ex.1'>
etc,
so the names relate to the subject?
>May be usable adding element for use XPointer or XLink functionality ?
>
>>>2.
>>>It's possible to add <fallback> element within <xref> element ? And also for all idref's attributes?
>>I don't think so, but I'm not sure I understand.
>>Do you have an example?
>
>Sorry. In XInclude within element <xi:include> exist element <xi:fallback> for control errors of includes.
I will wait for someone else to answer that one!
I have tried olink, but not include.
>In DocBook DTD "idref" attributes point to "id" which must exist, right?
Yes, at parse time.
> It's possible to add element, which will control situation when "id" not exist in current edition ? "id" may be visible after join of documents.
No. Its an error if the id does not exist at parse time.
Perhaps olink would help.
http://www.sagehill.net/OlinkExtended.html
may give you some help.
regards DaveP.