|
Subject: Re: [xsl] Custom function in template match predicate From: Florent Georges <lists@xxxxxxxxxxxx> Date: Wed, 24 Sep 2008 13:39:13 +0200 (CEST) |
Ian Stokes-Rees wrote:
> Hurm. Yes. Except for the slight problem that I could not figure
> out how to get resolve-QName to give the desired result.
Just as Michael's shown you. See the resolve-QName definition there:
http://www.w3.org/TR/xpath-functions/#func-resolve-QName
That means that having elements 'elem' with an attribute 'a' which is
a lexical QName, you can select the elements where the attribute is
equal to a given QName (regarding the namespace bindings in scope on
its parent element) by:
elem[resolve-QName(@a, .) eq xs:QName('ns:name')]
Regards,
--drkm
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Validated input, Andrew Welch | Thread | [xsl] trying to exclude result pref, Fred Christian |
| Re: [xsl] distinct-values, Martin Honnen | Date | Re: [xsl] Include ASCII29 in output, Tim Mansour |
| Month |