Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


finding namespace-URI for a given prefix

From: <christof.hoeke@------->
To:
Date: 6/1/2004 11:41:00 AM
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent