dmarston 00/12/15 13:53:29
Added: test/tests/conf/string string99.xsl string01.xml
string01.xsl string02.xml string02.xsl string04.xml
string04.xsl string05.xml string05.xsl string06.xml
string06.xsl string07.xml string07.xsl string08.xml
string08.xsl string09.xml string09.xsl string10.xml
string10.xsl string100.xml string100.xsl
string101.xml string101.xsl string102.xml
string102.xsl string103.xml string103.xsl
string104.xml string104.xsl string105.xml
string105.xsl string106.xml string106.xsl
string107.xml string107.xsl string108.xml
string108.xsl string109.xml string109.xsl
string11.xml string11.xsl string110.xml
string110.xsl string111.xml string111.xsl
string112.xml string112.xsl string113.xml
string113.xsl string114.xml string114.xsl
string115.xml string115.xsl string116.xml
string116.xsl string117.xml string117.xsl
string118.xml string118.xsl string119.xml
string119.xsl string12.xml string12.xsl
string120.xml string120.xsl string121.xml
string121.xsl string122.xml string122.xsl
string123.xml string123.xsl string124.xml
string124.xsl string125.xml string125.xsl
string126.xml string126.xsl string127.xml
string127.xsl string128.xml string128.xsl
string129.xml string129.xsl string13.xml
string13.xsl string130.xml string130.xsl
string131.xml string131.xsl string132.xml
string132.xsl string133.xml string133.xsl
string134.xml string134.xsl string135.xml
string135.xsl string14.xml string14.xsl
string15.xml string15.xsl string16.xml string16.xsl
string17.xml string17.xsl string18.xml string18.xsl
string19.xml string19.xsl string20.xml string20.xsl
string21.xml string21.xsl string22.xml string22.xsl
string30.xml string30.xsl string31.xml string31.xsl
string32.xml string32.xsl string33.xml string33.xsl
string34.xml string34.xsl string35.xml string35.xsl
string36.xml string36.xsl string37.xml string37.xsl
string38.xml string38.xsl string39.xml string39.xsl
string40.xml string40.xsl string41.xml string41.xsl
string42.xml string42.xsl string43.xml string43.xsl
string44.xml string44.xsl string45.xml string45.xsl
string46.xml string46.xsl string47.xml string47.xsl
string48.xml string48.xsl string49.xml string49.xsl
string50.xml string50.xsl string51.xml string51.xsl
string52.xml string52.xsl string53.xml string53.xsl
string54.xml string54.xsl string55.xml string55.xsl
string56.xml string56.xsl string57.xml string57.xsl
string58.xml string58.xsl string59.xml string59.xsl
string60.xml string60.xsl string61.xml string61.xsl
string62.xml string62.xsl string63.xml string63.xsl
string64.xml string64.xsl string65.xml string65.xsl
string66.xml string66.xsl string67.xml string67.xsl
string68.xml string68.xsl string69.xml string69.xsl
string70.xml string70.xsl string71.xml string71.xsl
string72.xml string72.xsl string73.xml string73.xsl
string74.xml string74.xsl string75.xml string75.xsl
string76.xml string76.xsl string77.xml string77.xsl
string78.xml string78.xsl string79.xml string79.xsl
string80.xml string80.xsl string81.xml string81.xsl
string82.xml string82.xsl string83.xml string83.xsl
string84.xml string84.xsl string85.xml string85.xsl
string86.xml string86.xsl string87.xml string87.xsl
string88.xml string88.xsl string89.xml string89.xsl
string90.xml string90.xsl string91.xml string91.xsl
string92.xml string92.xsl string93.xml string93.xsl
string94.xml string94.xsl string95.xml string95.xsl
string96.xml string96.xsl string97.xml string97.xsl
string98.xml string98.xsl string99.xml htmllat1.dtd
Log:
Copy of tests in Lotus/IBM repository
Revision Changes Path
1.1 xml-xalan/test/tests/conf/string/string99.xsl
Index: string99.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str99 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'concat()' function with nodes. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="concat(a, b, c, d, e)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string01.xml
Index: string01.xml
===================================================================
<?xml version="1.0"?>
<doc>Test</doc>
1.1 xml-xalan/test/tests/conf/string/string01.xsl
Index: string01.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str01 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'string-length()' w/ string. -->
<xsl:template match="/">
<out>
<xsl:value-of select="string-length('This is a test')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string02.xml
Index: string02.xml
===================================================================
<?xml version="1.0"?>
<doc>Test</doc>
1.1 xml-xalan/test/tests/conf/string/string02.xsl
Index: string02.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str02 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'string-length()' of element node -->
<xsl:template match="/">
<out>
<xsl:value-of select="string-length(doc)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string04.xml
Index: string04.xml
===================================================================
<?xml version="1.0"?>
<doc>
<a>Testing this</a>
<b>and this too</b>
</doc>
1.1 xml-xalan/test/tests/conf/string/string04.xsl
Index: string04.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str04 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'string-length()' w/no arguments, and w/
specific context node. -->
<xsl:template match="/">
<out>
<xsl:value-of select="string-length()"/><xsl:text> </xsl:text>
<xsl:value-of select="string-length(doc/a)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string05.xml
Index: string05.xml
===================================================================
<?xml version="1.0"?>
<doc>Test</doc>
1.1 xml-xalan/test/tests/conf/string/string05.xsl
Index: string05.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str05 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'string()' conversion w/ element node -->
<xsl:template match="/">
<out>
<xsl:value-of select="string(doc)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string06.xml
Index: string06.xml
===================================================================
<?xml version="1.0"?>
<doc attr="slamwich">ENCYCLOPEDIA</doc>
1.1 xml-xalan/test/tests/conf/string/string06.xsl
Index: string06.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str06 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'starts-with()' -->
<xsl:template match="/">
<out>
<xsl:value-of select="starts-with('ENCYCLOPEDIA', 'ENCY')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string07.xml
Index: string07.xml
===================================================================
<?xml version="1.0"?>
<doc attr="slamwich">ENCYCLOPEDIA</doc>
1.1 xml-xalan/test/tests/conf/string/string07.xsl
Index: string07.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str07 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'contains()' -->
<xsl:template match="/">
<out>
<xsl:value-of select="contains('ENCYCLOPEDIA', 'CYCL')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string08.xml
Index: string08.xml
===================================================================
<?xml version="1.0"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string08.xsl
Index: string08.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str08 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring-before()' -->
<xsl:template match="/">
<out>
<xsl:value-of select="substring-before('1999/04/01', '/')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string09.xml
Index: string09.xml
===================================================================
<?xml version="1.0"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string09.xsl
Index: string09.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str09 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring-after()' -->
<xsl:template match="/">
<out>
<xsl:value-of select="substring-after('1999/04/01', '/')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string10.xml
Index: string10.xml
===================================================================
<?xml version="1.0"?>
<doc>
<a> This is a
normalized
text node from
the
source document.</a>
</doc>
1.1 xml-xalan/test/tests/conf/string/string10.xsl
Index: string10.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str10 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'normalize-space()' function -->
<xsl:template match="/doc">
<out>
<xsl:value-of select="normalize-space('	
ab
cd	
ef	 ')"/><xsl:text> </xsl:text>
<xsl:value-of select="normalize-space(a)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string100.xml
Index: string100.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a>a</a>
<b>b</b>
<c>c</c>
<d>d</d>
<e>ef</e>
</doc>
1.1 xml-xalan/test/tests/conf/string/string100.xsl
Index: string100.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str100 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'concat()' -->
<xsl:template match="doc">
<out>
<xsl:value-of select="concat("cd", "34")"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string101.xml
Index: string101.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a>a</a>
<b>b</b>
<c>c</c>
<d>d</d>
<e>ef</e>
</doc>
1.1 xml-xalan/test/tests/conf/string/string101.xsl
Index: string101.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str101 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'concat()' -->
<xsl:template match="doc">
<out>
<xsl:value-of select="concat("cd", 34)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string102.xml
Index: string102.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a>a</a>
<b>b</b>
<c>c</c>
<d>d</d>
<e>ef</e>
</doc>
1.1 xml-xalan/test/tests/conf/string/string102.xsl
Index: string102.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: STR102 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of concat() on entities and expressions -->
<xsl:template match="doc">
<out>
<xsl:value-of select="concat("bc", string(23))"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string103.xml
Index: string103.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a>a</a>
<b>b</b>
<c>c</c>
<d>d</d>
<e>ef</e>
</doc>
1.1 xml-xalan/test/tests/conf/string/string103.xsl
Index: string103.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str103 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'concat()' -->
<xsl:template match="doc">
<out>
<xsl:value-of select="concat(a, 34)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string104.xml
Index: string104.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a>a</a>
<b>b</b>
<c>c</c>
<d>d</d>
<e>ef</e>
</doc>
1.1 xml-xalan/test/tests/conf/string/string104.xsl
Index: string104.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str104 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'concat()' -->
<xsl:template match="doc">
<out>
<xsl:value-of select="concat(false(),'ly')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string105.xml
Index: string105.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a>a</a>
<b>b</b>
<c>c</c>
<d>d</d>
<e attr="whatsup">what's up</e>
</doc>
1.1 xml-xalan/test/tests/conf/string/string105.xsl
Index: string105.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: STR105 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Special case of concat() with one argument.
Strictly speaking, this should fail just like STRerr14. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="concat(/*, /[EMAIL PROTECTED]'whatsup'])"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string106.xml
Index: string106.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/string/string106.xsl
Index: string106.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str106 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19990922 -->
<!-- Section: 12.3 Number Formatting -->
<!-- Purpose: Test of 'format-number()' -->
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number(1000, '###0')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string107.xml
Index: string107.xml
===================================================================
<?xml version="1.0"?>
<doc>
<av>
<a>
<b>b</b>
<c>c</c>
<d>d</d>
<e>e</e>
</a>
<v>
<w>w</w>
<x>x</x>
<y>y</y>
<z>z</z>
</v>
</av>
</doc>
1.1 xml-xalan/test/tests/conf/string/string107.xsl
Index: string107.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: STR107 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'string()' function on an RTF with sub-nodes. -->
<xsl:variable name="ResultTreeFragTest">
<xsl:value-of select="doc/av"/>
</xsl:variable>
<xsl:template match="doc">
<out>
<xsl:value-of select="string($ResultTreeFragTest)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string108.xml
Index: string108.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/string/string108.xsl
Index: string108.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str108 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19990922 -->
<!-- Section: 12.3 Number Formatting -->
<!-- Purpose: Test of 'format-number()' -->
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number(1, '00')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string109.xml
Index: string109.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/string/string109.xsl
Index: string109.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str109 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19990922 -->
<!-- Section: 12.3 Number Formatting -->
<!-- Purpose: Test of 'format-number()' -->
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number(1, '00.0')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string11.xml
Index: string11.xml
===================================================================
<?xml version="1.0"?>
<doc>
<a attrib="hello">bar</a>
<b attrib="HELLO">BAR</b>
</doc>
1.1 xml-xalan/test/tests/conf/string/string11.xsl
Index: string11.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str11 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'translate()' -->
<xsl:template match="/doc">
<out>
<xsl:value-of select='translate("bar","abc","ABC")'/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string110.xml
Index: string110.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/string/string110.xsl
Index: string110.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str110 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19990922 -->
<!-- Section: 12.3 Number Formatting -->
<!-- Purpose: Test of 'format-number()' -->
<xsl:template match="doc">
<out>
<xsl:value-of select="format-number(0.25, '00%')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string111.xml
Index: string111.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string111.xsl
Index: string111.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str111 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring()' -->
<xsl:template match="doc">
<out>
<xsl:value-of select="substring('ENCYCLOPEDIA', 8, 3)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string112.xml
Index: string112.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string112.xsl
Index: string112.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str112 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring()' -->
<xsl:template match="doc">
<out>
<xsl:value-of select="substring('ENCYCLOPEDIA', 8)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string113.xml
Index: string113.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string113.xsl
Index: string113.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str113 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring()' -->
<xsl:template match="doc">
<out>
<xsl:value-of select="substring('abcdefghijk',0 div 0, 5)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string114.xml
Index: string114.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string114.xsl
Index: string114.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str114 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring()' -->
<xsl:template match="doc">
<out>
<xsl:value-of select="substring('abcdefghijk',4, 6)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string115.xml
Index: string115.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string115.xsl
Index: string115.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str115 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring()' -->
<xsl:template match="doc">
<out>
<xsl:value-of select="substring('1999/04/01', 1, 0)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string116.xml
Index: string116.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string116.xsl
Index: string116.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str116 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring()' -->
<xsl:template match="doc">
<out>
<xsl:value-of select="substring(doc, 1, 4)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string117.xml
Index: string117.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string117.xsl
Index: string117.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str117 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring()' -->
<xsl:template match="doc">
<out>
<xsl:value-of select="substring(foo, 2, 2)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string118.xml
Index: string118.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string118.xsl
Index: string118.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str118 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring()' -->
<xsl:template match="doc">
<out>
<xsl:value-of select="substring(doc/@attr, 1, 3)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string119.xml
Index: string119.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string119.xsl
Index: string119.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str119 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring()' -->
<xsl:template match="doc">
<out>
<xsl:value-of select="substring(doc/@attr, 4)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string12.xml
Index: string12.xml
===================================================================
<?xml version="1.0"?>
<doc>
<a>a</a>
<b>b</b>
<c>c</c>
<d>d</d>
<e>ef</e>
</doc>
1.1 xml-xalan/test/tests/conf/string/string12.xsl
Index: string12.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str09 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'concat()' -->
<xsl:template match="doc">
<out>
<xsl:value-of select='concat("x","yz")'/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string120.xml
Index: string120.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string120.xsl
Index: string120.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str120 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring()' -->
<xsl:template match="/">
<out>
<xsl:value-of select="substring(doc/@attr, 2.5, 3.6)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string121.xml
Index: string121.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a attrib="hello"> bar fly </a>
<b attrib="HELLO">BAR</b>
</doc>
1.1 xml-xalan/test/tests/conf/string/string121.xsl
Index: string121.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str121 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'translate()' -->
<xsl:template match="doc">
<out>
<xsl:variable name="s" select="a"/>
<xsl:value-of select='translate(normalize-space($s), " ",
"_")'/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string122.xml
Index: string122.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<av>
<a>
<b>b</b>
<c>c</c>
<d>d</d>
<e>e</e></a>
<v>
<w>w</w>
<x>x</x>
<y>y</y>
<z>z</z>
</v>
</av>
</doc>
1.1 xml-xalan/test/tests/conf/string/string122.xsl
Index: string122.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str122 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: string(nodeset) returns string value of the node in the
node-set that is first in document order.' -->
<xsl:template match="doc">
<out>
<xsl:value-of select="string(av//*)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string123.xml
Index: string123.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>Test<a>ing</a>String</doc>
1.1 xml-xalan/test/tests/conf/string/string123.xsl
Index: string123.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: STR123 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'string()' function with no arguments. -->
<!-- "If the argument is omitted, it defaults to a node-set
with the context node as its only member."
BUT this node has text and element children, all of which get
concatenated. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="string()"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string124.xml
Index: string124.xml
===================================================================
<doc>
Mother's house's door
SYMBOL 180 \f "Symbol" \s1
SYMBOL 180 \f "Symbol" \s1
</doc>
1.1 xml-xalan/test/tests/conf/string/string124.xsl
Index: string124.xsl
===================================================================
<?xml version = "1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0" >
<!-- FileName: STR124 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'contains()' function searching for an entity. -->
<xsl:strip-space elements = "*"/>
<xsl:output method = "xml"/>
<xsl:template match="text()[contains(., 'SYMBOL 180 \f "')]"
priority="2">
Found match of entity
</xsl:template>
<xsl:template match="*">
<out>
<xsl:apply-templates/>
</out>
</xsl:template>
<xsl:template match="text()" priority="1"/><!-- Suppress text copying if
contains() fails -->
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string125.xml
Index: string125.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<main>fu manchu</main>
<sub>foo</sub>
</doc>
1.1 xml-xalan/test/tests/conf/string/string125.xsl
Index: string125.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str125 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'contains()' function with nodes for both arguments,
string is not in it. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="contains(main,sub)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string126.xml
Index: string126.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<main>fu manchu</main>
<sub>fu</sub>
</doc>
1.1 xml-xalan/test/tests/conf/string/string126.xsl
Index: string126.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str126 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'contains()' function with nodes for both arguments,
string is in it. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="contains(main,sub)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string127.xml
Index: string127.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<main>foo</main>
<main>achoo</main>
<main>fu manchu</main>
<sub>fu</sub>
</doc>
1.1 xml-xalan/test/tests/conf/string/string127.xsl
Index: string127.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str127 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'contains()' function with two paths,
first argument is multiple nodes, first of those nodes does NOT
contain the string. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="contains(main,sub)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string128.xml
Index: string128.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<main>fu manchu</main>
<sub>foo</sub>
<sub>fu</sub>
<sub>few</sub>
</doc>
1.1 xml-xalan/test/tests/conf/string/string128.xsl
Index: string128.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str128 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'contains()' function with two paths,
second argument is multiple nodes, first of those nodes does NOT
contain the string. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="contains(main,sub)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string129.xml
Index: string129.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>p & q</doc>
1.1 xml-xalan/test/tests/conf/string/string129.xsl
Index: string129.xsl
===================================================================
<?xml version = "1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0" >
<!-- FileName: str129 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'contains()' function using a numbered entity. -->
<xsl:strip-space elements = "*"/>
<xsl:output method = "xml" indent = "yes"/>
<xsl:template match="doc">
<out>
<xsl:value-of select="contains(., '&')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string13.xml
Index: string13.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/string/string13.xsl
Index: string13.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str13 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'format-number()' function. -->
<xsl:template match="/">
<out>
<xsl:value-of select="format-number(1, '#,##0')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string130.xml
Index: string130.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>98.6° F</doc>
1.1 xml-xalan/test/tests/conf/string/string130.xsl
Index: string130.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE HTMLlat1 SYSTEM "HTMLlat1.dtd">
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0" >
<!-- FileName: str130 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'contains()' function using a numbered entity. -->
<xsl:output method="html"/>
<xsl:strip-space elements = "*"/>
<xsl:template match="doc">
<HTML>
<xsl:value-of select="contains(., '°')"/>
</HTML>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string131.xml
Index: string131.xml
===================================================================
<?xml version="1.0"?>
<doc>17</doc>
1.1 xml-xalan/test/tests/conf/string/string131.xsl
Index: string131.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: STR131 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'string()' with zero arguments. Context node just has
one text child. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="string()"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string132.xml
Index: string132.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/string/string132.xsl
Index: string132.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: STR132 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of default (no functions) conversion of integers. -->
<xsl:template match="/">
<out><xsl:text>Positive numbers: </xsl:text>
<xsl:value-of select="1"/><xsl:text>,</xsl:text>
<xsl:value-of select="12"/><xsl:text>,</xsl:text>
<xsl:value-of select="123"/><xsl:text>,</xsl:text>
<xsl:value-of select="1234"/><xsl:text>,</xsl:text>
<xsl:value-of select="12345"/><xsl:text>,</xsl:text>
<xsl:value-of select="123456"/><xsl:text>,</xsl:text>
<xsl:value-of select="1234567"/><xsl:text>,</xsl:text>
<xsl:value-of select="12345678"/><xsl:text>,</xsl:text>
<xsl:value-of select="123456789"/><xsl:text>,</xsl:text>
<xsl:value-of select="1234567890"/><xsl:text> </xsl:text>
<xsl:value-of select="12345678901"/><xsl:text>,</xsl:text>
<xsl:value-of select="123456789012"/><xsl:text>,</xsl:text>
<xsl:value-of select="1234567890123"/><xsl:text>,</xsl:text>
<xsl:value-of select="12345678901234"/><xsl:text>,</xsl:text>
<xsl:value-of select="123456789012345"/><xsl:text> </xsl:text>
<xsl:value-of select="1234567890123456"/><xsl:text>,</xsl:text>
<xsl:value-of select="12345678901234567"/><xsl:text>,</xsl:text>
<xsl:value-of select="123456789012345678"/><xsl:text> </xsl:text>
<xsl:text>Negative numbers: </xsl:text>
<xsl:value-of select="-1"/><xsl:text>,</xsl:text>
<xsl:value-of select="-12"/><xsl:text>,</xsl:text>
<xsl:value-of select="-123"/><xsl:text>,</xsl:text>
<xsl:value-of select="-1234"/><xsl:text>,</xsl:text>
<xsl:value-of select="-12345"/><xsl:text>,</xsl:text>
<xsl:value-of select="-123456"/><xsl:text>,</xsl:text>
<xsl:value-of select="-1234567"/><xsl:text>,</xsl:text>
<xsl:value-of select="-12345678"/><xsl:text>,</xsl:text>
<xsl:value-of select="-123456789"/><xsl:text>,</xsl:text>
<xsl:value-of select="-1234567890"/><xsl:text> </xsl:text>
<xsl:value-of select="-12345678901"/><xsl:text>,</xsl:text>
<xsl:value-of select="-123456789012"/><xsl:text>,</xsl:text>
<xsl:value-of select="-1234567890123"/><xsl:text>,</xsl:text>
<xsl:value-of select="-12345678901234"/><xsl:text>,</xsl:text>
<xsl:value-of select="-123456789012345"/><xsl:text> </xsl:text>
<xsl:value-of select="-1234567890123456"/><xsl:text>,</xsl:text>
<xsl:value-of select="-12345678901234567"/><xsl:text>,</xsl:text>
<xsl:value-of select="-123456789012345678"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string133.xml
Index: string133.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/string/string133.xsl
Index: string133.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: STR133 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of default (no functions) conversion of decimal numbers
with fractions. -->
<xsl:template match="/">
<out><xsl:text>Positive numbers: </xsl:text>
<xsl:value-of select=".1"/><xsl:text>,</xsl:text>
<xsl:value-of select=".01"/><xsl:text>,</xsl:text>
<xsl:value-of select=".012"/><xsl:text>,</xsl:text>
<xsl:value-of select=".0123"/><xsl:text>,</xsl:text>
<xsl:value-of select=".01234"/><xsl:text>,</xsl:text>
<xsl:value-of select=".012345"/><xsl:text>,</xsl:text>
<xsl:value-of select=".0123456"/><xsl:text>,</xsl:text>
<xsl:value-of select=".01234567"/><xsl:text> </xsl:text>
<xsl:value-of select=".012345678"/><xsl:text>,</xsl:text>
<xsl:value-of select=".0123456789"/><xsl:text>,</xsl:text>
<xsl:value-of select=".10123456789"/><xsl:text>,</xsl:text>
<xsl:value-of select=".101234567892"/><xsl:text>,</xsl:text>
<xsl:value-of select=".1012345678923"/><xsl:text> </xsl:text>
<xsl:value-of select=".10123456789234"/><xsl:text>,</xsl:text>
<xsl:value-of select=".101234567892345"/><xsl:text>,</xsl:text>
<xsl:value-of select=".1012345678923456"/><xsl:text>,</xsl:text>
<xsl:value-of select=".10123456789234567"/><xsl:text> </xsl:text>
<xsl:value-of select=".101234567892345678"/><xsl:text>,</xsl:text>
<xsl:value-of select=".1012345678923456789"/><xsl:text>,</xsl:text>
<xsl:value-of select=".10123456789234567893"/><xsl:text> </xsl:text>
<xsl:text>Negative numbers: </xsl:text>
<xsl:value-of select="-.1"/><xsl:text>,</xsl:text>
<xsl:value-of select="-.01"/><xsl:text>,</xsl:text>
<xsl:value-of select="-.012"/><xsl:text>,</xsl:text>
<xsl:value-of select="-.0123"/><xsl:text>,</xsl:text>
<xsl:value-of select="-.01234"/><xsl:text>,</xsl:text>
<xsl:value-of select="-.012345"/><xsl:text>,</xsl:text>
<xsl:value-of select="-.0123456"/><xsl:text>,</xsl:text>
<xsl:value-of select="-.01234567"/><xsl:text> </xsl:text>
<xsl:value-of select="-.012345678"/><xsl:text>,</xsl:text>
<xsl:value-of select="-.0123456789"/><xsl:text>,</xsl:text>
<xsl:value-of select="-.10123456789"/><xsl:text>,</xsl:text>
<xsl:value-of select="-.101234567892"/><xsl:text>,</xsl:text>
<xsl:value-of select="-.1012345678923"/><xsl:text> </xsl:text>
<xsl:value-of select="-.10123456789234"/><xsl:text>,</xsl:text>
<xsl:value-of select="-.101234567892345"/><xsl:text>,</xsl:text>
<xsl:value-of select="-.1012345678923456"/><xsl:text>,</xsl:text>
<xsl:value-of select="-.10123456789234567"/><xsl:text> </xsl:text>
<xsl:value-of select="-.101234567892345678"/><xsl:text>,</xsl:text>
<xsl:value-of select="-.1012345678923456789"/><xsl:text>,</xsl:text>
<xsl:value-of select="-.10123456789234567893"/><xsl:text> </xsl:text>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string134.xml
Index: string134.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/string/string134.xsl
Index: string134.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: STR134 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of default (no functions) conversion of decimal numbers
with decimal point at all positions. -->
<xsl:template match="/">
<out><xsl:text>Positive numbers: </xsl:text>
<xsl:value-of select="9.87654321012345"/><xsl:text>,</xsl:text>
<xsl:value-of select="98.7654321012345"/><xsl:text>,</xsl:text>
<xsl:value-of select="987.654321012345"/><xsl:text>,</xsl:text>
<xsl:value-of select="9876.54321012345"/><xsl:text> </xsl:text>
<xsl:value-of select="98765.4321012345"/><xsl:text>,</xsl:text>
<xsl:value-of select="987654.321012345"/><xsl:text>,</xsl:text>
<xsl:value-of select="9876543.21012345"/><xsl:text>,</xsl:text>
<xsl:value-of select="98765432.1012345"/><xsl:text> </xsl:text>
<xsl:value-of select="987654321.012345"/><xsl:text>,</xsl:text>
<xsl:value-of select="9876543210.12345"/><xsl:text>,</xsl:text>
<xsl:value-of select="98765432101.2345"/><xsl:text>,</xsl:text>
<xsl:value-of select="987654321012.345"/><xsl:text> </xsl:text>
<xsl:value-of select="9876543210123.45"/><xsl:text>,</xsl:text>
<xsl:value-of select="98765432101234.5"/><xsl:text> </xsl:text>
<xsl:text>Negative numbers: </xsl:text>
<xsl:value-of select="-9.87654321012345"/><xsl:text>,</xsl:text>
<xsl:value-of select="-98.7654321012345"/><xsl:text>,</xsl:text>
<xsl:value-of select="-987.654321012345"/><xsl:text>,</xsl:text>
<xsl:value-of select="-9876.54321012345"/><xsl:text> </xsl:text>
<xsl:value-of select="-98765.4321012345"/><xsl:text>,</xsl:text>
<xsl:value-of select="-987654.321012345"/><xsl:text>,</xsl:text>
<xsl:value-of select="-9876543.21012345"/><xsl:text>,</xsl:text>
<xsl:value-of select="-98765432.1012345"/><xsl:text> </xsl:text>
<xsl:value-of select="-987654321.012345"/><xsl:text>,</xsl:text>
<xsl:value-of select="-9876543210.12345"/><xsl:text>,</xsl:text>
<xsl:value-of select="-98765432101.2345"/><xsl:text>,</xsl:text>
<xsl:value-of select="-987654321012.345"/><xsl:text> </xsl:text>
<xsl:value-of select="-9876543210123.45"/><xsl:text>,</xsl:text>
<xsl:value-of select="-98765432101234.5"/><xsl:text> </xsl:text>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string135.xml
Index: string135.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/string/string135.xsl
Index: string135.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: STR135 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of default (no functions) conversion of small decimal
numbers. -->
<xsl:template match="/">
<out><xsl:text>Positive numbers: </xsl:text>
<xsl:value-of select=".123456789"/><xsl:text>,</xsl:text>
<xsl:value-of select=".0123456789"/><xsl:text>,</xsl:text>
<xsl:value-of select=".00123456789"/><xsl:text>,</xsl:text>
<xsl:value-of select=".000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of select=".0000123456789"/><xsl:text> </xsl:text>
<xsl:value-of select=".00000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of select=".000000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of select=".0000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of select=".00000000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of select=".000000000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of select=".0000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of select=".00000000000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of select=".000000000000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of select=".0000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of select=".00000000000000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of
select=".000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of select=".0000000000000000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of
select=".00000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select=".000000000000000000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of
select=".0000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select=".00000000000000000000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of
select=".000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select=".0000000000000000000000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of
select=".00000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select=".000000000000000000000000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of
select=".0000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select=".00000000000000000000000000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of
select=".000000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select=".0000000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select=".00000000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select=".000000000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select=".0000000000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select=".00000000000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select=".000000000000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select=".0000000000000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select=".00000000000000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select=".000000000000000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select=".0000000000000000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select=".00000000000000000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select=".000000000000000000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select=".0000000000000000000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:text>Negative numbers: </xsl:text>
<xsl:value-of select="-.123456789"/><xsl:text>,</xsl:text>
<xsl:value-of select="-.0123456789"/><xsl:text>,</xsl:text>
<xsl:value-of select="-.00123456789"/><xsl:text>,</xsl:text>
<xsl:value-of select="-.000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of select="-.0000123456789"/><xsl:text> </xsl:text>
<xsl:value-of select="-.00000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of select="-.000000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of select="-.0000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of select="-.00000000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of select="-.000000000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of select="-.0000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of select="-.00000000000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of select="-.000000000000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of
select="-.0000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of select="-.00000000000000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of
select="-.000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of select="-.0000000000000000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of
select="-.00000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select="-.000000000000000000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of
select="-.0000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select="-.00000000000000000000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of
select="-.000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select="-.0000000000000000000000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of
select="-.00000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select="-.000000000000000000000000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of
select="-.0000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select="-.00000000000000000000000000123456789"/><xsl:text>,</xsl:text>
<xsl:value-of
select="-.000000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select="-.0000000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select="-.00000000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select="-.000000000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select="-.0000000000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select="-.00000000000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select="-.000000000000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select="-.0000000000000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select="-.00000000000000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select="-.000000000000000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select="-.0000000000000000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select="-.00000000000000000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select="-.000000000000000000000000000000000000000123456789"/><xsl:text> </xsl:text>
<xsl:value-of
select="-.0000000000000000000000000000000000000000123456789"/><xsl:text> </xsl:text>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string14.xml
Index: string14.xml
===================================================================
<?xml version="1.0"?>
<doc>
<av>
<a>
<b>b</b>
<c>c</c>
<d>d</d>
<e>e</e>
</a>
<v>
<w>w</w>
<x>x</x>
<y>y</y>
<z>z</z>
</v>
</av>
</doc>
1.1 xml-xalan/test/tests/conf/string/string14.xsl
Index: string14.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: STR14 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'string()' conversion on a variable containing a
node-set -->
<xsl:template match="/">
<xsl:variable name="which" select="doc/av//*"/>
<out>
<xsl:value-of select="string($which)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string15.xml
Index: string15.xml
===================================================================
<?xml version="1.0"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string15.xsl
Index: string15.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str15 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring()' function. -->
<xsl:template match="/">
<out>
<xsl:value-of select="substring('1999/04/01', 1, 4)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string16.xml
Index: string16.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/string/string16.xsl
Index: string16.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str16 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select='substring("12345", 1.5, 2.6)'/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string17.xml
Index: string17.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/string/string17.xsl
Index: string17.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str17 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select='substring("12345", 0, 3)'/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string18.xml
Index: string18.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/string/string18.xsl
Index: string18.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str18 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select='substring("12345", 0 div 0, 3)'/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string19.xml
Index: string19.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/string/string19.xsl
Index: string19.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str19 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select='substring("12345", 1, 0 div 0)'/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string20.xml
Index: string20.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/string/string20.xsl
Index: string20.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str20 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select='substring("12345", -42, 1 div 0)'/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string21.xml
Index: string21.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/string/string21.xsl
Index: string21.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str21 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select='substring("12345", -1 div 0, 1 div 0)'/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string22.xml
Index: string22.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/string/string22.xsl
Index: string22.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str22 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring()' function on non-existent node -->
<xsl:template match="doc">
<out>
<xsl:value-of select='substring(foo, 12, 3)'/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string30.xml
Index: string30.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc xmlns="http://xsl.lotus.com/ns2" xmlns:ns1="http://xsl.lotus.com/ns1">
<ns1:a attrib1="test" xmlns="http://xsl.lotus.com/ns2"
xmlns:ns1="http://xsl.lotus.com/ns1"/>
<b ns1:attrib2="test"/>
</doc>
1.1 xml-xalan/test/tests/conf/string/string30.xsl
Index: string30.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:baz1="http://xsl.lotus.com/ns1"
xmlns:baz2="http://xsl.lotus.com/ns2">
<!-- FileName: str30 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.1 Node Set Functions. -->
<!-- Purpose: Test of 'namespace-uri()'. -->
<xsl:template match="baz2:doc">
<out>
<xsl:value-of select="namespace-uri(baz1:a/@baz2:attrib1)"
xmlns:baz1="http://xsl.lotus.com/ns1" xmlns:baz2="http://xsl.lotus.com/ns2"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string31.xml
Index: string31.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc xmlns="http://xsl.lotus.com/ns2" xmlns:ns1="http://xsl.lotus.com/ns1">
<ns1:a attrib1="test" xmlns="http://xsl.lotus.com/ns2"
xmlns:ns1="http://xsl.lotus.com/ns1"/>
<b ns1:attrib2="test"/>
</doc>
1.1 xml-xalan/test/tests/conf/string/string31.xsl
Index: string31.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:baz1="http://xsl.lotus.com/ns1"
xmlns:baz2="http://xsl.lotus.com/ns2">
<!-- DOCUMENT: http://www.w3.org/TR/xpath -->
<!-- SECTION: 4.1 Node Set Functions. -->
<!-- PURPOSE: Test of 'namespace-uri()'. -->
<xsl:template match="baz2:doc">
<out>
<xsl:value-of select="namespace-uri(baz2:b/@baz1:attrib2)"
xmlns:baz1="http://xsl.lotus.com/ns1" xmlns:baz2="http://xsl.lotus.com/ns2"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string32.xml
Index: string32.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc xmlns="http://xsl.lotus.com/ns2" xmlns:ns1="http://xsl.lotus.com/ns1">
<ns1:a attrib1="test" xmlns="http://xsl.lotus.com/ns2"
xmlns:ns1="http://xsl.lotus.com/ns1"/>
<b ns1:attrib2="test"/>
</doc>
1.1 xml-xalan/test/tests/conf/string/string32.xsl
Index: string32.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:baz1="http://xsl.lotus.com/ns1"
xmlns:baz2="http://xsl.lotus.com/ns2">
<!-- DOCUMENT: http://www.w3.org/TR/xpath -->
<!-- SECTION: 4.1 Node Set Functions. -->
<!-- PURPOSE: Test of 'name()'. -->
<xsl:template match="baz2:doc">
<out>
<xsl:value-of select="name(*)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string33.xml
Index: string33.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc xmlns="http://xsl.lotus.com/ns2" xmlns:ns1="http://xsl.lotus.com/ns1">
<ns1:a attrib1="test" xmlns="http://xsl.lotus.com/ns2"
xmlns:ns1="http://xsl.lotus.com/ns1"/>
<b ns1:attrib2="test"/>
</doc>
1.1 xml-xalan/test/tests/conf/string/string33.xsl
Index: string33.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:baz1="http://xsl.lotus.com/ns1"
xmlns:baz2="http://xsl.lotus.com/ns2">
<!-- DOCUMENT: http://www.w3.org/TR/xpath -->
<!-- SECTION: 4.1 Node Set Functions. -->
<!-- PURPOSE: Test of 'name()'. -->
<xsl:template match="baz2:doc">
<out>
<xsl:value-of select="name(baz1:a)" xmlns:baz1="http://xsl.lotus.com/ns1"
xmlns:baz2="http://xsl.lotus.com/ns2"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string34.xml
Index: string34.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc xmlns="http://xsl.lotus.com/ns2" xmlns:ns1="http://xsl.lotus.com/ns1">
<ns1:a attrib1="test" xmlns="http://xsl.lotus.com/ns2"
xmlns:ns1="http://xsl.lotus.com/ns1"/>
<b ns1:attrib2="test"/>
</doc>
1.1 xml-xalan/test/tests/conf/string/string34.xsl
Index: string34.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:baz1="http://xsl.lotus.com/ns1"
xmlns:baz2="http://xsl.lotus.com/ns2">
<!-- DOCUMENT: http://www.w3.org/TR/xpath -->
<!-- SECTION: 4.1 Node Set Functions. -->
<!-- PURPOSE: Test of 'name()'. -->
<xsl:template match="baz2:doc">
<out>
<xsl:value-of select="name(baz2:b)" xmlns:baz1="http://xsl.lotus.com/ns1"
xmlns:baz2="http://xsl.lotus.com/ns2"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string35.xml
Index: string35.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc xmlns="http://xsl.lotus.com/ns2" xmlns:ns1="http://xsl.lotus.com/ns1">
<ns1:a attrib1="test" xmlns="http://xsl.lotus.com/ns2"
xmlns:ns1="http://xsl.lotus.com/ns1"/>
<b ns1:attrib2="test"/>
</doc>
1.1 xml-xalan/test/tests/conf/string/string35.xsl
Index: string35.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:baz1="http://xsl.lotus.com/ns1"
xmlns:baz2="http://xsl.lotus.com/ns2">
<!-- DOCUMENT: http://www.w3.org/TR/xpath -->
<!-- SECTION: 4.1 Node Set Functions. -->
<!-- PURPOSE: Test of 'name()'. -->
<xsl:template match="baz2:doc">
<out>
<xsl:value-of select="name(baz1:a/@baz2:attrib1)"
xmlns:baz1="http://xsl.lotus.com/ns1" xmlns:baz2="http://xsl.lotus.com/ns2"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string36.xml
Index: string36.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc xmlns="http://xsl.lotus.com/ns2" xmlns:ns1="http://xsl.lotus.com/ns1">
<ns1:a attrib1="test" xmlns="http://xsl.lotus.com/ns2"
xmlns:ns1="http://xsl.lotus.com/ns1"/>
<b ns1:attrib2="test"/>
</doc>
1.1 xml-xalan/test/tests/conf/string/string36.xsl
Index: string36.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:baz1="http://xsl.lotus.com/ns1"
xmlns:baz2="http://xsl.lotus.com/ns2">
<!-- DOCUMENT: http://www.w3.org/TR/xpath -->
<!-- SECTION: 4.1 Node Set Functions. -->
<!-- PURPOSE: Test of 'name()'. -->
<xsl:template match="baz2:doc">
<out>
<xsl:value-of select="name(baz2:b/@baz1:attrib2)"
xmlns:baz1="http://xsl.lotus.com/ns1" xmlns:baz2="http://xsl.lotus.com/ns2"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string37.xml
Index: string37.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>Test</doc>
1.1 xml-xalan/test/tests/conf/string/string37.xsl
Index: string37.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str37 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'string()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="string(foo)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string38.xml
Index: string38.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>Test</doc>
1.1 xml-xalan/test/tests/conf/string/string38.xsl
Index: string38.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str38 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'string()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="string(0)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string39.xml
Index: string39.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>Test</doc>
1.1 xml-xalan/test/tests/conf/string/string39.xsl
Index: string39.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str39 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'string()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="string(2)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string40.xml
Index: string40.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>Test</doc>
1.1 xml-xalan/test/tests/conf/string/string40.xsl
Index: string40.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str40 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'string()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="string('test')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string41.xml
Index: string41.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>Test</doc>
1.1 xml-xalan/test/tests/conf/string/string41.xsl
Index: string41.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str41 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'string()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="string('')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string42.xml
Index: string42.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>Test</doc>
1.1 xml-xalan/test/tests/conf/string/string42.xsl
Index: string42.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: STR42 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'string()' function on a simple RTF. -->
<xsl:variable name="ResultTreeFragTest">
<xsl:value-of select="doc"/>
</xsl:variable>
<xsl:template match="doc">
<out>
<xsl:value-of select="string($ResultTreeFragTest)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string43.xml
Index: string43.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>Test</doc>
1.1 xml-xalan/test/tests/conf/string/string43.xsl
Index: string43.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str43 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'string()' function with empty RTF. -->
<xsl:variable name="emptyResultTreeFragTest">
<xsl:value-of select="foo"/>
</xsl:variable>
<xsl:template match="doc">
<out>
<xsl:value-of select="string($emptyResultTreeFragTest)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string44.xml
Index: string44.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="slamwich">ENCYCLOPEDIA</doc>
1.1 xml-xalan/test/tests/conf/string/string44.xsl
Index: string44.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str44 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'starts-with()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="starts-with('ENCYCLOPEDIA', 'EN')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string45.xml
Index: string45.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="slamwich">ENCYCLOPEDIA</doc>
1.1 xml-xalan/test/tests/conf/string/string45.xsl
Index: string45.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str45 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'starts-with()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="starts-with('ENCYCLOPEDIA', 'en')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string46.xml
Index: string46.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="slamwich">ENCYCLOPEDIA</doc>
1.1 xml-xalan/test/tests/conf/string/string46.xsl
Index: string46.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str46 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'starts-with()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="starts-with('ab', 'abc')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string47.xml
Index: string47.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="slamwich">ENCYCLOPEDIA</doc>
1.1 xml-xalan/test/tests/conf/string/string47.xsl
Index: string47.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str47 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'starts-with()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="starts-with('abc', 'bc')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string48.xml
Index: string48.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="slamwich">ENCYCLOPEDIA</doc>
1.1 xml-xalan/test/tests/conf/string/string48.xsl
Index: string48.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str48 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'starts-with()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="starts-with('abc', '')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string49.xml
Index: string49.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="slamwich">ENCYCLOPEDIA</doc>
1.1 xml-xalan/test/tests/conf/string/string49.xsl
Index: string49.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str49 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'starts-with()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="starts-with('','')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string50.xml
Index: string50.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="slamwich">ENCYCLOPEDIA</doc>
1.1 xml-xalan/test/tests/conf/string/string50.xsl
Index: string50.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str50 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'starts-with()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="starts-with('true()', 'tr')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string51.xml
Index: string51.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="slamwich">ENCYCLOPEDIA</doc>
1.1 xml-xalan/test/tests/conf/string/string51.xsl
Index: string51.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str51 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'starts-with()' function with node. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="starts-with(doc, 'ENCY')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string52.xml
Index: string52.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="slamwich">ENCYCLOPEDIA</doc>
1.1 xml-xalan/test/tests/conf/string/string52.xsl
Index: string52.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str52 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'starts-with()' function with node. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="starts-with(doc, 'test')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string53.xml
Index: string53.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="slamwich">ENCYCLOPEDIA</doc>
1.1 xml-xalan/test/tests/conf/string/string53.xsl
Index: string53.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str53 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'starts-with()' function w/ attribute. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="starts-with(doc/@attr, 'slam')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string54.xml
Index: string54.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="slamwich">ENCYCLOPEDIA</doc>
1.1 xml-xalan/test/tests/conf/string/string54.xsl
Index: string54.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str54 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'starts-with()' function with attribute. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="starts-with(doc/@attr, 'wich')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string55.xml
Index: string55.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="slamwich">ENCYCLOPEDIA</doc>
1.1 xml-xalan/test/tests/conf/string/string55.xsl
Index: string55.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str55 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'contains()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="contains('ENCYCLOPEDIA', 'TEST')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string56.xml
Index: string56.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>ENCYCLOPEDIA</doc>
1.1 xml-xalan/test/tests/conf/string/string56.xsl
Index: string56.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str56 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'contains()' function using variables. -->
<xsl:variable name="find" select="'CY'"/>
<xsl:template match="/">
<xsl:variable name="node" select="doc"/>
<out>
<xsl:value-of select="contains($node,$find)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string57.xml
Index: string57.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>ENCYCLOPEDIA</doc>
1.1 xml-xalan/test/tests/conf/string/string57.xsl
Index: string57.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str57 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'contains()' function using expressions. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="contains(concat(.,'BC'),concat('A','B','C'))"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string58.xml
Index: string58.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="slamwich">ENCYCLOPEDIA</doc>
1.1 xml-xalan/test/tests/conf/string/string58.xsl
Index: string58.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str58 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'contains()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="contains('ab', 'abc')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string59.xml
Index: string59.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="slamwich">ENCYCLOPEDIA</doc>
1.1 xml-xalan/test/tests/conf/string/string59.xsl
Index: string59.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str59 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'contains()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="contains('abc', 'bc')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string60.xml
Index: string60.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="slamwich">ENCYCLOPEDIA</doc>
1.1 xml-xalan/test/tests/conf/string/string60.xsl
Index: string60.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str60 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'contains()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="contains('abc', 'bcd')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string61.xml
Index: string61.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="slamwich">ENCYCLOPEDIA</doc>
1.1 xml-xalan/test/tests/conf/string/string61.xsl
Index: string61.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str61 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'contains()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="contains('abc', '')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string62.xml
Index: string62.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="slamwich">ENCYCLOPEDIA</doc>
1.1 xml-xalan/test/tests/conf/string/string62.xsl
Index: string62.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str62 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'contains()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="contains('','')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string63.xml
Index: string63.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="slamwich">ENCYCLOPEDIA</doc>
1.1 xml-xalan/test/tests/conf/string/string63.xsl
Index: string63.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str63 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'contains()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="contains('true()', 'e')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string64.xml
Index: string64.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="slamwich">ENCYCLOPEDIA</doc>
1.1 xml-xalan/test/tests/conf/string/string64.xsl
Index: string64.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str64 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'contains()' function with node as 1st argument,
string is in it. -->
<xsl:template match="/">
<out>
<xsl:value-of select="contains(doc, 'CYCL')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string65.xml
Index: string65.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="slamwich">ENCYCLOPEDIA</doc>
1.1 xml-xalan/test/tests/conf/string/string65.xsl
Index: string65.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str65 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'contains()' function with node as 1st argument,
string is not in it. -->
<xsl:template match="/">
<out>
<xsl:value-of select="contains(doc, 'TEST')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string66.xml
Index: string66.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="slamwich">ENCYCLOPEDIA</doc>
1.1 xml-xalan/test/tests/conf/string/string66.xsl
Index: string66.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str66 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'contains()' function with attribute as 1st argument,
string is in it. -->
<xsl:template match="/">
<out>
<xsl:value-of select="contains(doc/@attr, 'amwi')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string67.xml
Index: string67.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="slamwich">ENCYCLOPEDIA</doc>
1.1 xml-xalan/test/tests/conf/string/string67.xsl
Index: string67.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str67 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'contains()' function with attribute as 1st argument,
string is not in it. -->
<xsl:template match="/">
<out>
<xsl:value-of select="contains(doc/@attr, 'TEST')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string68.xml
Index: string68.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string68.xsl
Index: string68.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str68 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring-before()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="substring-before('ENCYCLOPEDIA', '/')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string69.xml
Index: string69.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string69.xsl
Index: string69.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str69 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring-before()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="substring-before('ENCYCLOPEDIA', 'C')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string70.xml
Index: string70.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string70.xsl
Index: string70.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str70 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring-before()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="substring-before('ENCYCLOPEDIA', 'c')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string71.xml
Index: string71.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string71.xsl
Index: string71.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str71 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring-before()' function with node. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="substring-before(doc, '/')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string72.xml
Index: string72.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string72.xsl
Index: string72.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str72 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring-before()' function with empty node. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="substring-before(foo, '/')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string73.xml
Index: string73.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string73.xsl
Index: string73.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str73 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring-before()' function with attribute. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="substring-before(doc/@attr, 'z')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string74.xml
Index: string74.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string74.xsl
Index: string74.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str74 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring-before()' function with attribute. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="substring-before(doc/@attr, 'D')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string75.xml
Index: string75.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string75.xsl
Index: string75.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str75 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring-before()' function with attribute. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="substring-before(doc/@attr, 'd')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string76.xml
Index: string76.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string76.xsl
Index: string76.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str76 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring-after()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="substring-after('ENCYCLOPEDIA', '/')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string77.xml
Index: string77.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string77.xsl
Index: string77.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str77 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring-after()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="substring-after('ENCYCLOPEDIA', 'C')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string78.xml
Index: string78.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string78.xsl
Index: string78.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str78 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring-after()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="substring-after('abcdefghijk','l')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string79.xml
Index: string79.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string79.xsl
Index: string79.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str79 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring-after()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="substring-after('1999/04/01', '1')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string80.xml
Index: string80.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string80.xsl
Index: string80.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str80 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring-after()' function with node. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="substring-after(doc, '/')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string81.xml
Index: string81.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string81.xsl
Index: string81.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str81 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring-after()' function with empty node. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="substring-after(foo, '/')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string82.xml
Index: string82.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string82.xsl
Index: string82.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str82 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring-after()' function with attribute -->
<xsl:template match="doc">
<out>
<xsl:value-of select="substring-after(doc/@attr, 'z')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string83.xml
Index: string83.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string83.xsl
Index: string83.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str83 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring-after()' function with attribute. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="substring-after(doc/@attr, 'D')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string84.xml
Index: string84.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc attr="abcdefg">1999/04/01</doc>
1.1 xml-xalan/test/tests/conf/string/string84.xsl
Index: string84.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str84 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'substring-after()' function with attribute. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="substring-after(doc/@attr, 'd')"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string85.xml
Index: string85.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a> This is a normalized string.</a>
</doc>
1.1 xml-xalan/test/tests/conf/string/string85.xsl
Index: string85.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str85 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'normalize-space()' function with node. -->
<xsl:variable name="thisvalue">This is a test</xsl:variable>
<xsl:template match="doc">
<out>
<xsl:value-of select="normalize-space(a)"/>
<xsl:value-of select="normalize-space($thisvalue)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string86.xml
Index: string86.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a> This is a normalized string.</a>
</doc>
1.1 xml-xalan/test/tests/conf/string/string86.xsl
Index: string86.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str86 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'normaliz-space()' function with empty node. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="normalize-space()"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string87.xml
Index: string87.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a attrib="hello">bar</a>
<b attrib="HELLO">BAR</b>
</doc>
1.1 xml-xalan/test/tests/conf/string/string87.xsl
Index: string87.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str87 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'translate()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of
select="translate("BAR","abc","ABC")"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string88.xml
Index: string88.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a attrib="hello">bar</a>
<b attrib="HELLO">BAR</b>
</doc>
1.1 xml-xalan/test/tests/conf/string/string88.xsl
Index: string88.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str88 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'translate()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of
select="translate("bar","RAB","xyz")"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string89.xml
Index: string89.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a attrib="hello">bar</a>
<b attrib="HELLO">BAR</b>
</doc>
1.1 xml-xalan/test/tests/conf/string/string89.xsl
Index: string89.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str89 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'translate()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of
select="translate("BAR","Rab","TxX")"/><xsl:text>,</xsl:text>
<xsl:value-of select='translate("B'B","'","`")'/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string90.xml
Index: string90.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a attrib="hello">bar</a>
<b attrib="HELLO">BAR</b>
</doc>
1.1 xml-xalan/test/tests/conf/string/string90.xsl
Index: string90.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str90 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'translate()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of
select="translate(a,"abc","ABC")"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string91.xml
Index: string91.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a attrib="hello">bar</a>
<b attrib="HELLO">BAR</b>
</doc>
1.1 xml-xalan/test/tests/conf/string/string91.xsl
Index: string91.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str91 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'translate()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of
select="translate(b,"ABC","abc")"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string92.xml
Index: string92.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a attrib="hello">bar</a>
<b attrib="HELLO">BAR</b>
</doc>
1.1 xml-xalan/test/tests/conf/string/string92.xsl
Index: string92.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str92 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'translate()' function with attributes. -->
<xsl:template match="doc">
<out>
<xsl:value-of
select="translate(a/@attrib,"lo","IT")"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string93.xml
Index: string93.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a attrib="hello">bar</a>
<b attrib="HELLO">BAR</b>
</doc>
1.1 xml-xalan/test/tests/conf/string/string93.xsl
Index: string93.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str93 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'translate()' function with attributes. -->
<xsl:template match="doc">
<out>
<xsl:value-of
select="translate(b/@attrib,"LO","it")"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string94.xml
Index: string94.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a attrib="hello">bar</a>
<b attrib="HELLO">BAR</b>
</doc>
1.1 xml-xalan/test/tests/conf/string/string94.xsl
Index: string94.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str94 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'translate()' function with attributes. -->
<xsl:template match="doc">
<out>
<xsl:value-of
select="translate(b/@attrib,"lo","it")"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string95.xml
Index: string95.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a attrib="hello">bar</a>
<b attrib="HELLO">BAR</b>
</doc>
1.1 xml-xalan/test/tests/conf/string/string95.xsl
Index: string95.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str95 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'translate()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of
select="translate("zzaaazzz","abcz","ABC")"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string96.xml
Index: string96.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a attrib="hello">bar</a>
<b attrib="HELLO">BAR</b>
</doc>
1.1 xml-xalan/test/tests/conf/string/string96.xsl
Index: string96.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str96 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'translate()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of
select="translate("ddaaadddd","abcd","ABCxy")"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string97.xml
Index: string97.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a>a</a>
<b>b</b>
<c>c</c>
<d>d</d>
<e>ef</e>
</doc>
1.1 xml-xalan/test/tests/conf/string/string97.xsl
Index: string97.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str97 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'concat()' function. -->
<xsl:template match="doc">
<out>
<xsl:value-of
select="concat("a","b","c","d","ef")"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string98.xml
Index: string98.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a>a</a>
<b>b</b>
<c>c</c>
<d>d</d>
<e>ef</e>
</doc>
1.1 xml-xalan/test/tests/conf/string/string98.xsl
Index: string98.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: str98 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 4.2 String Functions -->
<!-- Purpose: Test of 'concat()' function with nodes. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="concat(a, b)"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string99.xml
Index: string99.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a>a</a>
<b>b</b>
<c>c</c>
<d>d</d>
<e>ef</e>
</doc>
1.1 xml-xalan/test/tests/conf/string/htmllat1.dtd
Index: htmllat1.dtd
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!-- Portions (C) International Organization for Standardization 1986
Permission to copy in any form is granted for use with
conforming SGML systems and applications as defined in
ISO 8879, provided this notice is included in all copies.
-->
<!-- Character entity set. Typical invocation:
<!ENTITY % HTMLlat1 PUBLIC
"-//W3C//ENTITIES Latin 1//EN//HTML">
%HTMLlat1;
-->
<!ENTITY nbsp " " >
<!ENTITY iexcl "¡" >
<!ENTITY cent "¢" >
<!ENTITY pound "£" >
<!ENTITY curren "¤" >
<!ENTITY yen "¥" >
<!ENTITY brvbar "¦" >
<!ENTITY sect "§" >
<!ENTITY uml "¨" >
<!ENTITY copy "©" >
<!ENTITY ordf "ª" >
<!ENTITY laquo "«" >
<!ENTITY not "¬" >
<!ENTITY shy "­" >
<!ENTITY reg "®" >
<!ENTITY macr "¯" >
<!ENTITY deg "°" >
<!ENTITY plusmn "±" >
<!ENTITY sup2 "²" >
<!ENTITY sup3 "³" >
<!ENTITY acute "´" >
<!ENTITY micro "µ" >
<!ENTITY para "¶" >
<!ENTITY middot "·" >
<!ENTITY cedil "¸" >
<!ENTITY sup1 "¹" >
<!ENTITY ordm "º" >
<!ENTITY raquo "»" >
<!ENTITY frac14 "¼" >
<!ENTITY frac12 "½" >
<!ENTITY frac34 "¾" >
<!ENTITY iquest "¿" >
<!ENTITY Agrave "À" >
<!ENTITY Aacute "Á" >
<!ENTITY Acirc "Â" >
<!ENTITY Atilde "Ã" >
<!ENTITY Auml "Ä" >
<!ENTITY Aring "Å" >
<!ENTITY AElig "Æ" >
<!ENTITY Ccedil "Ç" >
<!ENTITY Egrave "È" >
<!ENTITY Eacute "É" >
<!ENTITY Ecirc "Ê" >
<!ENTITY Euml "Ë" >
<!ENTITY Igrave "Ì" >
<!ENTITY Iacute "Í" >
<!ENTITY Icirc "Î" >
<!ENTITY Iuml "Ï" >
<!ENTITY ETH "Ð" >
<!ENTITY Ntilde "Ñ" >
<!ENTITY Ograve "Ò" >
<!ENTITY Oacute "Ó" >
<!ENTITY Ocirc "Ô" >
<!ENTITY Otilde "Õ" >
<!ENTITY Ouml "Ö" >
<!ENTITY times "×" >
<!ENTITY Oslash "Ø" >
<!ENTITY Ugrave "Ù" >
<!ENTITY Uacute "Ú" >
<!ENTITY Ucirc "Û" >
<!ENTITY Uuml "Ü" >
<!ENTITY Yacute "Ý" >
<!ENTITY THORN "Þ" >
<!ENTITY szlig "ß" >
<!ENTITY agrave "à" >
<!ENTITY aacute "á" >
<!ENTITY acirc "â" >
<!ENTITY atilde "ã" >
<!ENTITY auml "ä" >
<!ENTITY aring "å" >
<!ENTITY aelig "æ" >
<!ENTITY ccedil "ç" >
<!ENTITY egrave "è" >
<!ENTITY eacute "é" >
<!ENTITY ecirc "ê" >
<!ENTITY euml "ë" >
<!ENTITY igrave "ì" >
<!ENTITY iacute "í" >
<!ENTITY icirc "î" >
<!ENTITY iuml "ï" >
<!ENTITY eth "ð" >
<!ENTITY ntilde "ñ" >
<!ENTITY ograve "ò" >
<!ENTITY oacute "ó" >
<!ENTITY ocirc "ô" >
<!ENTITY otilde "õ" >
<!ENTITY ouml "ö" >
<!ENTITY divide "÷" >
<!ENTITY oslash "ø" >
<!ENTITY ugrave "ù" >
<!ENTITY uacute "ú" >
<!ENTITY ucirc "û" >
<!ENTITY uuml "ü" >
<!ENTITY yacute "ý" >
<!ENTITY thorn "þ" >
<!ENTITY yuml "ÿ" >