This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: accessing xsl with XML DOM and javascript
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] accessing xsl with XML DOM and javascript
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Tue, 24 Jul 2001 15:54:42 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> the problem is that my function returns me the name of
> the node (field)
yes, that's what nodeName() returns.
and in fact i'd like to get the value
> of the "name" attribute (example : end date).
Why on earth do you need to go into JavaScript to do this?
My general rule is that the only reason to go into JavaScript is to get
information that's not available any other way. It should never be necessary
to access the source document using DOM interfaces, using XPath expressions
is much easier. Especially if you're not completely familiar with the DOM.
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list