> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]
> Behalf Of Ronald Bourret
> Sent: dinsdag 26 november 2002 00:42
> To: [EMAIL PROTECTED]
> Subject: Re: Namespace issue
> 
> 
> I don't know how XSLT implements namespaces, 

I did understand that XSLT and XML schema use the xmlns attributes way

> 1) Use xmlns attributes, like you did. The advantage of this 
> is that it
> is a standard mechanism, so it can be understood by generic code. It
> also (theoretically) means that you can cut and paste XML document
> fragments and carry the namespace information with the fragement.

I think those are good arguments, escpecially the last one from a
practical point of view.

> 2) Use an XUpdate-specific element, such as the following:
> 
>    <xupdate:namespace prefix="rpb" 
> uri="http://www.rpbourret.com/ns/"; />
> 
> Languages that use such elements usually require them to be 
> at the start
> of the document in order to simplify processing. While less rich than
> xmlns attributes, these elements are also much easier to 
> understand. The
> major disadvantage is that you now have two separate sets of namespace
> declarations, which might confuse some users. (Then again, it might be
> clearer to others...) For what it's worth, this is the option I use in
> my mapping languages.

I think there are not enough advantages here that weigh up against the
advantages of the xmlns attributes way so I vote for the xmlns
attributes way.

Jeroen.

--

X-Hive Corporation
e-mail: [EMAIL PROTECTED]
phone: +31 10 7108622
http://www.x-hive.com
----------------------------------------------------------------------
Post a message:         mailto:[EMAIL PROTECTED]
Unsubscribe:            mailto:[EMAIL PROTECTED]
Contact administrator:  mailto:[EMAIL PROTECTED]
Read archived messages: http://archive.xmldb.org/
----------------------------------------------------------------------

Reply via email to