Subject: Re: [xsl] Xpath 1.0 Question : Excluding Attributes? From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Thu, 29 Mar 2007 22:39:11 +0200 |
At 2007-03-29 10:49 +0200, Abel Braaksma wrote:
and this with QNames:
//tier1/tier2/@*[not(name() = 'ns:exclude-me')]
I think someone should make the observation that the above test is not namespace-safe.
If you wanted to base the test on the stylesheet use of the "ns" prefix, one could do:
//tier1/tier2/@*[not(local-name()='exclude-me' and namespace-uri()=document('')/*/namespace::ns)]
I suppose you could even use the principle of union in:
//tier1/tier2/@*[not(../@ns:exclude-me and count(.|../@ns:exclude-me)=1)]
Any one of those three above would allow the namespace prefix used in the input instance for the stylesheet "ns" namespace.
I do think your proffered solution for QNames is not appropriate.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Xpath 1.0 Question : Excl, G. Ken Holman | Thread | RE: [xsl] Xpath 1.0 Question : Excl, Michael Kay |
RE: [xsl] XSL Calendar functions?, cknell | Date | Re: [xsl] XSL Calendar functions?, Abel Braaksma |
Month |