BIP > 排序不适用于 BIP RTF 模板

BIP > Sorting is not working on BIP RTF template

我正在尝试对我的 BIP rtf 模板中的数据进行排序,但它不起作用。报告生成正常,但组 'Primary Focus' 未排序。

这是生成报告的方式: https://www.dropbox.com/s/6zratu55hgf9o77/481539039485767out.pdf?dl=0

这就是 'Primary Focus' 需要排序的方式: https://www.dropbox.com/s/7pu2yb86iuccjuv/03.pdf?dl=0

请查找示例 xml and rtf

休息一切都很好只是 'Primary Focus' 组没有被排序。

只需移动排序代码

<?sort:ssFocusTypePrimary;'ascending';data-type='text'?>

分组代码前

<?sort:ssFocusTypePrimary;'ascending';data-type='text'?><?for-each-group:current-group()[xdoxslt:format_date(ssReportedDate, 'yyyy-mm-dd','mm/dd/yyyy', $_XDOLOCALE, $_XDOTIMEZONE)>= (xdoxslt:format_date($StartDate, 'yyyy-mm-dd','mm/dd/yyyy', $_XDOLOCALE, $_XDOTIMEZONE)) and (xdoxslt:format_date(ssReportedDate, 'yyyy-mm-dd','mm/dd/yyyy', $_XDOLOCALE, $_XDOTIMEZONE))<= (xdoxslt:format_date($EndDate, 'yyyy-mm-dd','mm/dd/yyyy', $_XDOLOCALE, $_XDOTIMEZONE)) and starts-with(ssRohClinicFacilityName,$Clinic) and ssVisitType=$VisitType];./ssFocusTypePrimary?>[![enter image description here][1]][1]