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

RE: Question for the XPath and DOM folks

  • To: "Thomas B. Passin" <tpassin@c...>,<xml-dev@l...>
  • Subject: RE: Question for the XPath and DOM folks
  • From: "Dare Obasanjo" <dareo@m...>
  • Date: Sat, 20 Jul 2002 14:39:22 -0700
  • Thread-index: AcIwNCgq730i+Hj2TCCSNCbXbTQfKQAAWuZw
  • Thread-topic: Question for the XPath and DOM folks

msxml explained
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!

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.