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

finding namespace-URI for a given prefix

Subject: finding namespace-URI for a given prefix
From: <christof.hoeke@xxxxxxx>
Date: Tue, 1 Jun 2004 09:40:52 +0200
find namespace for prefix
hello,
my head gone in circles trying to get the following:

- given a stylesheet in which namespaces with prefixes are defined (may also be any other xml format but thats the one i am interested in)
	<xsl:stylesheet xmlns:n1="n1uri" xmlns:n2="n2uri" xmlns:xsl=[...]
		<xsl:namespace-alias stylesheet-prefix="n1" result-prefix="n2"/>
	[...]

- find for each namespaceprefix (e.g. for /xsl:stylesheet/namespace-alias/@stylesheet-prefix) the used URI...

i tried:
- xmlns:XXX is not an attribute so cannot be "xpathed" or matched with someling like @xmlns:*
- the namespace-uri() function does only give the default namespace for an element, so cannot find other declared and prefixed namespaces
- i also thought the dyn:evaluate extension function might help, but this still cannot work as i cannot use the namespace n1 in the xpath if it is not declared...

so i think this is not possible using xslt alone. do i oversee something?

thanks 
chris





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.