W3C home > Mailing lists > Public > www-xpath-comments@w3.org > October to December 2003

Re: [Q] Possible to select all attributes except some?

From: Jeni Tennison <jeni@jenitennison.com>
Date: Sat, 22 Nov 2003 17:36:25 +0000
Message-ID: <120-1847432297.20031122173625@jenitennison.com>
To: Steinar Bang <sb@dod.no>
Cc: www-xpath-comments@w3.org

Hi Steinar,

XSLT/XPath questions (as opposed to comments on the XSLT/XPath
specifications) are best addressed to xsl-list@lists.mulberrytech.com.

> Is it possible to replace "@*" with an expression that would select
> all attributes except the attribute named "background"[3][4]?

In XPath 1.0, use:

  @*[name() != 'background']

(select every attribute whose name is not 'background').

In XPath 2.0, use:

  @* except @background

(select every attribute except the background attribute).



Jeni Tennison
Received on Saturday, 22 November 2003 12:37:55 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:02:15 UTC