Subject: [xsl] simpler matching of qnames in content? From: Paul Downey <paul.downey@xxxxxxxxxxxxxx> Date: Mon, 5 Dec 2005 10:14:24 +0000 |
I'm building a series of XPath 2.0 tests to check the validity of SOAP messages (I'm using a Saxon 8.3 processor).
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:addr="http://www.w3.org/2005/08/addressing"> <env:Header> <addr:QNameRef>addr:foo</addr:QNameRef> ...
resolve-QName(soap11:Envelope/soap11:Header/wsa:QNameRef, soap11:Envelope/soap11:Header/wsa:QNameRef)
given that the prefixes 'soap11', 'wsa', etc are already known to the XPath processor, is there a way of saying:
resolve-QName(soap11:Envelope/soap11:Header/wsa:QNameRef, soap11:Envelope/soap11:Header/wsa:QNameRef)
resolve-QName(soap11:Envelope/soap11:Header/wsa:QNameRef, .) = build-QName('wsa:foo')
I guess if not, I could resort to using entities to save duplication, but can see that getting messy too.
TIA Paul -- http://blog.whatfettle.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Formatting table informat, Kamal Bhatt | Thread | Re: [xsl] simpler matching of qname, David Carlisle |
Re: [xsl] Formatting table informat, Ragulf Pickaxe | Date | Re: [xsl] XSLT Processing w/ Embedd, David Carlisle |
Month |