About the XPath experiment

Didier PH Martin martind at netfolder.com
Tue Jan 11 15:34:57 GMT 2000


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 at netfolder.com
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 at ic.ac.uk
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.





More information about the Xml-dev mailing list