W3C home > Mailing lists > Public > public-prov-comments@w3.org > December 2012

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

From: Timothy Lebo <lebot@rpi.edu>
Date: Fri, 14 Dec 2012 10:25:43 -0500
Cc: xsl-list@lists.mulberrytech.com, public-prov-comments@w3.org
Message-Id: <313E1AB2-9FFA-4231-B794-D8D08B08ECE7@rpi.edu>
To: Andrew Welch <andrew.j.welch@gmail.com>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 14 December 2012 15:26:12 GMT