[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 17:10:19 +0100
RE:  Proposed syntax for namespace binding in XPath
That's all detail to be worked out.

It turns out that using comments has the same disadvantages as they had with
the original XQuery pragma syntax: they're handled in the tokenizer which
has no knowledge of the syntactic context. So I may look at using a
different delimiter after all. But I was thinking of recognizing this syntax
only if it occurs right at the start of the expression.

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

> -----Original Message-----
> From: David Carlisle [mailto:davidc@xxxxxxxxx] 
> Sent: 04 April 2007 16:01
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  Proposed syntax for namespace binding in XPath
> 
> 
> how would you detect the special comment?
> 
> eg, could you have a comment first?
> 
> (:hello world:)(:# xmlns:p=http://other/uri #:) /p:foo/p:bar[2]
> 
> and is this an error or just a normal comment (with therefore 
> no binding for the default xpath namespace).
> 
> (:# xmlns==http://other/uri #:) /foo/bar[2]
>          ^
> 
> would the bindings have to be at the top? (cf xquery prolog) 
> or could you give them a local scope.
> 
> /(:# xmlns:p=http://other/uri #:) p:foo/(:# 
> xmlns:p=http://yetother/uri #:)p:bar[2]
> 
> 
> (just musing in public, I don't imply that these are 
> necessarily problems just that there are several possible 
> answers well, two in each case, yes or no...)
> 
> David

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.