[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] not(not() and not())
Subject: [xsl] not(not() and not()) From: Gustaf Liljegren <gustafl@xxxxxxxxxx> Date: Sun, 17 Nov 2002 05:14:58 +0100 |
I seem to have a problem with logic. Can someone explain why this XPath expression: <!-- Paint border unless it's the last row in the last rowgroup. --> <xsl:if test="not(not(parent::tr/following-sibling::tr) and not(ancestor::tbody/following-sibling::tbody))"> <xsl:call-template name="draw-border-bottom"/> </xsl:if> is not exactly the same as this: <!-- Paint border unless it's the last row in the last rowgroup. --> <xsl:if test="parent::tr/following-sibling::tr and ancestor::tbody/following-sibling::tbody"> <xsl:call-template name="draw-border-bottom"/> </xsl:if> The first gives the correct result, but the second paints borders only on all but the last rowgroup. Shouldn't "... and ..." always be the same as "not(not(...) and not(...))"? If not, is it a better way to write the above? Gustaf XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: [XSL-FO] Evaluating XSL-F, Nikolai Grigoriev | Thread | Re: [xsl] not(not() and not()), Brian Grainger |
[xsl] Re: [XSL-FO] Evaluating XSL-F, Nikolai Grigoriev | Date | Re: [xsl] not(not() and not()), Brian Grainger |
Month |
Keywords