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

About the XPath experiment

  • From: "Didier PH Martin" <martind@n...>
  • To: "'XML Dev'" <xml-dev@i...>
  • Date: Tue, 11 Jan 2000 10:24:11 -0500

sdql
Hi Brandon,

I remember that you started to implement an XPath parser implemented in
DSSSL. Do you still have it, I would be interested to take a look at it and
probably adding value to it since having an xpath parser can make queries
more concise than with SDQL and would be more appealing to XML developers. I
just posted an example on XML-DEV and people responded well to it:

example:
(query (xpath "booklist/item")
	(make display-group
		(make box
			(literal "Is this weirdo??")
			(make rule)
			(make paragraph
				(process-children)
			)
	)

)

I discovered something interesting in the process of asking questions about
this topic. He is what I got:
a) people find XPath easier than SDQL because they can read the expression
from left to right (off course they are used to it since most European
languages have such reading rules)
b) people get difficulties to grasp SDQL expressions because they have to
start from the center (or the right) and then to the left. This is most of
the time contrary to their reading habits (reciprocal of the (a) statement)
c)XPath is more readable than SDQL but not necessarily a piece of cake. But
because of (a) the comfort level is higher than with SDQL.

So, this is more a question of usability than a question of what each query
language can or cannot do. However, I did not made any research in middle
east countries. Probably the opinion would be different there since these
people are used to read from the right to the left. Therefore, maybe they
would find it easier to read an SDQL expression than an XPath expression.

Conclusion:
It is probably best to have both. The choice being principally a matter of
cultural habits and preferences.

Didier PH Martin
----------------------------------------------
Email: martind@n...
Conferences: Web New York (http://www.mfweb.com)
Book to come soon: XML Pro published by Wrox Press
Products: http://www.netfolder.com


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ or CD-ROM/ISBN 981-02-3594-1
Please note: New list subscriptions now closed in preparation for transfer to OASIS.



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.