From: <mi...@mc...> - 2005-10-30 22:43:33
|
Hey all. I thought I'd mention this as its hard for me to say whether it's a bug or not. I have notice that when I string predicates together if I don't put the &= expression the end then the search either times out or is insanely long (haven't waited around to find out :) ) In the following example $zone comes from (this example is fairly contrived as the query is still a work in progress) for $zone in currentDocument//zone where $zone[.//* &= $OCCURENCE] return( count($zone//*[name(.) = "chercheur" or name(.)="date" or name(.)="notes"] [. &= $OCCURENCE]) ) This works count($zone//*[. &= $OCCURENCE][na0me(.) = "chercheur" or name(.)="date" or name(.)="notes"]) This on the other hand would not. I haven't had a chance to test this on a smaller example, but, I thought I'd bring it to your attention. Thanks for all the hard work, Mike |