```xml
           <p:choose>
                <p:when test="$test-count-min or $test-count-max">
                    <px:message message="the 'test' option and the 'test-count-*' options cannot be specified at the same time; only 'test' will be evaluated">
                        <p:with-option name="severity" select="'WARN'"/>
                    </px:message>
                </p:when>
                <p:when test="$test='true'">
                    <!-- assertion passed; do nothing -->
                    <p:add-attribute match="/*" attribute-name="result" attribute-value="true"/>
                </p:when>
                <p:otherwise>
                    <!-- assertion failed -->
                    <p:add-attribute match="/*" attribute-name="result" attribute-value="false"/>
                </p:otherwise>
            </p:choose>
```