[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: "Khalid Asad" <asad@xxxxxxxxxxxxx>
Date: Wed, 31 May 2000 12:58:52 -0400
find node in dom tree
Thanks for the comments. What I'm trying to do is get bookmarks for every
element/attribute in an XML doc so I can update or refer to the values
later. I'm assuming that the structure of the docs won't change. If I have a
lot of documents to process and I can't insert IDs into them, using XSL and
generating these bookmarks seems very expensive.

Khalid

----- Original Message -----
From: "Francis Norton" <francis@xxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxx>
Sent: Wednesday, May 31, 2000 11:37 AM
Subject: Re: === Identifying a unique node in a DOM tree ===


> I think you'll find that the templates listed are (a) correct and (b)
> fast enough for their purpose, since you are presumably interested in
> taking *persistent* bookmarks and don't need to do that very often.
>
> However, the bookmarks generated by this approach will break if someone
> goes in and adds or removes elements on the preceding-sibling axis of
> any element included in the bookmark path. In other words they will only
> be useful if the document being edited is locked as read-only until the
> editor returns to it.
>
> If you want to make the bookmarks more robust, so that they survive
> across serial single-user edits, then I suggest you start off each edit
> session by resolving each bookmark path to a specific node, and end each
> session by regenerating the bookmark paths for each bookmarked node.
> This sounds more like a DOM/XPATH approach than an XSLT approach, but
> then editing XML *is* more DOM than XSLT.
>
> Hope this helps -
>
> Francis.
>
>
> Khalid Asad wrote:
> >
> > I just can't help asking again ... why, why, why is there not an XPATH
> > function as part of the XSLT spec? All these loops will kill performance
and
> > it's not even obvious (based on the number of questions on the subject)
how
> > to get the function right.
> >
> > Khalid
> >
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 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.