xml-xalan-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mk...@apache.org
Subject cvs commit: xml-xalan/test/tests/conf-gold/ver ver08.out
Date Thu, 23 Oct 2003 13:42:09 GMT
mkwan       2003/10/23 06:42:09

  Added:       test/tests/conf/ver ver08.xml ver08.xsl
               test/tests/conf-gold/ver ver08.out
  Removed:     test/tests/conf/extend extend06.xml extend06.xsl
               test/tests/conf-gold/extend extend06.out
  Log:
  Apply the patch from Joanne Tong(joannet@ca.ibm.com) for bugzilla 23706
  
  Add new testcase ver08 and remove old testcase extend06. The testcase tests
  xsl:fallback with unsupported elements.
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conf/ver/ver08.xml
  
  Index: ver08.xml
  ===================================================================
  <?xml version='1.0'?>
  <doc>
  	<in>
  		<ok>xsl ok</ok>
  		<notok>xsl not ok</notok>
  	</in>	
  </doc>
  
  
  
  1.1                  xml-xalan/test/tests/conf/ver/ver08.xsl
  
  Index: ver08.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet version="1.1" 
  	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  	<!-- FileName: ver08 -->
  	<!-- Document: http://www.w3.org/TR/xslt -->
  	<!-- DocVersion: 19991116 -->
  	<!-- Section: 15 Fallback -->
  	<!-- Author: Joanne Tong -->
  	<!-- Purpose: Test fallback for unsupported xsl elements 
  		, fallback for top-level-elements, and more than one
  		fallback child -->
  	<!-- related to bugs 23089 and 23706 -->
  
  	<xsl:foo /><!-- should ignore -->
  
  	<xsl:bar><!-- should ignore -->
  		<xsl:fallback>
  			<doh />
  		</xsl:fallback>
  	</xsl:bar>
  
  	<xsl:template match="in">
  			<xsl:import-table HREF="blah.asp" name="sample">
  				<doh><!-- should ignore -->
  					<xsl:value-of select="notok" />
  				</doh>
  				<xsl:fallback>
  					<out1>
  						<xsl:value-of select="ok" />
  					</out1>
  					<xsl:import-table>
  						<xsl:fallback>
  							<out2>
  								<xsl:value-of select="ok" />
  							</out2>
  						</xsl:fallback>
  						<xsl:fallback>
  							<out3>
  								<xsl:value-of select="ok" />
  							</out3>
  						</xsl:fallback>						
  					</xsl:import-table>
  					<xsl:fallback><!-- should ignore -->
  						<doh />
  					</xsl:fallback>
  				</xsl:fallback>
  			</xsl:import-table>
  			<xsl:if test="false()">
  				<xsl:import-table /><!-- should not throw error -->
  			</xsl:if>			
  	</xsl:template>
  	
  	<xsl:template match="/">
  		<out>
  			<xsl:apply-templates />
  		</out>
  	</xsl:template>	
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf-gold/ver/ver08.out
  
  Index: ver08.out
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <out>
  	<out1>xsl ok</out1><out2>xsl ok</out2><out3>xsl ok</out3>

  </out>
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message