tests/misc/error-code/error-code-182.xsl
changeset 895 c964d5bbd00e
parent 894 0fc26a1f66f4
child 896 b99b90a57a1c
equal deleted inserted replaced
894:0fc26a1f66f4 895:c964d5bbd00e
     1 <?xml version="1.0" encoding="ISO-8859-1"?>
       
     2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
       
     3 xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs">
       
     4 
       
     5 <!-- PURPOSE:  "." used when not a node - static error even though never executed -->
       
     6 <?spec xpath#errors?><?error XPTY0004?>
       
     7 
       
     8 <xsl:template match="/">
       
     9 <a/>
       
    10 <xsl:message>***** error not detected! *****</xsl:message>
       
    11 </xsl:template>
       
    12 
       
    13 <xsl:function name="f:doc" xmlns:f="http://f.com/">
       
    14   <xsl:for-each select="1 to 5">
       
    15     <xsl:value-of select="(1 to 5)[name() = 'a']"/>
       
    16   </xsl:for-each>
       
    17 </xsl:function>
       
    18 </xsl:stylesheet>