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

Re: [XPath] matching elements which satisfy a specific

Subject: Re: [XPath] matching elements which satisfy a specific content model
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 13 Jan 2003 12:08:11 GMT
Re:  [XPath] matching elements which satisfy a specific
> But it would make some things simpler.

It would make some things shorter (but I still don't think that the kind
of test in your exampleis often needed, your expanded example didn't
show a need for it as it didn't show what you wanted in the other case)

However I think that actually this is making things conceptually twice
as complicated. XPath is a language for specifying certain types of
paths through an XML tree. Some simple cases are very simple and others
are more verbose.

DTD content model syntax is similarly a language for specifying certain
kinds of paths through trees. The set of things that are simple and/or
verbose in that syntax is unsurprisingly different.

So it's not surprising that there are some things that are easier to say
in DTD content models than in Xpath, but I don't think the solution is
to just have a combined language, that would again make some things look
a bit simpler but lead to even more complexity and lots of extra rules
to tie down the semantics. In a dtd foo means the element with name
"foo" in Xpath foo means the element with name foo in no namespace.
What would "foo" mean in your proposal? Either you end up with something
that looks like DTD syntax but has very different namespace conventions,
or you have to introduce a whole new set of namespace unaware element
name tokens into the Xpath language. Either could be specified easily
enough but it isn't really a simplification.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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
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.