|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Mapping node references in/out of DOM?
Hi Jeff, I guess that using the string produced by generate-id() will be OK. In case that on different invocations the XSLT processor produces different values for generate-id(theSameNode) (which I think is very unlikely), then you could use something else that is unique and will be invariant accross invocations of the XSLT processor -- e.g. the XPath expression locating exactly this single node in the xml document. Cheers, Dimitre. Jeff Saylor wrote: Everyone, I'm looking at presenting an arbitrary XML Hierarchy to a user in a UI where they will select an element from it. I am looking for ideas on how to map the UI elements back to DOM elements. In other words - output the DOM to a UI with some sort of mapping so that when the user visually selects an element in the UI, I can easily locate the selected element in the DOM. The obvious answer is to pre-populate all the DOM elements with unique keys, but this will prove difficult in my situation - instead, I need something I can do at runtime... Ideas, comments, and suggestions are greatly appreciated in advance! Most Sincerely, Cheers, Jeffrey J. Saylor Senior Internet Developer Wizard Finance Systems 707 Mendham Blvd., Suite 104 Orlando, FL 32825 Phone: (407) 262-9000 Ext 266 Fax: (407) 262-9010 Email: jsaylor@xxxxxxxxxxxxxxxxx <mailto:jsaylor@xxxxxxxxxxxxxxxxx> __________________________________________________ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








