Re: [xsl] simpler matching of qnames in content?

Subject: Re: [xsl] simpler matching of qnames in content?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 5 Dec 2005 11:12:59 GMT
> (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
________________________________________________________________________

Current Thread