In XSLT/XPath, how do I get the first attribute that doesn't match a specific name?

1 Unfortunately, this may not do exactly what you want, because in XPath, "the relative order of attribute nodes is implementation-dependent" (w3. Org/TR/xpath/#dt-document-order). So it's theoretically a toss-up as to which attribute besides special_attr will come first.

– Owen S. Jul 7 '10 at 17:35 @Owen: Interesting, thanks. My request was to support this fix: codeproject.Com/KB/XML/XMLOverride.

Aspx? Msg=3527558#xx3527558xx, and part of his design uses the concept of "first attribute is the key"... it does work consistently in my implementation, but probably his design should better take the standard into account. – Scott Stafford Jul 7 '10 at 19:17 @Scott: Agreed.

In cases where sequence is important, elements are what you want, not attributes. – Owen S. Jul 7 '10 at 20:47 @Scott: This is more by-the-book (@*not(name() = 'special_attr'))1.

Note the parentheses. – Tomalak Jul 8 '10 at 7:39 @Owen: See above comment. – Tomalak Jul 8 '10 at 7:42.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions