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

RE: Prefix -> Namespace Resolution

Subject: RE: Prefix -> Namespace Resolution
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Mon, 15 Jul 2002 14:49:31 +0100
re prefix
Sure, this is what the namespace axis is for.

<xsl:value-of select="namespace::*[name()=$prefix]"/>

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Christopher Dix
> Sent: 15 July 2002 13:59
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Prefix -> Namespace Resolution
> 
> 
> Is there a way to determine the namespace URI associated with 
> a given prefix while processing a document?  I realize that 
> namespace-uri will give me the URI if I have an element.  In 
> my case, I have an attribute value that is a Qname, and I 
> need to determine what the URI is for that value.  For example:
> 
> <doc xmlns:x="http://someuri.org/">
> 	<foo myAttribute="x:myVal"/>
> </doc>
> 
> In the course of processing, I will discover the value of 
> myAttribute for element foo, and I need to determine the 
> namespace URI associated with prefix x.  I appreciate any 
> help you can give me.
> 
> Thanks,
> Chris Dix
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 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.