Re: [Q] Possible to select all attributes except some?
Jeni Tennison <[email protected]> Sat, 22 Nov 2003 17:36:25 +0000
| Newsgroups | gmane.text.xml.xpath.general |
|---|---|
| Organization | Jeni Tennison Consulting Ltd |
| Message-ID | <[email protected]> |
Hi Steinar, XSLT/XPath questions (as opposed to comments on the XSLT/XPath specifications) are best addressed to [email protected]. > 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). Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/