[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Duplicates

Subject: RE: Duplicates
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Mon, 21 Feb 2000 10:09:43 -0000
RE: Duplicates
> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.