xsl-list
[Top] [All Lists]

Re: simpler matching of qnames in content?

2005-12-05 04:12:59

(I'm using a Saxon 8.3 processor).
why not 8.6.1? It gets hard to remember what features were in early
drafts of xslt2.


   resolve-QName(soap11:Envelope/soap11:Header/wsa:QNameRef,
        soap11:Envelope/soap11:Header/wsa:QNameRef)

   = QName('http://www.w3.org/2005/08/addressing', 'foo')


You could write this as

soap11:Envelope/soap11:Header/wsa:QNameRef/(resolve-QName(.,.)=QName(namespace-uri(),'foo'))

which avoids writing the namespace URI explictly.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--~------------------------------------------------------------------
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>
--~--