[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: getting the namespace prefix
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|