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: Whitespaces against efficency


> >XPath's tree model is not the same as the DOM model
> 
> Eh? Do they differ in some way(s) explainable to mere mortals???

Some differences that come immediately to mind:
- in XPath text nodes are always normalized
- XPath doesn't have entity nodes or CDATA nodes
- in DOM the name of a text node is "#text", in XPath it is ""
- in DOM the nodeValue of <e>thing</e> is "", in XPath the string-value is
"thing"
- XPath nodes have a base URI property
- In DOM xmlns:xyz="uri" creates an attribute node, in XPath it doesn't

Mike Kay


 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]