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

Re: What does the phrase "duplicates removed" mean pr

Subject: Re: What does the phrase "duplicates removed" mean precisely?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 1 Feb 2006 23:47:58 GMT
what does dup mean
>  one node is identical to another, and thus is a duplicate, if they 
> both shared the same location in the source tree". Or do I still have it 
> wrong?

No you are not wrong. Well technically in xslt2 nodes can live outside
of a tree: if you go
<xsl:variable name="x" as="element()">
 <foo/>
</xsl:variable>
then $x is a free standing element with no parent and no children, but
you can't get such a thing by parsing a real xml file.
I just mention it here because the point is that if you do that again
<xsl:variable name="y" as="element()">
 <foo/>
</xsl:variable>
then again $x and $ y have equal values ($x=$y and deep-equal($x,$y) are
both true) but are different nodes $x is $y is false.

But in real xml files same node means same bit of the file, yes.
XSLT1 has strict rules that if you load the same URI twice then you get
the same nodes (for all the nodes in the tree), XSLT2 has the same rule
(although there is some discussion of having an option to relax this
rule) and allow a system to tread loading teh same file twice the same
way as it would tread loading two copies of the same file, which would
produce document nodes with different identities (but otherwise
identical structure)

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.