RE: [xsl] How namespaces are unique???

Subject: RE: [xsl] How namespaces are unique???
From: "Macaulay,Malcolm (US)" <Malcolm.Macaulay2@xxxxxxxxx>
Date: Thu, 30 May 2002 07:46:24 -0500

I'm not a namespaces expert but I'll give you my understanding and hopefully someone will correct me if I have it wrong..

There is no problem with the situations you have.

are unique namespaces. The "calp" prefix is simply the local abbreviation used by the authors in their documents. It is just a shorthand for the url. The only problem you have is that your XSLT is acting on the two documents where the authors have used the same prefix. No problem - just assign new (unique) prefixes for use in your XSLT. e,g:

<xsl:stylesheet xmlns:MyCalpPrefix=""; xmlns:MyCalbitPrefix=""; ...../>

and the write XPaths to get the elements you want, e.g:

<xsl:value-of select='../MyCalpPrefix:Element'/> would get from calp:Element of the 'Calp' doc
<xsl:value-of select='../MyCalbitPrefix:Element'/> would get from calp:Element of the 'Calbit' doc

Hope that helps



-----Original Message-----
From: Mailer Mailer [mailto:maillistboxes@xxxxxxxxx]
Sent: 30 May 2002 07:06
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] How namespaces are unique???

Hello All,

I had a problem recently, that I was using XML from
different sources and both the sources had namespace
of same name, the name used was "calp"

both had namespace definition like this:



Can anyone explain me how namespace is resolving the
conflict, when the these prefix names are same???

I'll be thankful if someone can help me in this.


Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup

 XSL-List info and archive:

 XSL-List info and archive:

Current Thread