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

Re: ### Outputting the "full path". Is this possible ?? ###

Subject: Re: ### Outputting the "full path". Is this possible ?? ###
From: Dan Morrison <dman@xxxxxxxx>
Date: Sat, 27 May 2000 05:43:02 +1200
xml node full path
David Carlisle wrote:
> 
>   but what if an element contains a sequence of elements...

Yes, 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.

This puzzled me a bit when coming from web development. I figured an XML
node could be regarded as an extension of a filesystem path ... until I
tried impimenting it.

Although you probably understand what I mean if I was to indicate a path
like "http://my.xml.com/document.xml#/root/chapter/section", the fact is
that that notation CANNOT work.

Working backwards from Davids eg, you will see that it will have to be
something like document.xml#/root[0]/chapter[1]/section[1] before it
becomes meaningful.

This may be long-obvious for some on this list, but it blew me away when
I first got around to thinking about this limitation (or gotcha)

.dan.


 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.