[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: Microsoft extensions to XSL (was RE: how to call Javascriptfunction in .xsl file)


Subject: Re: Microsoft extensions to XSL (was RE: how to call Javascriptfunction in .xsl file)
From: Paul Prescod <papresco@xxxxxxxxxxxxxxxx>
Date: Wed, 11 Nov 1998 08:32:34 -0600

keshlam@xxxxxxxxxx wrote:
> 
> 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, 

Well the DOM is broken in this respect in a couple of ways. 

First, XML does not define the term tag name. Tags do not have names.

Second, my name is "Paul Prescod" and my "type" is "programmer."
Similarly:

<PROGRAMMER ID="PAUL-PRESCOD">

</PROGRAMMER>

The node's name can only be its unique ID. "PROGRAMMER" is the name of a
whole class of elements, not this individual element.

> the attribute name when it's an Attr node, the entity
> name when it's an Entity or EntityReference node, and so on. 

So individual entities are named by their individual name, but elements
are named "in batch?" Ugh.

> The "unnamed"
> nodes (Text, CDATASection, Comment, Document, and DocumentType) return a
> recognizable constant string as their nodeName.

Now we're combining a *third level*, the *node type*. Double ugh.

 Paul Prescod  - http://itrc.uwaterloo.ca/~papresco

At today's pop doubling rates, in 100 years there will be 20 billion
people, more than enough to fill the earth. In 300 years, we will have
filled up 16 earth-sized planets (roughly, our solar system). In 2300
years we will have filled up 200 billion earth-sized planets (roughly,
our galaxy). Only one technology can save us: birth control.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords
xml