[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Question for the XPath and DOM folks
The behavior you witnessed is a bug in an old version of MSXML (v3) that has been since fixed in the latest version (v4 SP1). -----Original Message----- From: Thomas B. Passin [mailto:tpassin@c...] Sent: Sat 7/20/2002 2:25 PM To: xml-dev@l... Cc: Subject: Re: Question for the XPath and DOM folks > a.) This is not a more important question. > > b.) An explanation for this behavior has already been posted by Garland Foster. > The point is not that is has been explained, it is about predictability. Presumably, msxml is running an xpath process on its DOM and returns only the first of the DOM's character nodes. But this is an xslt application, not DOM. So it ought to be following the XPATH rec, not DOM, even if they use DOM to implement it. The other xslt processors behave differently, apparently following the XPATH/XSLT Recs. What we need more than anything is predicatability. Right now it seems that I cannot predict when mxsml follows the DOM Rec and when it follows the XPath Rec. Not good. More importantly, we need to be able to understand and predict what will happen when we apply an xpath expression. We should NOT have to know how it is implemented behind the scenes to know the results (I mean whether it is implemented with a pure w3c DOM model or not). I agree that it could be hard to define exactly what kind of nodes may be returned by an xpath query over a DOM, although I think that you could argue that whatever they are they should implement a DOM interface. However, if markup is about anything it is about character data. Anyone who thinks it is acceptable for an xpath query to return different sets of characters depending on whether it is applied to a DOM or a document version of the same thing has really lost his way in the real world. Cheers, Tom P ----------------------------------------------------------------- The xml-dev list is sponsored by XML.org <http://www.xml.org>, an initiative of OASIS <http://www.oasis-open.org> The list archives are at http://lists.xml.org/archives/xml-dev/ To subscribe or unsubscribe from this list use the subscription manager: <http://lists.xml.org/ob/adm.pl>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|