[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

I mean self::* doesn't select attributes :(

Subject: I mean self::* doesn't select attributes :(
From: "Evan Lenz" <elenz@xxxxxxxxxxx>
Date: Tue, 24 Apr 2001 13:24:38 -0700
 I mean self::* doesn't select attributes :(
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:  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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.