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

RE: getting the namespace prefix

Subject: RE: getting the namespace prefix
From: "Andrew Welch" <AWelch@xxxxxxxxxxxxxxx>
Date: Fri, 19 Mar 2004 13:22:51 -0000
getting the namespace xml

> I know we can get the local name of an element with the 
> local-name() function, and the namespace-uri with the 
> namespace-uri() function, however, given the namespace uri, 
> is there a way I could find out the namespace prefix used for 
> a particular element? ie, say I know that the namespace uri 
> for a particular element or set of elements is 
> "http://purl.org/atom/ns#", is there a way to > pick up the 
> namespace prefix used on those elements? Thanks, Munna

Yes,

 <xsl:value-of select="substring-before(name(),':')"/>


cheers
andrew

 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.