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

Subject: Re: [xsl] question about generate-id()
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Sun, 8 Aug 2010 17:29:02 +0100
>> > > 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

Current Thread