xsl-list
[Top] [All Lists]

AW: [xsl] comparing attributes if missing at times

2014-03-26 09:20:17
Thanks all for your fast responses.



. . . . . . . . . . . . . . . . . . . . . . . . . .
Ing. Patrick Szabo
Developer
LexisNexis
A-1030 Wien, Marxergasse 25

mailto:Patrick(_dot_)Szabo(_at_)lexisnexis(_dot_)at
Tel.: +43 1 53452 1514
Fax.: +43 1 534 52 146

. . . . . . . . . . . . . . . . . . . . . . . . . .



. . . . . . . . . . . . . . . . . . . . . . . . . .
Ing. Patrick Szabo
Developer
LexisNexis
A-1030 Wien, Marxergasse 25

mailto:Patrick(_dot_)Szabo(_at_)lexisnexis(_dot_)at
Tel.: +43 1 53452 1514
Fax.: +43 1 534 52 146

. . . . . . . . . . . . . . . . . . . . . . . . . .

-----Ursprüngliche Nachricht-----
Von: Michael Kay [mailto:mike(_at_)saxonica(_dot_)com]
Gesendet: Mittwoch, 26. März 2014 14:13
An: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Betreff: Re: [xsl] comparing attributes if missing at times


On 26 Mar 2014, at 12:41, Szabo, Patrick (LNG-VIE) 
<patrick(_dot_)szabo(_at_)lexisnexis(_dot_)at> wrote:
:

<xsl:for-each-group select="elem" group-starting-with="elem[@x != 
preceding-sibling::elem[1]/@x]">

Like all the other comparison operators, "!=" is implicitly existential. That 
is, A!=B means "some a in A, b in B satisfies a!=b".

This is handy for "=", because you can say author="Smith" and it gives a 
reasonable answer if there is more than one author.

It's very rarely useful for "!=", which is why most people advise against using 
it. Use not(A = B) instead,

Michael Kay
Saxonica
--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


<Prev in Thread] Current Thread [Next in Thread>