tests/misc/error-code/error-code-152.xsl
changeset 895 c964d5bbd00e
parent 894 0fc26a1f66f4
child 896 b99b90a57a1c
equal deleted inserted replaced
894:0fc26a1f66f4 895:c964d5bbd00e
     1 <?xml version="1.0"?> 
       
     2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
       
     3 
       
     4   <!-- PURPOSE: Test validation when version matches supported version. -->
       
     5   <!-- This stylesheet should flag an error. -->
       
     6   <?spec xslt#errors?><?error XTSE0010?>
       
     7   
       
     8   <xsl:template match="/">
       
     9     <out>
       
    10       <xsl:choose>
       
    11         <xsl:when test="number(system-property('xsl:version')) >= 8.0">
       
    12           <xsl:exciting-new-8.5-feature/>
       
    13         </xsl:when>
       
    14         <xsl:otherwise>
       
    15           <xsl:message>This stylesheet requires XSLT 1.0 or higher</xsl:message>
       
    16         </xsl:otherwise>
       
    17       </xsl:choose>
       
    18     </out>
       
    19   </xsl:template>
       
    20    
       
    21 </xsl:stylesheet>