xsl-list
[Top] [All Lists]

Re: 1 condition OK, adding a second blows it up

2003-07-01 10:17:29
Hi Allistair,

This works

<xsl:for-each select="//employee[(./@department = $deptName) and
(./approvals/approval[(_at_)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



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