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

RE: Different Namespace Prefixes for Same Namespace UR

Subject: RE: Different Namespace Prefixes for Same Namespace URI
From: "Lars Huttar" <lars_huttar@xxxxxxx>
Date: Mon, 3 Mar 2003 12:57:27 -0600
lars ur
> Can the namespace be referenced via the URI in 
> some manner, or is there another standard approach
> to dealing with this issue?
> 
> Thanks

What you're already doing will work fine.
If you are accessing the source document with something like

  <xsl:stylesheet ...
     xmlns:foo="http://example.org/ns">
     ...
     <xsl:value-of select="/content/foo:widget"/>
     ...
  </xsl:stylesheet>

then you'll get the <widget> child element in the namespace whose
URI is "http://example.org/ns", regardless of what prefix is used
in the source document to refer to that namespace.

>From Kay, 2nd Ed., p. 66: "Two names are considered equal if they
have the same local part [i.e. 'widget'] and the same namespace URI
[i.e. 'http://example.org/ns']. ... The prefix of a name is arbitrary
in that it does not affect comprison of names..."

Lars



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.