[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Fundimentle Predicate Problem or Bug??

Subject: RE: Fundimentle Predicate Problem or Bug??
From: Chris Hughes <chris_hughes22@xxxxxxxxxxx>
Date: Thu, 18 Sep 2008 14:42:24 +0000 (GMT)
RE:  Fundimentle Predicate Problem or Bug??
Thanks for all of your replies on this.

David your answer worked for me, yours and others explanations made sense to
me in a way that is what I though I was doing, I just never thought of doing
the way you have suggested.

It does pose an interesting question though, because in my case surely

Race/RaceType &gt;= 'R' and Race/RaceType &lt;= 'R'

AND

Race/RaceType &gt;= 'R' or Race/RaceType &lt;= 'R'

would do the same? Which is fine in the XSLT world but try explaining that to
the logic gurus!

The reason I struggled is because this is how SQL logic works and most
proecdural languages I believe!

Mr Kay

I tried having a play with your suggestion comparing dates as dates, but
couldn't get to work.  The reality is that I have two variables DATEFROM and
DATETO, I can set these to xs:date okay, but how when with my example data
expanded how do you do

<xsl:for-each select="/ORCB082/ROWSET/ROW[Fixture/FixtureDate &gt;= $DATEFROM
and FixtureDate &lt;= $DATETO and
                                                      Race/RaceType &gt;= 'R'
and Race/RaceType &lt;= 'R']" >

It moans if I wrap xs:date around Fixture/FixtureDate beacuase there is more
than one occurance.

I also tried updating my code to use ge, le, eq etc - this made it worse!

BTW - I user Saxon 9.0.0.6.

Also have a copy of your book if its explained in there (couldn't find
anything looking myself!).

Cheers

Chris.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.