[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Microsoft extensions to XSL (was RE: how to call Javascript

Subject: Microsoft extensions to XSL (was RE: how to call Javascript function in .xsl file)
From: keshlam@xxxxxxxxxx
Date: Tue, 10 Nov 1998 09:31:18 -0500
microsoft dom execute javascript
Paul, I agree with your concerns, but one of your shots missed. See the DOM
spec's description of the Node class; there's a table which shows what
nodeName and nodeValue are mapped to for each of the subclasses of Node.

The DOM's nodeName attribute (please note: that's "IDL attribute", or
"property", not XML Attribute!) will equal the tagname when you're working
with Element nodes, the attribute name when it's an Attr node, the entity
name when it's an Entity or EntityReference node, and so on. The "unnamed"
nodes (Text, CDATASection, Comment, Document, and DocumentType) return a
recognizable constant string as their nodeName.

An Element node's name is _also_ available via Element.tagName, as a
"convenience feature".

So Microsoft's proposed xsl:node-name actually does make sense as a more
general alternative to tagName, though we can argue about whether they've
chosen the best way to express and manipulate it in the XSL.


(I'm involved in the DOM Interest Group, and I've spent many hours this
year pounding on an implementation of the DOM. I've got half the spec
swapped into wetware at this point!)
______________________________________
Joe Kesselman  / IBM Research
Unless stated otherwise, all opinions are solely those of the author.



 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.