You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by dm...@locus.apache.org on 2000/12/15 20:45:02 UTC
cvs commit: xml-xalan/test/tests/conf/dflt dflt04.xsl dflt01.xsl dflt01_1.xml dflt02.xml dflt02.xsl dflt03.xml dflt03.xsl dflt04.xml dflt01.xml
dmarston 00/12/15 11:45:02
Added: test/tests/conf/dflt dflt04.xsl dflt01.xsl dflt01_1.xml
dflt02.xml dflt02.xsl dflt03.xml dflt03.xsl
dflt04.xml dflt01.xml
Log:
Copy of tests in Lotus/IBM repository
Revision Changes Path
1.1 xml-xalan/test/tests/conf/dflt/dflt04.xsl
Index: dflt04.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml"/>
<!-- FileName: DFLT04 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 5.8 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of built-in template for elements for a named mode. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates mode="good"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="text()"><!-- Should never trigger -->
<xsl:value-of select="translate(.,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>
</xsl:template>
<xsl:template match="*"><!-- Should never trigger -->
<xsl:text>Reverted on: </xsl:text><xsl:value-of select="."/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/dflt/dflt01.xsl
Index: dflt01.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: DFLT01 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 5.8 -->
<!-- Creator: Paul Dick -->
<!-- Purpose: Test for built-in template rule for attributes.-->
<xsl:template match="doc">
<out>
<xsl:apply-templates select="@test"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/dflt/dflt01_1.xml
Index: dflt01_1.xml
===================================================================
<?xml version="1.0"?>
<doc>
<section index="section1" index2="atr2val">
<section index="subSection1.1">
<p>Hello</p>
<p>Hello again.</p>
</section>
</section>
<section index="section2">
<p>Hello2</p>
<section index="subSection2.1">
<p>Hello</p>
<p>Hello again.</p>
</section>
<section index="subSection2.2">
<p>Hello</p>
<p>Hello again.</p>
</section>
<p>Hello2 again.</p>
<section index="subSection2.3">
<p>Hello</p>
<p>Hello again.</p>
</section>
</section>
</doc>
1.1 xml-xalan/test/tests/conf/dflt/dflt02.xml
Index: dflt02.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<way-out-yonder-west/>
<out-yonder-west/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-east/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-west/>
</center>
<near-east/>hello
<east/>whatsup
<far-east/>goodbye
</near-north>
</north>
<way-out-yonder-east/>
<out-yonder-east/>
</far-north>
1.1 xml-xalan/test/tests/conf/dflt/dflt02.xsl
Index: dflt02.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml"/>
<!-- FileName: DFLT02 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 5.8 -->
<!-- Creator: Paul Dick -->
<!-- Purpose: Test of built-in template for text nodes. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="following-sibling::node()"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="node()">
<xsl:value-of select="position()"/>node:<xsl:value-of select="name()"/>,
</xsl:template>
<!-- For testing this should remain commented out. It shows how all nodes
are processed, particularly the text nodes.
<xsl:template match="text()">
<xsl:value-of select="position()"/>text:<xsl:value-of select="."/>,
</xsl:template>
-->
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/dflt/dflt03.xml
Index: dflt03.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>WentNearSouth
<south>WentSouth
<far-south>WentFarSouth</far-south>BackToSouth
</south>BackToNearSouth
</near-south>BackToCentral
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/dflt/dflt03.xsl
Index: dflt03.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml"/>
<!-- FileName: DFLT03 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 5.8 -->
<!-- Purpose: Test of built-in template for elements. -->
<!-- Creator: David Marston -->
<!-- Use the built-in template for text to show that we hit each descendant -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates/>
</xsl:for-each>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/dflt/dflt04.xml
Index: dflt04.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>WentNearSouth
<south>WentSouth
<far-south>WentFarSouth</far-south>BackToSouth
</south>BackToNearSouth
</near-south>BackToCentral
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/dflt/dflt01.xml
Index: dflt01.xml
===================================================================
<?xml version="1.0"?>
<doc test="attr on doc elem">
</doc>