This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
I mean self::* doesn't select attributes :(
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] I mean self::* doesn't select attributes :(
- From: "Evan Lenz" <elenz at xyzfind dot com>
- Date: Tue, 24 Apr 2001 13:24:38 -0700
- Reply-To: xsl-list at lists dot mulberrytech dot com
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@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Evan Lenz
> Sent: Tuesday, April 24, 2001 1:01 PM
> To: xsl-list@lists.mulberrytech.com
> 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