Subject: RE: Duplicates From: Kay Michael <Michael.Kay@xxxxxxx> Date: Mon, 21 Feb 2000 10:09:43 -0000 |
> Can anyone tell me what is meant here by the word > 'duplicates'? When is a node considered a duplicate of another node? Loosely, two nodes are duplicates if they are derived from the same syntactic unit of the same source XML document. (I don't like "two nodes are duplicates", as they are then one node, but I did say "loosely".) It's based on identity, not on the node's string-value. There are some special rules to refine this definition: - namespace nodes are copied between elements rather than being shared - "the same source XML document" means "accessed using an identical URI". The root nodes returned by document("books.xml") and by document("BOOKS.xml") are different nodes, even if they both URIs retrieved the same file. Mike Kay PS: Saxon 5.2 has an extension function distinct() which eliminates nodes from a node-set that have a duplicate string-value. Another way of doing grouping. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Duplicates, David Carlisle | Thread | Email Virus Warning, Neil Hunter |
Email Virus Warning, Neil Hunter | Date | RE: Breaking up is hard to do., Kay Michael |
Month |