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: [docbook-apps] add 'id' afterwards automatically


> 
> IMHO generate-id(node-set) will generate a unique id for each given 
> node-set. It always use the context node if no node-set is given.
> so there is no need to run it recursivly. 

generate-id() is not guarantied to generate an identifier unique for the document.
It is only guarantied to produce a different string for each node. If another node already
has the same id as one just generated, there will be duplicate identifiers in the result.

> 
> Just use a stylesheet like this (not tested):
> 
....
> It should do the job.
> 

It won't.

David Tolpin
http://davidashen.net/

To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


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