This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Mapping node references in/out of DOM?
- To: JSaylor at wizardfinance dot com
- Subject: Re: [xsl] Mapping node references in/out of DOM?
- From: Dimitre Novatchev <dnovatchev at yahoo dot com>
- Date: Thu, 4 Jan 2001 21:40:12 -0800 (PST)
- Cc: xsl-list at lists dot mulberrytech dot com
- Reply-To: xsl-list at lists dot mulberrytech dot com
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@wizardfinance.com <mailto:jsaylor@wizardfinance.com>
__________________________________________________
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