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

RE: Proposed syntax for namespace binding in XPath

Subject: RE: Proposed syntax for namespace binding in XPath
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 4 Apr 2007 15:32:44 +0100
RE:  Proposed syntax for namespace binding in XPath
> That though doesn't bind prefixes, it just does away with the 
> need for prefixes altogether, so instead of
> 
> (:# xmlns:p=http://other/uri #:) /p:foo/p:bar[2]
> 
> you'd write
> 
> /{http://other/uri}foo/{http://other/uri}bar[2]
> 
> which is workable, but a bit long winded, especially in 
> attribute value templates, where { already has another 
> meaning, and so would need to be quoted.

I have considered this approach, which might be useful for handling
software-generated path expressions; but I think that use case is a lot less
common than XPath expressions written by humans using a text editor in some
kind of data file (or online form) where there's no obvious way to specify a
namespace context.

Michael Kay
http://www.saxonica.com/

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.