tests/misc/error-code/error-code-019.xsl
changeset 895 c964d5bbd00e
parent 894 0fc26a1f66f4
child 896 b99b90a57a1c
equal deleted inserted replaced
894:0fc26a1f66f4 895:c964d5bbd00e
     1 <xsl:stylesheet version="2.0" 
       
     2 	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 	
       
     3 >
       
     4 	
       
     5 	<!-- TEST xsl:namespace declaring the default namespace (XSLT 2.0) -->
       
     6 	<!-- this is an error if the element is in no namespace -->
       
     7 	<?spec xslt#errors?><?error XTDE0440?>
       
     8 	
       
     9 	<xsl:param name="param" select="'http://a-namespace-uri/'"/>
       
    10 
       
    11 	<xsl:template match="/">
       
    12 		<out xmlns:x="http://some.uri/">
       
    13 		  <xsl:namespace name=""><xsl:value-of select="$param"/></xsl:namespace>
       
    14 		  <xsl:attribute name="new">at XSLT 2.0</xsl:attribute>
       
    15 		</out>
       
    16 	</xsl:template>
       
    17 
       
    18 </xsl:stylesheet>