File tree Expand file tree Collapse file tree 1 file changed +28
-4
lines changed
web/src/main/webapp/xml/csw Expand file tree Collapse file tree 1 file changed +28
-4
lines changed Original file line number Diff line number Diff line change 66 version =" 2.0" >
77
88 <xsl : template match =" filters" >
9+ <xsl : variable name =" operators"
10+ select =" distinct-values(filter/condition[. != ''])" />
11+ <xsl : variable name =" isUsingOneLogicalOperator"
12+ select =" count($operators) = 1" />
13+
914 <ogc : Filter >
10- <xsl : call-template name =" processFilters" >
11- <xsl : with-param name =" filters" select =" ." />
12- <xsl : with-param name =" position" select =" count(./filter)" />
13- </xsl : call-template >
15+ <xsl : choose >
16+ <xsl : when test =" $isUsingOneLogicalOperator" >
17+ <xsl : variable name =" condition" >
18+ <xsl : call-template name =" getCondition" >
19+ <xsl : with-param name =" condition" select =" $operators[1]" />
20+ </xsl : call-template >
21+ </xsl : variable >
22+ <xsl : element name =" {$condition}" namespace =" http://www.opengis.net/ogc" >
23+ <xsl : for-each select =" filter" >
24+ <xsl : call-template name =" processFilter" >
25+ <xsl : with-param name =" filter" select =" current()" />
26+ </xsl : call-template >
27+ </xsl : for-each >
28+ </xsl : element >
29+
30+ </xsl : when >
31+ <xsl : otherwise >
32+ <xsl : call-template name =" processFilters" >
33+ <xsl : with-param name =" filters" select =" ." />
34+ <xsl : with-param name =" position" select =" count(./filter)" />
35+ </xsl : call-template >
36+ </xsl : otherwise >
37+ </xsl : choose >
1438 </ogc : Filter >
1539 </xsl : template >
1640
You can’t perform that action at this time.
0 commit comments