XSL1.0里怎么分组count?
XML文件如下:
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="count-group.xsl"?><errorList> <problem> <severity>Critical</severity> <dir>a</dir> </problem> <problem> <severity>Severe</severity> <dir>b</dir> </problem> <problem> <severity>Error</severity> <dir>b</dir> </problem> <problem> <severity>Severe</severity> <dir>c</dir> </problem> <problem> <severity>Critical</severity> <dir>a</dir> </problem></errorList>
Dir Critical Severe Errora 2 b 1c 1