[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: Florent Georges <darkman_spam@xxxxxxxx>
Date: Thu, 5 Apr 2007 14:23:36 +0200 (CEST)
Re:  Proposed syntax for namespace binding in XPath
Colin Adams wrote:

  Hi Colin

> I think an extension function is the right approach, in as
> much as it clearly signals non-standard behaviour (and you
> get an error on a processor that does not recognize it,
> which is important - the last thing you want is silent
> errors - i.e. incorrect output).

  I tend to agree with this principle in general, but in the
other hand here, we want to be able to share XPath
expressions between products.  Those that understand this
extension will use it, but the other ones have to be able to
execute the expression anyway (providing that on those
products the bindings are set in another way).

  But I agree that this could silent some errors, and that
is bad.

> >But it feels a bit like an abuse.

> It depends what the semantics of the extension function.
> If they are defined as adding namespaces to the static
> context, then I think this would be a violation of the
> XPATH language, because the static context is no longer
> static (its contents changes during evaluation of the
> language).

  But the adding of the bindings can be done while compiling
the expression, before evaluating it, isn't it?

  Regards,

--drkm



















	

	
		
___________________________________________________________________________ 
Dicouvrez une nouvelle fagon d'obtenir des riponses ` toutes vos questions ! 
Profitez des connaissances, des opinions et des expiriences des internautes sur Yahoo! Questions/Riponses 
http://fr.answers.yahoo.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.