Subject: [xsl] I mean self::* doesn't select attributes :( From: "Evan Lenz" <elenz@xxxxxxxxxxx> Date: Tue, 24 Apr 2001 13:24:38 -0700 |
Oops, that was off-base. Here's what I meant to say: <correction> Anyone else have headaches with not being able to do @*[not(self::xyz:* or self::abc:*)] ? Anything more elegant than the following two solutions? @*[not(namespace-uri()='&xyzURI;' or namespace-uri()='&barURI;')] @*[not(generate-id()=generate-id(../@xyz:*) or generate-id()=generate-id(../@abc:*))] I'd love to be missing something. </correction> Doesn't look quite as horrible, but still annoying. Regular name tests work, but not prefixed *, because the "principal node type" of * is element. Evan > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Evan Lenz > Sent: Tuesday, April 24, 2001 1:01 PM > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] self:: doesn't select attributes :( > > > Anyone else have headaches with not being able to do > @*[not(self::xyz:foo or > self::abc:bar)] ? > > Anything more elegant than the following two solutions? > > @*[not((local-name()='foo' and namespace-uri()='&xyzURI;') or > (local-name()='bar' and namespace-uri()='&barURI;'))] > > @*[not(generate-id()=generate-id(../@xyz:foo) or > generate-id()=generate-id(../@abc:bar))] > > I'd love to be missing something. > > Evan Lenz > XYZFind Corp. > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] self:: doesn't select attribu, Evan Lenz | Thread | Re: [xsl] I mean self::* doesn't se, G. Ken Holman |
Re: [xsl] using parameters in a sel, Ray Allis | Date | Re: [xsl] I mean self::* doesn't se, G. Ken Holman |
Month |