Test Coverage Report

Stylesheet: /build/src/main/resources/xslt/lib/constraintChecks.xslt

module: /build/src/main/resources/xslt/lib/constraintChecks.xslt; 22 lines

01: <?xml version="1.0" encoding="UTF-8"?>
02: <xsl:stylesheet
03: 	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
04: 	version='2.0'
05: 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
06: 	xmlns:zenta="http://magwas.rulez.org/zenta">
07: 
08: 
09: 	<xsl:function name="zenta:exactlyOne">
10: 		<xsl:param name="selected"/>
11: 		<xsl:param name="errmsg"/>
12: 		<xsl:copy-of select="
13: 			if(count($selected)=1)
14: 				then ()
15: 				else if (count($selected) = 0)
16: 				then $errmsg
17: 				else (string-join($selected/concat(@name,': ',@id),' , '))
18: 		"/>
19: 	</xsl:function>
20: 
21: </xsl:stylesheet>
22: