Subject: Re: [xsl] Scope of uniqueness of generate-id() From: "Colin Adams" <colinpauladams@xxxxxxxxxxxxxx> Date: Thu, 20 Nov 2008 11:51:02 +0000 |
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@xxxxxxxxxxxxxxxxxxxx>: > 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Scope of uniqueness of genera, Vladimir Nesterovsky | Thread | Re: [xsl] Scope of uniqueness of ge, David Carlisle |
RE: [xsl] <xsl:call-template> XSLT , Pankaj Chaturvedi | Date | Re: [xsl] Scope of uniqueness of ge, David Carlisle |
Month |