You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mi...@apache.org on 2003/09/18 20:51:48 UTC

cvs commit: xml-xalan/test/tests/conf-gold/extend extend06.out

minchau     2003/09/18 11:51:48

  Added:       test/tests/conf/extend extend06.xml extend06.xsl
               test/tests/conf-gold/extend extend06.out
  Log:
  New testcase for Bugzilla 23089
  Submitted by:	Joanne Tong
  Reviewed by:	Brian Minchau
  
  New testcase tests that fallback works for an element:
  <xsl:blah>
    <xsl:fallback> ... </xsl:fallback>
  </xsl:blah>
  where xsl is not an extension namespace but the XSL one and
  where "blah" is not a valid element name under that namespace.
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conf/extend/extend06.xml
  
  Index: extend06.xml
  ===================================================================
  <?xml version='1.0'?>
  <doc>
  	<ok>You should see this</ok>
  	<notok>You should not see this</notok>
  </doc>
  
  
  
  1.1                  xml-xalan/test/tests/conf/extend/extend06.xsl
  
  Index: extend06.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet version="1.1" 
  	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  	xmlns:tes="http://www.test.org" 
  	extension-element-prefixes="tes">
  
  	<!-- FileName: extend06 -->
  	<!-- Document: http://www.w3.org/TR/xslt -->
  	<!-- DocVersion: 19991116 -->
  	<!-- Section: 14 Extensions -->
  	<!-- Author: Joanne Tong -->
  	<!-- Purpose: Test fallback for unsupported xsl elements 
  		and fallback for top-level-elements -->
  	<!-- related to bug 23089 -->
  
  	<xsl:foo /><!-- should ignore -->
  
  	<xsl:bar>
  		<!-- should ignore -->
  		<xsl:fallback>
  			<out />
  		</xsl:fallback>
  	</xsl:bar>
  
  	<xsl:template match="/doc">
  		<out>
  			<xsl:import-table HREF="blah.asp" name="sample">
  				<doh>
  					<xsl:value-of select="notok" />
  				</doh>
  				<xsl:fallback>
  					<import-table>
  						<xsl:value-of select="ok" />
  					</import-table>
  					<tes:blah>
  						<xsl:fallback>
  							<blah>
  								<xsl:value-of select="ok" />
  							</blah>
  						</xsl:fallback>
  					</tes:blah>
  				</xsl:fallback>
  			</xsl:import-table>
  			<xsl:blah>
  				<doh>
  					<xsl:value-of select="notok" />
  				</doh>
  			</xsl:blah>
  			<blah>
  				<xsl:value-of select="ok" />
  			</blah>
  		</out>
  	</xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf-gold/extend/extend06.out
  
  Index: extend06.out
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <out><import-table>You should see this</import-table><blah>You should see this</blah><blah>You should see this</blah></out>
  
  
  

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