[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: namespaces
Hi William, > While in the middle of processing a XSLT tempalte, I have a declared > namespace URI, but I do not have the shorthand. Is there anyway to > get the shorthand back and stick it into a variable? If the current node is an element, then you can get to information about the namespaces that are in scope for that element using the namespace:: axis. The value of a namespace node is the namespace URI, and its name is the prefix (the shorthand, as you call it). So, if you're in a template where the current node is an element and the namespace is in scope on that element, then you can get the prefix associated with the namespace 'http://www.known.com' with: name(namespace::*[. = 'http://www.known.com']) I hope that's what you were after, Jeni --- Jeni Tennison http://www.jenitennison.com/ 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
|