Re: [xsl] Accessing the input document's @xmlns

On Dec 14, 2012, at 10:18 AM, Andrew Welch <andrew.j.welch@gmail.com> wrote:

>> I'm trying to access the value "http://example.com/ns/ex#" given the
>> value "ex", without the transform knowing a priori.
> 
>> Thanks for your time and consideration. Am I missing any other alternative?
> 
> sounds like you need namespace-uri-for-prefix() and possibly
> in-scope-prefixes()
> 
> http://www.w3.org/TR/xpath-functions/#func-namespace-uri-for-prefix

Perfect!   http://dvcs.w3.org/hg/prov/rev/36f87c764618

Thanks so much, Andrew.

Sorry, my XSL is a bit rusty :-)

Regards,
Tim


> 
> 
> 
> -- 
> Andrew Welch
> http://andrewjwelch.com
> 
> 

Received on Friday, 14 December 2012 15:26:12 UTC