This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: accessing xsl with XML DOM and javascript


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]