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


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: Uniq values of "ID" attributes


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.



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