Hi Folks,
Is there a preferred way to build a series of cts:search constructor
functions when using conditional (and/or) logic? In the following example I
insert a cts:query() if an value is blank, in the other I insert an empty
sequence:
cts:search(
//Record,
cts:and-query ((
if ($publisher ne "") then
cts:element-value-query(xs:QName("Publisher"), $publisher,
("case-insensitive", "diacritic-insensitive",
"punctuation-insensitive")
)
else cts:query(),
if ($title ne "") then
cts:element-value-query(xs:QName("Title"), $title,
("case-insensitive", "diacritic-insensitive",
"punctuation-insensitive")
)
else ()
))
)
Is there a rule for using cts:query() or the empty sequence () for
dynamically building cts:search constructors?
Thanks again,
Tim
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general