xsl-list
[Top] [All Lists]

Re: [xsl] question about generate-id()

2010-08-08 11:29:12
The spec explicitly says "There is no guarantee that a generated
unique identifier will be distinct from any unique IDs specified
in the source document.".

Yes. agreed, that is the bummer. Why not? James isn't normally so
sloppy.

Wouldn't the processor have to eagerly load all input documents just
in case any specified existing ids, before it could generate an id
that didnt clash?  Wouldn't that sort of thing prevent streaming?
Maybe that's why there is the caveat, amazing foresight...  :)

Or perhaps the intention of generate-id() is for node identity and not
for use in you own markup... for that you should use your own values.



-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--