[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: namespace reprise


syntactic reprise
> From: Emmanuil Batsis (Manos) [mailto:mbatsis@h...]
> Sent: Wednesday, August 21, 2002 3:19 AM
> To: Dare Obasanjo; xml-dev@l...
> Subject: Re:  namespace reprise
>
>
> Dare Obasanjo wrote:
>
> >I'd be more interested in someone who can point out the the difficulty
> >caused by namespaces in XML that don't boil down to philosophical or
> >aesthetic arguments.
> >
>
> Namespaces should point to schemas, being the actual vocabulary
> definition pointer. Even better, it should point to an an RDF document

The benefit being...?

> (after all, RDF is about metadata) or perhaps something like an RDDL
> doc, or whatever.
>
> Secondly, a namespace URI designed *not* to actually point to something,
> should not be a URL or any other type of URI that uses a scheme designed
> to be used for resource retreival.

What if I decide at a later pointer that my namespace URI now *should*
locate something?

> Attributes, the base of numerous debate around XML are also tortured by
> the XML names recommendation, meaning the default namespaces do not
> apply directly to attributes" part. I never managed to understand the
> reasoning behind this.
>
> Another thing that bothers me is the rough edges concerning APIs. Most
> APIs handle namespaces in a really stupid way. Even XPath in XSLT
> (which, IMHO is by far the best in it's anticipation of namespaces
> thanks to the according axis) is incapable of dynamically producing
> namespaces and one must know the default namespace to match the desired

Well, that's by design. The default namespace is just a syntactic
abbreviation so that you don't need to use prefixes in your *input*
document.

> nodes.. Also, if I'm not wrong, if there are no namespace declarations
> then XSLT anticipates the empty string as the default namespace (but one
> may correct me in this one). Surelly this is another rec but if

Not really. It there are no namespace declarations, the elements are in no
namespace. The "empty namespace name" again is just a syntactic hack for
namespace undeclarations -- there is no such thing as a namespace named "".

> namespaces are not implemented consistently and effisiently in other
> applications then there must be something wrong with them ;-)
>
> ...

Julian


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.