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

RE: === Identifying a unique node in a DOM tree ===

Subject: RE: === Identifying a unique node in a DOM tree ===
From: "Pawson, David" <DPawson@xxxxxxxxxxx>
Date: Wed, 31 May 2000 09:07:10 +0100
dom identify position relative
>below), is there an XML or DOM implementaion that uniquely identifies a
>node?  The purpose is to NOT use a database, but instead a 
>flat xml file and
>be able to identify and edit a particular node.
>
>
>QUOTE FROM SUBSCRIBER OF XSL-LIST
>(In response to David Carlisle)
>
>"Be aware that there is no nice way to locate a node by just giving
>a path. 
>You /can/ construct a path from a node, but that path does NOT uniquely
>identify that node gain.
>
>You may have to take into account ordinal (array) positions before your
>node path becomes definitive.


surely, using the previously supplied script, 
at each level it should be possible to obtain its position
relative to siblings?
Hence instead of just 'chapter', it should be possible
to state that it is 'chapter[5]' ? Use of position, having obtained
the document order context again? Yet another case of 
matching generate-id() ?
Or am I missing something?

Regards, DaveP


 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.