Subject: Re: [xsl] Proposed syntax for namespace binding in XPath From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx> Date: Sun, 1 Apr 2007 08:32:30 -0700 |
Dimitre Novatchev wrote:
Hi Dimitre
> What I would like added is the ability to define global bindings > (define once, use always thereafter).
In this case, you'll have to define precisely what means "global", how glabally the bindings will be. And IMHO it will be complex, while not impossible, to do that in a general way.
Should the binding be global in the whole application (what is an application BTW)? Should the binding be global in a module, related to some documents (the documents we are evaluating expressions against), or in some other way I didn't think about?
As for where/when to specify special, non-on-the-fly-bindings, we shouldn't forget that an XPath expression comes always embedded in something else -- that is, it is already "local" to some outer scope and anything defined in outer scopes will be "global" to the XPath expression.
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".
-- Cheers, Dimitre Novatchev --------------------------------------- Truly great madness cannot be achieved without significant intelligence. --------------------------------------- To invent, you need a good imagination and a pile of junk ------------------------------------- You've achieved success in your field when you don't know whether what you're doing is work or play
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSL-List Guidelines, Mulberry Technologie | Thread | RE: [xsl] Proposed syntax for names, Michael Kay |
[xsl] XSL-List Guidelines, Mulberry Technologie | Date | Re: [xsl] Subject: Counting Path Oc, Mukul Gandhi |
Month |