xsl-list
[Top] [All Lists]

Re: [xsl] Scope of uniqueness of generate-id()

2008-11-20 06:51:24
Yes.
Different nodes are different nodes. Which document they are in doesn't matter.

After all, the generated ids may be used as values for an xml:id
attribute in the output, which might contain the contents of the two
temporary trees.

2008/11/20 Vladimir Nesterovsky <vladimir(_at_)nesterovsky-bros(_dot_)com>:
Hello!

Can someone please clarify the scope of uniqueness of generate-id()
function?

Spec says:
The generate-id function returns a string that uniquely identifies a given
node...
An implementation ... always generates the same identifier for the same
node and
that different identifiers are always generated from different nodes.
An implementation is under no obligation to generate the same identifiers
each time a document is transformed.

Does this mean that values of generate-id() call for two different nodes
from two different temporary trees created in the course of transformation
MUST be different?

Thanks.
--
http://www.nesterovsky-bros.com/
Vladimir Nesterovsky



--~------------------------------------------------------------------
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>
--~--



--~------------------------------------------------------------------
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>
--~--