[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: 1 condition OK, adding a second blows it up
Hi Allistair, > This works > > <xsl:for-each select="//employee[(./@department = $deptName) and > (./approvals/approval[@timestamp > $filterFDate])]"> > > However, when I add a second condition it fails > > <xsl:for-each select="//employee[(./@department = $deptName) and > (./approvals/approval[(@timestamp > $filterFDate) and (@timestamp < > $filterTDate)])]"> (Obviously the above isn't well-formed XML, so you'll get an error, but you say that escaping the < doesn't help.) The XPath looks OK to me. What do you mean by "fails"? What error do you get, or what does it do differently to what you expect? Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|