[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|