[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Scope of uniqueness of generate-id()
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|