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

Re: Concerned about the increasing reliance on XPath

  • From: "G. Ken Holman" <gkholman@CraneSoftwrights.com>
  • To: xml-dev@lists.xml.org
  • Date: Mon, 09 May 2011 12:13:17 -0400

Re:  Concerned about the increasing reliance on XPath
At 2011-05-09 16:49 +0100, Stephen D Green wrote:
>I think we tend to hope that XPath expressions can be
>written such that they are immune from such implementation
>specifics

XPath cannot function in a vacuum.

>  (like we would love to do with HTML) and we rush
>into using it for standards and for writing XML Schema
>schemas and Schematron schemas hoping that these too will
>be implementation agnostic. Is that realistic? Is this the case
>of our over-relying on it? Maybe in future XPath will become
>what we need it to be but is it that yet?

As XPath syntax does not include namespace URI binding, it is the 
responsibility of the outside environment to supply such bindings, 
for two examples:

   XPath2:
     default namespace:   xpath-default-namespace="{uri}"
     prefixed namespaces: XML namespace declarations in context

   XQuery:
     default namespace:   declare default element namespace "{uri}";
     prefixed namespaces: declare namespace prefix="{uri}";
     prefixed namespaces: XML namespace declarations in context


To operate without such external fulfillment, it would be necessary 
to introduce XPath syntax to accomplish namespace bindings.

I hope this helps.

. . . . . . . . . Ken

--
Contact us for world-wide XML consulting & instructor-led training
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal



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