[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

Re: zero-length string namespaces URI

Michael Kay mhk at mhk.me.uk
Thu Sep 29 10:25:38 PDT 2005


undeclared namespace prefix fn
 
> >>
> >>declare namespace local="";
> >>declare function local:depth($e as node()) as xs:integer
> 
> What it is supposed to raise now ?

It will report that there is no binding for the namespace prefix "local".
> 
> Another question since we are proceeding :
> 
> Could every "built-in" namespace be undeclared ? I mean those in :
> 
> >       xml = http://www.w3.org/XML/1998/namespace
> >       xs = http://www.w3.org/2001/XMLSchema
> >       xsi = http://www.w3.org/2001/XMLSchema-instance
> >       fn = http://www.w3.org/2005/xpath-functions
> >       xdt = http://www.w3.org/2005/xpath-datatypes
> >       local = http://www.w3.org/2005/xquery-local-functions 
> (see 4.15 Function Declaration.)
> 
> What would be the sense of undeclaring the xml NS forexample ?

There's an explicit ban on redeclaring the xml namespace. The others can all
be undeclared or redeclared.

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




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.