I skimmed your stylesheet quickly. Would you consider using Xalan's
distinct() function? I think it's part of what you want.

I also see that you have filters like
<xsl:if
test="/document[record[SPM_DeviceId=$SPM_DeviceId_3][Flags=$Flags_1]
  [SUB_Instance=$SUB_Instance_4][SPM_SubId=$SPM_SubId_5]
  [SPM_RegioId=$SPM_RegioId_2][TimeStamp=$TimeStamp_7]
  [SPM_IspId=$SPM_IspId_6]]">
where (I'm guessing) the 3-1-4-5-2-7-6 sequence is intended to put
the predicates with the most filtering power first. Have you compared
the multiple predicates to one predicate with "and" operators? You
should still use an optimized sequence so that the first false
result will shortcut the rest of the evaluation as often as possible.
.................David Marston

Reply via email to