This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Whitespaces against efficency
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Whitespaces against efficency
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Mon, 10 Apr 2000 15:34:55 +0100
- Reply-To: xsl-list at mulberrytech dot com
> >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