Let's assume that when you say a value might be "null", you mean it might contain an empty string.
Then you can write a predicate like this:
select="$pagexml/sager/sag[($CaseNo='' or $CaseNo=CaseNo) and ($Street='' or $Street=Street) and ($Area='' or $Area=Area) and ....]"
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|