[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: Sun, 1 Apr 2007 17:29:43 +0100
RE:  Proposed syntax for namespace binding in XPath
> Most probably, any XPath engine has some *initialisation* 
> phase, which is performed once and forever. I think that a 
> not bad definition for the term "initialisation phase" would 
> be: "A set of actions to build the context for subsequent 
> stages of the system".

I'm probably thinking primarily of use cases where the XPath expressions are
written by someone different from the author of the application - for
example, where XPath expressions might occur in some data file to calculate
say the shipping cost of an order: the problem with current mechanisms is
that namespace bindings can be defined by the author of the application that
calls saxon:evaluate() or its Java equivalent, but not by the author of the
XPath expression.

It's true of course that such a data file might contain a number of XPath
expressions and you might want to define the namespace bindings that apply
to all of them. But I don't want to overcomplicate things. One of the
benefits of an interface like saxon:evaluate() is that it is stateless.

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.