xsl-list
[Top] [All Lists]

Re: [xsl] Custom function in template match predicate

2008-09-24 07:39:40
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
























      

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>