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

RE: RE: Concerned about the increasing reliance on XPath

  • From: "Costello, Roger L." <costello@mitre.org>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Mon, 9 May 2011 15:52:59 -0400

RE:  RE: Concerned about the increasing reliance on XPath
Hi Mike,

> What does your "assessment" step really do anyway?  You didn't say.

There are many ways that one may wish to analyze an XML instance document. For the "purchase XML instance document" we may wish to analyze it to determine:

- is the value of <Total> a decimal value (and nothing else)
- will the instance document, when evaluated, trigger unexpected and undesirable actions
- is the value of <Total> equal to the sum of its Item siblings
- perform an algebraic data type analysis

And many other types of analyses.

/Roger

-----Original Message-----
From: Michael Sokolov [mailto:sokolov@ifactory.com] 
Sent: Monday, May 09, 2011 3:38 PM
To: Costello, Roger L.
Cc: xml-dev@lists.xml.org
Subject: Re:  RE: Concerned about the increasing reliance on XPath


> <Purchase>
>        <Item>10.00</Item>
>        <Item>20.00</Item>
>        <Total>
>              <SumPrecedingItems>
>                   <Value>30.00</Value>
>              </SumPrecedingItems>
>        </Total>
> </Purchase>
The element probably should have been named "SumSiblingItems" to create 
a better analogy.

OK, so what - but the point is that re-inventing XPath as a series of 
named elements will lead you to an exceedingly painful syntax.  If you 
don't need the power of XPath, OK you don't need it.  But sometimes you 
do, and in such cases it doesn't make sense to try replacing it with 
something less elegant just to make the job of a syntax parser 
("assessor"?) easier.

What does your "assessment" step really do anyway?  You didn't say.

-Mike


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.