You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by dm...@locus.apache.org on 2000/12/16 02:06:41 UTC
cvs commit: xml-xalan/test/tests/conf/axes axes99.xsl axes01.xsl axes02.xml axes02.xsl axes03.xml axes03.xsl axes04.xml axes04.xsl axes05.xml axes05.xsl axes06.xml axes06.xsl axes07.xml axes07.xsl axes08.xml axes08.xsl axes09.xml axes09.xsl axes10.xml axes10.xsl axes100.xml axes100.xsl axes101.xml axes101.xsl axes102.xml axes102.xsl axes103.xml axes103.xsl axes104.xml axes104.xsl axes105.xml axes105.xsl axes106.xml axes106.xsl axes107.xml axes107.xsl axes108.xml axes108.xsl axes109.xml axes109.xsl axes11.xml axes11.xsl axes110.xml axes110.xsl axes111.xml axes111.xsl axes112.xml axes112.xsl axes12.xml axes12.xsl axes13.xml axes13.xsl axes14.xml axes14.xsl axes15.xml axes15.xsl axes16.xml axes16.xsl axes17.xml axes17.xsl axes18.xml axes18.xsl axes19.xml axes19.xsl axes20.xml axes20.xsl axes21.xml axes21.xsl axes22.xml axes22.xsl axes23.xml axes23.xsl axes24.xml axes24.xsl axes25.xml axes25.xsl axes26.xml axes26.xsl axes27.xml axes27.xsl axes28.xml axes28.xsl axes29.xml axes29.xsl axes30.xml axes30.xsl axes31.xml axes31.xsl axes32.xml axes32.xsl axes33.xml axes33.xsl axes34.xml axes34.xsl axes35.xml axes35.xsl axes36.xml axes36.xsl axes37.xml axes37.xsl axes38.xml axes38.xsl axes39.xml axes39.xsl axes40.xml axes40.xsl axes41.xml axes41.xsl axes42.xml axes42.xsl axes43.xml axes43.xsl axes44.xml axes44.xsl axes45.xml axes45.xsl axes46.xml axes46.xsl axes47.xml axes47.xsl axes48.xml axes48.xsl axes49.xml axes49.xsl axes50.xml axes50.xsl axes51.xml axes51.xsl axes52.xml axes52.xsl axes53.xml axes53.xsl axes54.xml axes54.xsl axes55.xml axes55.xsl axes56.xml axes56.xsl axes57.xml axes57.xsl axes58.xml axes58.xsl axes59.xml axes59.xsl axes60.xml axes60.xsl axes61.xml axes61.xsl axes62.xml axes62.xsl axes63.xml axes63.xsl axes64.xml axes64.xsl axes65.xml axes65.xsl axes66.xml axes66.xsl axes67.xml axes67.xsl axes68.xml axes68.xsl axes69.xml axes69.xsl axes70.xml axes70.xsl axes71.xml axes71.xsl axes72.xml axes72.xsl axes73.xml axes73.xsl axes74.xml axes74.xsl axes75.xml axes75.xsl axes76.xml axes76.xsl axes77.xml axes77.xsl axes78.xml axes78.xsl axes79.xml axes79.xsl axes80.xml axes80.xsl axes81.xml axes81.xsl axes82.xml axes82.xsl axes83.xml axes83.xsl axes84.xml axes84.xsl axes85.xml axes85.xsl axes86.xml axes86.xsl axes87.xml axes87.xsl axes88.xml axes88.xsl axes89.xml axes89.xsl axes90.xml axes90.xsl axes91.xml axes91.xsl axes92.xml axes92.xsl axes93.xml axes93.xsl axes94.xml axes94.xsl axes95.xml axes95.xsl axes96.xml axes96.xsl axes97.xml axes97.xsl axes98.xml axes98.xsl axes99.xml axes01.xml
dmarston 00/12/15 17:06:40
Added: test/tests/conf/axes axes99.xsl axes01.xsl axes02.xml
axes02.xsl axes03.xml axes03.xsl axes04.xml
axes04.xsl axes05.xml axes05.xsl axes06.xml
axes06.xsl axes07.xml axes07.xsl axes08.xml
axes08.xsl axes09.xml axes09.xsl axes10.xml
axes10.xsl axes100.xml axes100.xsl axes101.xml
axes101.xsl axes102.xml axes102.xsl axes103.xml
axes103.xsl axes104.xml axes104.xsl axes105.xml
axes105.xsl axes106.xml axes106.xsl axes107.xml
axes107.xsl axes108.xml axes108.xsl axes109.xml
axes109.xsl axes11.xml axes11.xsl axes110.xml
axes110.xsl axes111.xml axes111.xsl axes112.xml
axes112.xsl axes12.xml axes12.xsl axes13.xml
axes13.xsl axes14.xml axes14.xsl axes15.xml
axes15.xsl axes16.xml axes16.xsl axes17.xml
axes17.xsl axes18.xml axes18.xsl axes19.xml
axes19.xsl axes20.xml axes20.xsl axes21.xml
axes21.xsl axes22.xml axes22.xsl axes23.xml
axes23.xsl axes24.xml axes24.xsl axes25.xml
axes25.xsl axes26.xml axes26.xsl axes27.xml
axes27.xsl axes28.xml axes28.xsl axes29.xml
axes29.xsl axes30.xml axes30.xsl axes31.xml
axes31.xsl axes32.xml axes32.xsl axes33.xml
axes33.xsl axes34.xml axes34.xsl axes35.xml
axes35.xsl axes36.xml axes36.xsl axes37.xml
axes37.xsl axes38.xml axes38.xsl axes39.xml
axes39.xsl axes40.xml axes40.xsl axes41.xml
axes41.xsl axes42.xml axes42.xsl axes43.xml
axes43.xsl axes44.xml axes44.xsl axes45.xml
axes45.xsl axes46.xml axes46.xsl axes47.xml
axes47.xsl axes48.xml axes48.xsl axes49.xml
axes49.xsl axes50.xml axes50.xsl axes51.xml
axes51.xsl axes52.xml axes52.xsl axes53.xml
axes53.xsl axes54.xml axes54.xsl axes55.xml
axes55.xsl axes56.xml axes56.xsl axes57.xml
axes57.xsl axes58.xml axes58.xsl axes59.xml
axes59.xsl axes60.xml axes60.xsl axes61.xml
axes61.xsl axes62.xml axes62.xsl axes63.xml
axes63.xsl axes64.xml axes64.xsl axes65.xml
axes65.xsl axes66.xml axes66.xsl axes67.xml
axes67.xsl axes68.xml axes68.xsl axes69.xml
axes69.xsl axes70.xml axes70.xsl axes71.xml
axes71.xsl axes72.xml axes72.xsl axes73.xml
axes73.xsl axes74.xml axes74.xsl axes75.xml
axes75.xsl axes76.xml axes76.xsl axes77.xml
axes77.xsl axes78.xml axes78.xsl axes79.xml
axes79.xsl axes80.xml axes80.xsl axes81.xml
axes81.xsl axes82.xml axes82.xsl axes83.xml
axes83.xsl axes84.xml axes84.xsl axes85.xml
axes85.xsl axes86.xml axes86.xsl axes87.xml
axes87.xsl axes88.xml axes88.xsl axes89.xml
axes89.xsl axes90.xml axes90.xsl axes91.xml
axes91.xsl axes92.xml axes92.xsl axes93.xml
axes93.xsl axes94.xml axes94.xsl axes95.xml
axes95.xsl axes96.xml axes96.xsl axes97.xml
axes97.xsl axes98.xml axes98.xsl axes99.xml
axes01.xml
Log:
Copy of tests in Lotus/IBM repository (sorry about the new-lines)
Revision Changes Path
1.1 xml-xalan/test/tests/conf/axes/axes99.xsl
Index: axes99.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: axes99 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Tests apply-templates starting with a attribute axes followed
by additional relative-location-path steps. -->
<!-- Author: Paul Dick -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="@*/descendant-or-self::node()"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="@* | * | node()">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes01.xsl
Index: axes01.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output indent="yes"/>
<!-- FileName: AXES01 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'ancestor::*' Axis Identifier. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="ancestor::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/><xsl:text> </xsl:text>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes02.xml
Index: axes02.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes02.xsl
Index: axes02.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES02 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'ancestor-or-self::*' Axis Identifier -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="ancestor-or-self::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/><xsl:text> </xsl:text>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes03.xml
Index: axes03.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes03.xsl
Index: axes03.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES03 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'attribute::*' Axis Identifier. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="attribute::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*|@*">
<xsl:value-of select="name(.)"/><xsl:text> </xsl:text>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes04.xml
Index: axes04.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-east/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-west/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes04.xsl
Index: axes04.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES04 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'child::*' Axis Identifier. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="child::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/><xsl:text> </xsl:text>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes05.xml
Index: axes05.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-east/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-west/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes05.xsl
Index: axes05.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES05 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'descendant::*' Axis Identifier. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="descendant::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/><xsl:text> </xsl:text>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes06.xml
Index: axes06.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-east/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-west/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes06.xsl
Index: axes06.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES06 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'descendant-or-self::*' Axis Identifier. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="descendant-or-self::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/><xsl:text> </xsl:text>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes07.xml
Index: axes07.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<way-out-yonder-west/>
<out-yonder-west/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-east/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-west/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<way-out-yonder-east/>
<out-yonder-east/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes07.xsl
Index: axes07.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES07 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'following::*' Axis Identifier. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="following::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>,
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes08.xml
Index: axes08.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<way-out-yonder-west/>
<out-yonder-west/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-east/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-west/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<way-out-yonder-east/>
<out-yonder-east/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes08.xsl
Index: axes08.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES08 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'preceding::*' Axis Identifier with wildcard. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="preceding::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes09.xml
Index: axes09.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<way-out-yonder-west/>
<out-yonder-west/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-east/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-west/>
</center>
<near-east/>hello
<east/>whatsup
<far-east/>goodbye
</near-north>
</north>
<way-out-yonder-east/>
<out-yonder-east/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes09.xsl
Index: axes09.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: axes09 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'following-sibling::*' Axis Identifier. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="following-sibling::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>,
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes10.xml
Index: axes10.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<way-out-yonder-west/>
<out-yonder-west/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-east/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-west/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<way-out-yonder-east/>
<out-yonder-east/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes10.xsl
Index: axes10.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES10 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'preceding-sibling::*' Axis Identifier. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="preceding-sibling::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes100.xml
Index: axes100.xml
===================================================================
<?xml version="1.0"?>
<far-north> Level-1
<north-north-west1/>
<north-north-west2/>
<!-- Comment-2 --> Level-2
<?a-pi pi-2?>
<north>
<!-- Comment-3 --> Level-3
<?a-pi pi-3?>
<near-north>
<far-west/>
<west/>
<near-west/>
<!-- Comment-4 --> Level-4
<?a-pi pi-4?>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<!--Comment-5--> Level-5
<?a-pi pi-5?>
<near-south>
<!--Comment-6--> Level-6
<?a-pi pi-6?>
<south attr1="First" attr2="Last">
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes100.xsl
Index: axes100.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: axes100 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Tests apply-templates starting with a attribute axes
followed by additional relative-location-path steps. -->
<!-- Author: Paul Dick -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="@*/ancestor-or-self::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes101.xml
Index: axes101.xml
===================================================================
<?xml version="1.0"?>
<far-north> Level-1
<north-north-west1/>
<north-north-west2/>
<!-- Comment-2 --> Level-2
<?a-pi pi-2?>
<north>
<!-- Comment-3 --> Level-3
<?a-pi pi-3?>
<near-north>
<far-west/>
<west/>
<near-west/>
<!-- Comment-4 --> Level-4
<?a-pi pi-4?>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<!--Comment-5--> Level-5
<?a-pi pi-5?>
<near-south>
<!--Comment-6--> Level-6
<?a-pi pi-6?>
<south attr1="First" attr2="Last">
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes101.xsl
Index: axes101.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: axes101 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Tests apply-templates starting with a attribute axes
followed by additional relative-location-path steps. -->
<!-- Author: Paul Dick -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="@*/preceding-sibling::node()"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes102.xml
Index: axes102.xml
===================================================================
<?xml version="1.0"?>
<far-north> Level-1
<north-north-west1/>
<north-north-west2/>
<!-- Comment-2 --> Level-2
<?a-pi pi-2?>
<north>
<!-- Comment-3 --> Level-3
<?a-pi pi-3?>
<near-north>
<far-west/>
<west/>
<near-west/>
<!-- Comment-4 --> Level-4
<?a-pi pi-4?>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<!--Comment-5--> Level-5
<?a-pi pi-5?>
<near-south>
<!--Comment-6--> Level-6
<?a-pi pi-6?>
<south attr1="First" attr2="Last">
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes102.xsl
Index: axes102.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: axes102 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Tests apply-templates starting with a attribute axes
followed by additional relative-location-path steps. -->
<!-- Author: Paul Dick -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="@*/following-sibling::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes103.xml
Index: axes103.xml
===================================================================
<?xml version="1.0"?>
<far-north> Level-1
<north-north-west1/>
<north-north-west2/>
<!-- Comment-2 --> Level-2
<?a-pi pi-2?>
<north>
<!-- Comment-3 --> Level-3
<?a-pi pi-3?>
<near-north>
<far-west/>
<west/>
<near-west/>
<!-- Comment-4 --> Level-4
<?a-pi pi-4?>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<!--Comment-5--> Level-5
<?a-pi pi-5?>
<near-south>
<!--Comment-6--> Level-6
<?a-pi pi-6?>
<south attr1="First" attr2="Last">
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes103.xsl
Index: axes103.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: axes103 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Tests apply-templates starting with a attribute axes
followed by additional relative-location-path steps. -->
<!-- Author: Paul Dick -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="@*/ancestor::*/near-north/*[4]/@*/preceding::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes104.xml
Index: axes104.xml
===================================================================
<?xml version="1.0"?>
<far-north> Level-1
<north-north-west1/>
<north-north-west2/>
<!-- Comment-2 --> Level-2
<?a-pi pi-2?>
<north>
<!-- Comment-3 --> Level-3
<?a-pi pi-3?>
<near-north>
<far-west/>
<west/>
<near-west/>
<!-- Comment-4 --> Level-4
<?a-pi pi-4?>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<!--Comment-5--> Level-5
<?a-pi pi-5?>
<near-south>
<!--Comment-6--> Level-6
<?a-pi pi-6?>
<south attr1="First" attr2="Last">
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes104.xsl
Index: axes104.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: axes104 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Tests apply-templates starting with a attribute axes
followed by additional relative-location-path steps. -->
<!-- Author: Paul Dick -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="@*/ancestor::*/near-north/*[4]/@*/preceding::comment()"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="comment()">
<xsl:text> </xsl:text><xsl:value-of select="."/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes105.xml
Index: axes105.xml
===================================================================
<?xml version="1.0"?>
<far-north> Level-1
<north-north-west1/>
<north-north-west2/>
<!-- Comment-2 --> Level-2
<?a-pi pi-2?>
<north>
<!-- Comment-3 --> Level-3
<?a-pi pi-3?>
<near-north>
<far-west/>
<west/>
<near-west/>
<!-- Comment-4 --> Level-4
<?a-pi pi-4?>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<!--Comment-5--> Level-5
<?a-pi pi-5?>
<near-south>
<!--Comment-6--> Level-6
<?a-pi pi-6?>
<south attr1="First" attr2="Last">
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes105.xsl
Index: axes105.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: axes105 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Tests apply-templates starting with a attribute axes
followed by additional relative-location-path steps. -->
<!-- Author: Paul Dick -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="@*/ancestor::*/near-north/*[4]/@*/preceding::text()"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="text()">
<xsl:value-of select="' #text'"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes106.xml
Index: axes106.xml
===================================================================
<?xml version="1.0"?>
<far-north> Level-1
<north-north-west1/>
<north-north-west2/>
<!-- Comment-2 --> Level-2
<?a-pi pi-2?>
<north>
<!-- Comment-3 --> Level-3
<?a-pi pi-3?>
<near-north>
<far-west/>
<west/>
<near-west/>
<!-- Comment-4 --> Level-4
<?a-pi pi-4?>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<!--Comment-5--> Level-5
<?a-pi pi-5?>
<near-south>
<!--Comment-6--> Level-6
<?a-pi pi-6?>
<south attr1="First" attr2="Last">
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes106.xsl
Index: axes106.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: axes106 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Tests apply-templates starting with a attribute axes
followed by additional relative-location-path steps. -->
<!-- Author: Paul Dick -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="@*/ancestor::*/near-north/*[4]/@*/preceding::processing-instruction()"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="processing-instruction()">
<xsl:text> </xsl:text><xsl:value-of select="."/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes107.xml
Index: axes107.xml
===================================================================
<?xml version="1.0"?>
<far-north> Level-1
<north-north-west1/>
<north-north-west2/>
<!-- Comment-2 --> Level-2
<?a-pi pi-2?>
<north>
<!-- Comment-3 --> Level-3
<?a-pi pi-3?>
<near-north>
<far-west/>
<west/>
<near-west/>
<!-- Comment-4 --> Level-4
<?a-pi pi-4?>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<!-- Comment-5 --> Level-5
<?a-pi pi-5?>
<near-south>
<!-- Comment-6 --> Level-6
<?a-pi pi-6?>
<south attr1="First" attr2="Last">
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes107.xsl
Index: axes107.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: axes107 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Tests apply-templates starting with a attribute axes
followed by additional relative-location-path steps. -->
<!-- Author: Paul Dick -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="@*/ancestor::*/near-north/*[4]/@*/preceding::node()"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="node()">
<xsl:text>#</xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes108.xml
Index: axes108.xml
===================================================================
<?xml version="1.0"?>
<far-north> Level-1
<north-north-west1/>
<north-north-west2/>
<!-- Comment-2 --> Level-2
<?a-pi pi-2?>
<north>
<!-- Comment-3 --> Level-3
<?a-pi pi-3?>
<near-north>
<far-west/>
<west/>
<near-west/>
<!-- Comment-4 --> Level-4
<?a-pi pi-4?>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<!--Comment-5--> Level-5
<?a-pi pi-5?>
<near-south>
<!--Comment-6--> Level-6
<?a-pi pi-6?>
<south attr1="First" attr2="Last">
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes108.xsl
Index: axes108.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: axes108 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Tests apply-templates starting with a attribute axes
followed by additional relative-location-path steps. -->
<!-- Author: Paul Dick -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="@*/following::comment()"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="comment()">
<xsl:text> </xsl:text><xsl:value-of select="."/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes109.xml
Index: axes109.xml
===================================================================
<?xml version="1.0"?>
<a><b><c x="x"><d1/><d2/></c><c2/></b><b2/></a>
1.1 xml-xalan/test/tests/conf/axes/axes109.xsl
Index: axes109.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: axes109 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Tests following axes starting with a attribute axes. -->
<!-- Author: Scott Boag -->
<xsl:template match="/">
<out>
<xsl:for-each select="//c/@*">
<xsl:apply-templates select="following::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name()"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes11.xml
Index: axes11.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<way-out-yonder-west/>
<out-yonder-west/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-east/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-west/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<way-out-yonder-east/>
<out-yonder-east/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes11.xsl
Index: axes11.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES11 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'parent::*' Axis Identifier. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="parent::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes110.xml
Index: axes110.xml
===================================================================
<?xml version="1.0"?>
<far-north> Level-1
<north-north-west1/>
<north-north-west2/>
<!-- Comment-2 --> Level-2
<?a-pi pi-2?>
<north>
<!-- Comment-3 --> Level-3
<?a-pi pi-3?>
<near-north>
<far-west/>
<west/>
<near-west/>
<!-- Comment-4 --> Level-4
<?a-pi pi-4?>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<!--Comment-5--> Level-5
<?a-pi pi-5?>
<near-south>
<!--Comment-6--> Level-6
<?a-pi pi-6?>
<south attr1="First" attr2="Last">
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes110.xsl
Index: axes110.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: axes110 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Tests apply-templates starting with a attribute axes
followed by additional relative-location-path steps. -->
<!-- Author: Paul Dick -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="@*/following::processing-instruction()"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="processing-instruction()">
<xsl:text> </xsl:text><xsl:value-of select="."/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes111.xml
Index: axes111.xml
===================================================================
<?xml version="1.0"?>
<far-north> Level-1
<north-north-west1/>
<north-north-west2/>
<!-- Comment-2 --> Level-2
<?a-pi pi-2?>
<north>
<!-- Comment-3 --> Level-3
<?a-pi pi-3?>
<near-north>
<far-west/>
<west/>
<near-west/>
<!-- Comment-4 --> Level-4
<?a-pi pi-4?>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<!-- Comment-5 --> Level-5
<?a-pi pi-5?>
<near-south>
<!-- Comment-6 --> Level-6
<?a-pi pi-6?>
<south attr1="First" attr2="Last">
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes111.xsl
Index: axes111.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: axes111 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Tests apply-templates starting with a attribute axes
followed by additional relative-location-path steps. -->
<!-- Author: Paul Dick -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="@*/ancestor::*/near-north/*[4]/@*/following::node()"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="node()">
<xsl:text>#</xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes112.xml
Index: axes112.xml
===================================================================
<?xml version="1.0"?>
<far-north> Level-1
<north-north-west1/>
<north-north-west2/>
<!-- Comment-2 --> Level-2
<?a-pi pi-2?>
<north>
<!-- Comment-3 --> Level-3
<?a-pi pi-3?>
<near-north>
<far-west/>
<west/>
<near-west/>
<!-- Comment-4 --> Level-4
<?a-pi pi-4?>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<!--Comment-5--> Level-5
<?a-pi pi-5?>
<near-south>
<!--Comment-6--> Level-6
<?a-pi pi-6?>
<south attr1="First" attr2="Last">
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes112.xsl
Index: axes112.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: axes93 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Tests apply-templates starting with a attribute axes followed
by additional relative-location-path steps. -->
<!-- Author: Paul Dick -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="@*/following::text()"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="text()">
<xsl:text> #text</xsl:text>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes12.xml
Index: axes12.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<way-out-yonder-west/>
<out-yonder-west/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-east/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-west/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<way-out-yonder-east/>
<out-yonder-east/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes12.xsl
Index: axes12.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES12 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'self::*' Axis Identifier. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="self::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes13.xml
Index: axes13.xml
===================================================================
<?xml version="1.0"?>
<doc>
<foo new="true"><baz>is new</baz></foo>
<foo new="true">xyz<baz>is new but has text</baz></foo>
<foo new="false"><baz>is not new</baz></foo>
</doc>
1.1 xml-xalan/test/tests/conf/axes/axes13.xsl
Index: axes13.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES13 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for ancestor::*[...][...] and index of ancestors. -->
<xsl:template match="/">
<out>
<xsl:apply-templates/>
</out>
</xsl:template>
<xsl:template match="text()">
<xsl:choose>
<xsl:when test="ancestor::*[@new='true'][not(text())]">
<xsl:value-of select="name(ancestor::*[3])"/><xsl:text>/</xsl:text>
<xsl:value-of select="name(ancestor::*[2])"/><xsl:text>/</xsl:text>
<xsl:value-of select="name(ancestor::*[1])"/><xsl:text>/</xsl:text>
<xsl:value-of select="."/><xsl:text>
</xsl:text>
</xsl:when>
<xsl:when test="ancestor::*[2][@new]">
<xsl:value-of select="name(ancestor::*[3])"/><xsl:text>/</xsl:text>
<xsl:value-of select="name(ancestor::*[2])"/><xsl:text>/</xsl:text>
<xsl:value-of select="name(ancestor::*[1])"/><xsl:text>/</xsl:text>
<xsl:value-of select="."/><xsl:text>
</xsl:text>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes14.xml
Index: axes14.xml
===================================================================
<?xml version="1.0"?>
<doc>
<foo att1="c">
<foo att1="b">
<foo att1="a">
<baz/>
</foo>
</foo>
</foo>
</doc>
1.1 xml-xalan/test/tests/conf/axes/axes14.xsl
Index: axes14.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES14 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for ancestor-or-self::*[@att1][1]/@att1 vs. (ancestor-or-self::*)[@att1][1]/@att1. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//baz">
<xsl:value-of select="ancestor-or-self::*[@att1][1]/@att1"/><xsl:text>, </xsl:text>
<xsl:value-of select="(ancestor-or-self::*)[@att1][1]/@att1"/>
</xsl:for-each>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes15.xml
Index: axes15.xml
===================================================================
<?xml version="1.0"?>
<a>
<b att="hey">
<c att="these"/>
<d>
<e/>
<f att="should"/>
</d>
<g>
<h>
<i/>
<j att="not"/>
</h>
</g>
</b>
<k>
<l>
<m att="show"/>
<n att="up"/>
</l>
<o att="in"/>
<p att="the output"/>
</k>
</a>
1.1 xml-xalan/test/tests/conf/axes/axes15.xsl
Index: axes15.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES15 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for completion of tree using all axes. -->
<xsl:template match="/">
<out>
<xsl:text>From root:
</xsl:text>
<xsl:call-template name="show-four-directions"/>
<xsl:for-each select="descendant-or-self::*">
<xsl:text>
------------------------------------------------
</xsl:text>
<xsl:text>From </xsl:text>
<xsl:value-of select="name()"/>
<xsl:text>:
</xsl:text>
<xsl:call-template name="show-four-directions"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template name="show-four-directions">
<xsl:text>ancestors: </xsl:text>
<xsl:for-each select="ancestor::*">
<xsl:value-of select="name()"/><xsl:text> </xsl:text>
</xsl:for-each><xsl:text>
</xsl:text>
<xsl:text>preceding: </xsl:text>
<xsl:for-each select="preceding::*">
<xsl:value-of select="name()"/><xsl:text> </xsl:text>
</xsl:for-each><xsl:text>
</xsl:text>
<xsl:text>self: </xsl:text>
<xsl:for-each select="self::*">
<xsl:value-of select="name()"/><xsl:text> </xsl:text>
</xsl:for-each><xsl:text>
</xsl:text>
<xsl:text>descendant: </xsl:text>
<xsl:for-each select="descendant::*">
<xsl:value-of select="name()"/><xsl:text> </xsl:text>
</xsl:for-each><xsl:text>
</xsl:text>
<xsl:text>following: </xsl:text>
<xsl:for-each select="following::*">
<xsl:value-of select="name()"/><xsl:text> </xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes16.xml
Index: axes16.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes16.xsl
Index: axes16.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES16 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'ancestor::' Axis Identifier with index. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="ancestor::*[3]"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes17.xml
Index: axes17.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes17.xsl
Index: axes17.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES17 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'ancestor-or-self::' Axis Identifier with index. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="ancestor-or-self::*[1]"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes18.xml
Index: axes18.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes18.xsl
Index: axes18.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES18 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'attribute::' Axis Identifier with index. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="attribute::*[2]"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*|@*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes19.xml
Index: axes19.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south>
<south>
<far-south/>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes19.xsl
Index: axes19.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES19 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for '@*' abbreviated syntax. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="@*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*|@*">
<xsl:value-of select="name(.)"/><xsl:text> </xsl:text>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes20.xml
Index: axes20.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes20.xsl
Index: axes20.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES20 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for '@*' abbreviated syntax with index. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="@*[2]"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*|@*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes21.xml
Index: axes21.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes21.xsl
Index: axes21.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES21 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'child::' Axis Identifier with index. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="child::*[2]"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes22.xml
Index: axes22.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes22.xsl
Index: axes22.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES22 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'child::' Axis Identifier with element name. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="child::near-south-west"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes23.xml
Index: axes23.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes23.xsl
Index: axes23.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES23 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'descendant::' Axis Identifier with index. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="descendant::*[3]"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes24.xml
Index: axes24.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes24.xsl
Index: axes24.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES24 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'descendant::' Axis Identifier with specified element name. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="descendant::far-south"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes25.xml
Index: axes25.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes25.xsl
Index: axes25.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES25 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'descendant-or-self::' Axis Identifier with index. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="descendant-or-self::*[3]"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes26.xml
Index: axes26.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes26.xsl
Index: axes26.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES26 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'descendant-or-self::' Axis Identifier with specified element name. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="descendant-or-self::far-south"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes27.xml
Index: axes27.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes27.xsl
Index: axes27.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES27 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'descendant-or-self::' Axis Identifier with self specified. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="descendant-or-self::center"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes28.xml
Index: axes28.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes28.xsl
Index: axes28.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES28 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'following::' Axis Identifier with wildcard and index. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="following::*[4]"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes29.xml
Index: axes29.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes29.xsl
Index: axes29.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES29 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'following::' Axis Identifier with specified element name. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="following::out-yonder-east"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes30.xml
Index: axes30.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes30.xsl
Index: axes30.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES30 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'preceding::' Axis Identifier with index. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="preceding::*[4]"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes31.xml
Index: axes31.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes31.xsl
Index: axes31.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES31 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'preceding::' Axis Identifier with specified element name. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="preceding::out-yonder-west"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes32.xml
Index: axes32.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes32.xsl
Index: axes32.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES32 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'following-sibling::' Axis Identifier with index. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="following-sibling::*[2]"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes33.xml
Index: axes33.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes33.xsl
Index: axes33.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES33 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'following-sibling::' Axis Identifier with specified element name. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="following-sibling::east"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes34.xml
Index: axes34.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes34.xsl
Index: axes34.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES34 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'preceding-sibling::' Axis Identifier with wildcard and index. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="preceding-sibling::*[2]"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes35.xml
Index: axes35.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes35.xsl
Index: axes35.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES35 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'preceding-sibling::' Axis Identifier with specified element name. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="preceding-sibling::west"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes36.xml
Index: axes36.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes36.xsl
Index: axes36.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES36 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'parent::' Axis Identifier using specified element name. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="parent::near-north"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes37.xml
Index: axes37.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes37.xsl
Index: axes37.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES37 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'parent::' Axis Identifier using index (not that it's practical). -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="parent::*[1]"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes38.xml
Index: axes38.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes38.xsl
Index: axes38.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES38 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'parent::' Axis Identifier using specified element name that is not found. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="parent::foo"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes39.xml
Index: axes39.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes39.xsl
Index: axes39.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES39 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for abbreviated '..' syntax. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select=".."/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes40.xml
Index: axes40.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes40.xsl
Index: axes40.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES40 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'self::' Axis Identifier with specified element name. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="self::center"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes41.xml
Index: axes41.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes41.xsl
Index: axes41.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES41 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'self::' Axis Identifier with index (not that it's practical). -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="self::*[1]"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes42.xml
Index: axes42.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes42.xsl
Index: axes42.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES42 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for 'self::' Axis Identifier with specified element name that is not found. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="self::foo"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes43.xml
Index: axes43.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes43.xsl
Index: axes43.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES43 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for abbreviated '.' syntax. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="."/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes44.xml
Index: axes44.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes44.xsl
Index: axes44.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES44 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test for 'attribute::' Axis Identifier with name of attribute. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="attribute::center-attr-2"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="@*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes45.xml
Index: axes45.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes45.xsl
Index: axes45.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES45 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test for '@' to select an attribute, with name of attribute. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="@center-attr-2"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*|@*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes46.xml
Index: axes46.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north length="11" width="22">
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes46.xsl
Index: axes46.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES46 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test for '..' and an attribute of parent node. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="../@width"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes47.xml
Index: axes47.xml
===================================================================
<?xml version="1.0"?>
<docs>
<doc>
<foo att1="c">
<foo att1="b">
<foo att1="a">
<baz att1="wrong"/>
</foo>
</foo>
</foo>
</doc>
<doc>
<inner att1="wrong">
<foo att1="a">
<baz att1="wrong"/>
</foo>
</inner>
</doc>
</docs>
1.1 xml-xalan/test/tests/conf/axes/axes47.xsl
Index: axes47.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES47 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 2.2 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test for '..//name' and an attribute. -->
<xsl:template match="/docs">
<out>
<xsl:for-each select="doc">
<xsl:apply-templates select="..//foo"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="@att1"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes48.xml
Index: axes48.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-east/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-west/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes48.xsl
Index: axes48.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES48 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test for two 'child::' Axis Identifiers in succession. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="child::*/child::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes49.xml
Index: axes49.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-east/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-west/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes49.xsl
Index: axes49.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES49 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test for 'child::*' followed by 'descendant::*' (i.e., all grandchildren and below). -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="child::*/descendant::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/><xsl:text> </xsl:text>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes50.xml
Index: axes50.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-east/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-west/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes50.xsl
Index: axes50.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES50 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test for 'descendant::*' followed by 'child::*' (i.e., all grandchildren and below). -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="descendant::*/child::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/><xsl:text> </xsl:text>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes51.xml
Index: axes51.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-east/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-west/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes51.xsl
Index: axes51.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES51 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test for '//' followed by 'child::*' (i.e., all grandchildren). -->
<xsl:template match="/">
<out>
<xsl:for-each select="//near-north">
<xsl:apply-templates select="center//child::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/><xsl:text> </xsl:text>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes52.xml
Index: axes52.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-east/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-west/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes52.xsl
Index: axes52.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES52 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Creator: David Marston -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for '//' followed by 'descendant::*' (i.e., all children and below). -->
<xsl:template match="/">
<out>
<xsl:for-each select="//near-north">
<xsl:apply-templates select="center//descendant::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/><xsl:text> </xsl:text>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes53.xml
Index: axes53.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-east/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-west/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes53.xsl
Index: axes53.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES53 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test for named node followed by 'descendant::*' (i.e., all children and below). -->
<xsl:template match="/">
<out>
<xsl:for-each select="//near-north">
<xsl:apply-templates select="center/descendant::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/><xsl:text> </xsl:text>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes54.xml
Index: axes54.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-east/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-west/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes54.xsl
Index: axes54.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES54 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test for named node followed by 'child::*' (i.e., all children). -->
<xsl:template match="/">
<out>
<xsl:for-each select="//near-north">
<xsl:apply-templates select="center/child::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/><xsl:text> </xsl:text>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes55.xml
Index: axes55.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-east/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-west/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes55.xsl
Index: axes55.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES55 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19990922 -->
<!-- Section: 2.2 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test for '//*' (i.e., all descendants, but elements only). -->
<xsl:template match="/">
<out>
<xsl:for-each select="//near-north">
<xsl:apply-templates select="center//*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/><xsl:text> </xsl:text>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes56.xml
Index: axes56.xml
===================================================================
<?xml version="1.0"?>
<doc>
<a>
<asub>
<asubsub>
<yy/>
</asubsub>
</asub>
</a>
<b>
<bsub>
<xx>
<xxchild/>
</xx>
</bsub>
</b>
<xx>here</xx>
<d>
<dsub>
<dsubsub>
<xx/>
</dsubsub>
</dsub>
</d>
<e>
<esub>
<xx>
<xxchild/>
</xx>
</esub>
<esubsib>
<sibchild/>
</esubsib>
</e>
<xx>
<childofxx/>
</xx>
<xx>
<xxsub>
<xxsubsub/>
</xxsub>
</xx>
</doc>
1.1 xml-xalan/test/tests/conf/axes/axes56.xsl
Index: axes56.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES56 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991008 -->
<!-- Section: 2.5 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test that combination of // and descendant specifies node can be anywhere in ancestry. -->
<xsl:template match="doc">
<out>
<xsl:for-each select="//xx/descendant::*">
<xsl:value-of select="name(.)"/><xsl:text> </xsl:text>
</xsl:for-each>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes57.xml
Index: axes57.xml
===================================================================
<?xml version="1.0"?>
<doc>
<title>Test for source tree depth</title>
<a>
<title>Level A</title>
<b>
<title>Level B</title>
<c>
<title>Level C</title>
<d>
<title>Level D</title>
<e>
<title>Level E</title>
<f>
<title>Level F</title>
<g>
<title>Level G</title>
<h>
<title>Level H</title>
<i>
<title>Level I</title>
<j>
<title>Level J</title>
<k>
<title>Level K</title>
<l>
<title>Level L</title>
<m>
<title>Level M</title>
<n>
<title>Level N</title>
<o>
<title>Level O</title>
</o>
</n>
</m>
</l>
</k>
</j>
</i>
</h>
</g>
</f>
</e>
</d>
</c>
</b>
</a>
</doc>
1.1 xml-xalan/test/tests/conf/axes/axes57.xsl
Index: axes57.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES57 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.5 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test that // goes down at least 15 levels. -->
<xsl:template match="doc">
<out>
<xsl:for-each select="//title">
<xsl:value-of select="."/><xsl:text>
</xsl:text>
</xsl:for-each>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes58.xml
Index: axes58.xml
===================================================================
<?xml version="1.0"?>
<docs>
<doc x="x " y="y " z="z "/>
<doc y="ay " z="az " xmlns:foo="http://foo.com"/>
<doc y="by " z="bz "
xmlns:ext="http://somebody.elses.extension"
xmlns:java="http://xml.apache.org/xslt/java"
xmlns:ped="http://tester.com"
xmlns:bdd="http://buster.com"
xmlns:jad="http://administrator.com"
xmlns="http://www.ped.com"/>
</docs>
1.1 xml-xalan/test/tests/conf/axes/axes58.xsl
Index: axes58.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:foo="http://www.ped.com">
<!-- FileName: axes58 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 Axes-->
<!-- Creator: Paul Dick -->
<!-- Purpose: Check the attribute:: axis. The foo:doc selection is necessary
to pick up the last doc, cuz, I change the default namespace. -->
<xsl:template match="docs">
<out>
<xsl:for-each select="doc">
<xsl:apply-templates select="attribute::*"/>
</xsl:for-each>
<xsl:for-each select="foo:doc">
<xsl:apply-templates select="attribute::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="@*">
<xsl:value-of select="."/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes59.xml
Index: axes59.xml
===================================================================
<?xml version="1.0"?>
<docs>
<doc x="x" y="y" z="z"
xmlns:ext="http://somebody.elses.extension"
xmlns:java="http://xml.apache.org/xslt/java"
xmlns:ped="http://tester.com"
xmlns:bdd="http://buster.com"
xmlns:jad="http://administrator.com"/>
<doc x="ax" y="ay" z="az"/>
</docs>
1.1 xml-xalan/test/tests/conf/axes/axes59.xsl
Index: axes59.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: axes59 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 Axes-->
<!-- Creator: David Marston -->
<!-- Purpose: Check the namespace axis. -->
<xsl:template match="/">
<out>
<xsl:apply-templates/>
</out>
</xsl:template>
<xsl:template match="doc">
<xsl:for-each select="namespace::*">
<xsl:text>
</xsl:text>
<xsl:value-of select="name(.)"/>=<xsl:value-of select="."/><xsl:text>,</xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes60.xml
Index: axes60.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south>
<south>
<far-south/>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes60.xsl
Index: axes60.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: axes60 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Creator: Paul Dick -->
<!-- Purpose: Test for 'attribute::*' in match pattern. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="attribute::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="attribute::*">
<xsl:value-of select="name(.)"/><xsl:text> </xsl:text>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes61.xml
Index: axes61.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south>
<south>
<far-south/>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes61.xsl
Index: axes61.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: axes61 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Creator: Paul Dick -->
<!-- Purpose: Test for 'child::*' in match pattern. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//near-north">
<xsl:apply-templates select="child::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="child::*">
<xsl:value-of select="name(.)"/><xsl:text> </xsl:text>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes62.xml
Index: axes62.xml
===================================================================
<?xml version="1.0"?>
<docs>
<doc
xmlns:ext="http://somebody.elses.extension"
xmlns:java="http://xml.apache.org/xslt/java"
xmlns:ped="http://tester.com"
xmlns:bdd="http://buster.com"
xmlns:jad="http://administrator.com"
xmlns:OK1="http://ped.lotus.com"
xmlns:OK2="http://bdd.lotus.com"/>
<doc/>
</docs>
1.1 xml-xalan/test/tests/conf/axes/axes62.xsl
Index: axes62.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:ped="http://ped.lotus.com"
xmlns:bdd="http://bdd.lotus.com"
xmlns:admin="http://administrator.com">
<!-- FileName: axes62 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 Axes-->
<!-- Creator: David Marston -->
<!-- Purpose: Check the namespace axes with a specified name. -->
<xsl:template match="/">
<out>
<xsl:apply-templates/>
</out>
</xsl:template>
<xsl:template match="doc">
<!-- Output number of NS nodes and what they are -->
There are <xsl:value-of select="count(namespace::*)"/> Namespace Nodes.<xsl:text>
</xsl:text>
<xsl:for-each select="namespace::*">
<xsl:value-of select="name(.)"/><xsl:text>=</xsl:text><xsl:value-of select="."/><xsl:text>,
</xsl:text>
</xsl:for-each><xsl:text>
</xsl:text>
<!-- Map stylesheet's "ped" NS node to source document's equivalent ~ OK1 -->
<xsl:for-each select="namespace::ped">
<xsl:value-of select="name(.)"/><xsl:text> = </xsl:text><xsl:value-of select="."/><xsl:text>,
</xsl:text>
</xsl:for-each>
<!-- Map stylesheet's "bdd" NS node to source document's equivalent ~ OK2 -->
<xsl:for-each select="namespace::bdd">
<xsl:value-of select="name(.)"/><xsl:text> = </xsl:text><xsl:value-of select="."/><xsl:text>,
</xsl:text>
</xsl:for-each>
<!-- Map stylesheet's "admin" NS node to source document's equivalent ~ jad -->
<xsl:for-each select="namespace::admin">
<xsl:value-of select="name(.)"/><xsl:text> = </xsl:text>
</xsl:for-each>
<xsl:value-of select="string(namespace::admin)"/><xsl:text>
</xsl:text>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes63.xml
Index: axes63.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<way-out-yonder-west/>
<out-yonder-west/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-east/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-west/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<way-out-yonder-east/>
<out-yonder-east/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes63.xsl
Index: axes63.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES63 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test for 'self::' Axis Identifier with child predicate -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="self::*[near-south]"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes64.xml
Index: axes64.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<way-out-yonder-west/>
<out-yonder-west/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-east/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-west/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<way-out-yonder-east/>
<out-yonder-east/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes64.xsl
Index: axes64.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES64 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test for 'self::' Axis Identifier with attribute predicate -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="self::*[@center-attr-2]"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes65.xml
Index: axes65.xml
===================================================================
<?xml version="1.0"?>
<doc>
<north>
<center>found</center>
</north>
</doc>
1.1 xml-xalan/test/tests/conf/axes/axes65.xsl
Index: axes65.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES65 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test for 'self::text()' being empty when it should be -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="self::text()"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes66.xml
Index: axes66.xml
===================================================================
<?xml version="1.0"?>
<doc>
<north>
<center><!-- found --></center>
</north>
</doc>
1.1 xml-xalan/test/tests/conf/axes/axes66.xsl
Index: axes66.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES66 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test for 'self::comment()' being empty when it should be -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="self::comment()"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes67.xml
Index: axes67.xml
===================================================================
<?xml version="1.0"?>
<doc>
<north>
<center><?a-pi some data?></center>
</north>
</doc>
1.1 xml-xalan/test/tests/conf/axes/axes67.xsl
Index: axes67.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES67 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test for 'self::processing-instruction()' being empty when it should be -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="self::processing-instruction()"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes68.xml
Index: axes68.xml
===================================================================
<?xml version="1.0"?>
<docs>
<doc xmlns:ext="http://somebody.elses.extension">
<section xmlns:foo="http://foo.com">
<inner xmlns:whiz="http://whiz.com/special/page"/>
</section>
</doc>
</docs>
1.1 xml-xalan/test/tests/conf/axes/axes68.xsl
Index: axes68.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: axes68 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 Axes-->
<!-- Creator: David Marston -->
<!-- Purpose: Check that namespace axis includes all namespaces in scope. -->
<xsl:template match="/">
<out>
<xsl:apply-templates/>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text>Namespaces for </xsl:text><xsl:value-of select="name(.)"/><xsl:text>:
</xsl:text>
<xsl:for-each select="namespace::*">
<xsl:value-of select="name(.)"/><xsl:text>=</xsl:text><xsl:value-of select="."/><xsl:text>,
</xsl:text>
</xsl:for-each>
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes69.xml
Index: axes69.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north-north-west1/>
<north-north-west2/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes69.xsl
Index: axes69.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES69 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Creator: David Marston -->
<!-- Purpose: Compound test for preceding-sibling:: and following-sibling:: with explicit iteration. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:for-each select="preceding-sibling::*"><xsl:text>
From </xsl:text><xsl:value-of select="name(.)"/><xsl:text>:</xsl:text>
<xsl:apply-templates select="following-sibling::*"/>
</xsl:for-each>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes70.xml
Index: axes70.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north-north-west1/>
<north-north-west2/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes70.xsl
Index: axes70.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES70 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Creator: David Marston -->
<!-- Purpose: Compound test for preceding-sibling:: and following-sibling:: conjoined. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="preceding-sibling::*/following-sibling::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes71.xml
Index: axes71.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north-north-west1/>
<north-north-west2/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes71.xsl
Index: axes71.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES71 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Compound test for preceding-sibling:: and following-sibling:: conjoined,
with positional predicate on the first axis. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="preceding-sibling::*[2]/following-sibling::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes72.xml
Index: axes72.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north-north-west1/>
<north-north-west2/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes72.xsl
Index: axes72.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES72 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Compound test for preceding-sibling:: and following-sibling:: conjoined,
with positional predicates on both axes. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="preceding-sibling::*[2]/following-sibling::*[4]"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes73.xml
Index: axes73.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north-north-west1/>
<north-north-west2/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes73.xsl
Index: axes73.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES73 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Compound test where we bounce "horizontally" across the tree, using positions. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="preceding-sibling::*[2]/following-sibling::*[4]/preceding-sibling::*[5]/following-sibling::*[4]/following-sibling::*[2]"/>
<!-- Nodes in order: west, east, far-west, near-east, far-east -->
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes74.xml
Index: axes74.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north-north-west1/>
<north-north-west2/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes74.xsl
Index: axes74.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES74 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Creator: David Marston -->
<!-- Purpose: Compound test for following-sibling:: and preceding-sibling:: with explicit iteration. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:for-each select="following-sibling::*"><xsl:text>
From </xsl:text><xsl:value-of select="name(.)"/><xsl:text>:</xsl:text>
<xsl:apply-templates select="preceding-sibling::*"/>
</xsl:for-each>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes75.xml
Index: axes75.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north-north-west1/>
<north-north-west2/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes75.xsl
Index: axes75.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES75 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Creator: David Marston -->
<!-- Purpose: Compound test for following-sibling:: and preceding-sibling:: conjoined. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="following-sibling::*/preceding-sibling::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes76.xml
Index: axes76.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north-north-west1/>
<north-north-west2/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes76.xsl
Index: axes76.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES76 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Compound test for following-sibling:: and preceding-sibling:: conjoined,
with positional predicate on the first axis. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="following-sibling::*[2]/preceding-sibling::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes77.xml
Index: axes77.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north-north-west1/>
<north-north-west2/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes77.xsl
Index: axes77.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES77 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Compound test for following-sibling:: and preceding-sibling:: conjoined,
with positional predicates on both axes. Reverse document order applies. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="following-sibling::*[2]/preceding-sibling::*[4]"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes78.xml
Index: axes78.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north-north-west1/>
<north-north-west2/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes78.xsl
Index: axes78.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES78 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Compound test where we bounce "horizontally" across the tree, using positions. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="following-sibling::*[2]/preceding-sibling::*[4]/following-sibling::*[5]/preceding-sibling::*[4]/preceding-sibling::*[2]"/>
<!-- Nodes in order: east, west, far-east, near-west, far-west -->
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes79.xml
Index: axes79.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north-north-west1/>
<north-north-west2/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes79.xsl
Index: axes79.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES79 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Compound test for following::, parent, and child conjoined, with positional predicates. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="following::*[4]/../*[2]"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes80.xml
Index: axes80.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north-north-west1/>
<north-north-west2/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes80.xsl
Index: axes80.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES80 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Compound test for preceding::, parent, and following:: conjoined, with positional predicates. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="preceding::*[2]/../following::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes81.xml
Index: axes81.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north-north-west1/>
<north-north-west2/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes81.xsl
Index: axes81.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES81 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Compound test for preceding::, parent, descendant::, and following-sibling:: conjoined,
with positional predicates and a node test. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="preceding::*[2]/../descendant::*[10]/following-sibling::east"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes82.xml
Index: axes82.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north-north-west1/>
<north-north-west2/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes82.xsl
Index: axes82.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES82 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test simple notation to select entire tree. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="//*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes83.xml
Index: axes83.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north-north-west1/>
<north-north-west2/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes83.xsl
Index: axes83.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES83 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Creator: David Marston -->
<!-- Purpose: Compound test selecting everything that has children. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="//ancestor::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes84.xml
Index: axes84.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north-north-west1/>
<north-north-west2/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes84.xsl
Index: axes84.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES84 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.4 -->
<!-- Purpose: Compound test going "vertically" in the tree. -->
<!-- Creator: David Marston -->
<!-- The expression selects the set of all grandparents.
"//*[count(ancestor::*) >= 2]" is the set of all grandchildren. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="//*[count(ancestor::*) >= 2]/../parent::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes85.xml
Index: axes85.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north-north-west1/>
<north-north-west2/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes85.xsl
Index: axes85.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES85 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Alternate test to select the set of all grandparents. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="//*[count(./*/*) > 0]"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes86.xml
Index: axes86.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north-north-west1/>
<north-north-west2/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes86.xsl
Index: axes86.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES86 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.4 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test to select the set of all aunts, great-aunts, etc. but exclude ancestors. -->
<!-- "ancestor::*[count(child::*) > 1]" is the set of all ancestors with other children. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="ancestor::*[count(child::*) > 1]/*[not(. = current()/ancestor-or-self::*)]"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes87.xml
Index: axes87.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north-north-west1/>
<north-north-west2/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes87.xsl
Index: axes87.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES87 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Creator: David Marston -->
<!-- Purpose: Traverse ancestor:: starting from attributes. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="@*/ancestor::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes88.xml
Index: axes88.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north-north-west1/>
<north-north-west2/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes88.xsl
Index: axes88.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES88 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Creator: David Marston -->
<!-- Purpose: Traverse following:: starting from attributes. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="@*/following::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes89.xml
Index: axes89.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north-north-west1/>
<north-north-west2/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes89.xsl
Index: axes89.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES89 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Creator: David Marston -->
<!-- Purpose: Traverse preceding:: starting from attributes. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="@*/preceding::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes90.xml
Index: axes90.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north-north-west1/>
<north-north-west2/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes90.xsl
Index: axes90.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES90 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test for union of preceding-sibling:: and following-sibling:: -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="preceding-sibling::*|following-sibling::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes91.xml
Index: axes91.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north-north-west1/>
<north-north-west2/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes91.xsl
Index: axes91.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES91 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test for steps beyond union of two axes. -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="(preceding-sibling::*|following-sibling::*)/ancestor::*[last()]/*[last()]"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes92.xml
Index: axes92.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north-north-west1/>
<north-north-west2/>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<near-south>
<south>
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes92.xsl
Index: axes92.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES92 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test for union of two relative-location-paths -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select=".//near-south/preceding-sibling::*|following-sibling::east/ancestor-or-self::*[2]"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes93.xml
Index: axes93.xml
===================================================================
<?xml version="1.0"?>
<far-north> Level-1
<north-north-west1/>
<north-north-west2/>
<!-- Comment-2 --> Level-2
<?a-pi pi-2?>
<north>
<!-- Comment-3 --> Level-3
<?a-pi pi-3?>
<near-north>
<far-west/>
<west/>
<near-west/>
<!-- Comment-4 --> Level-4
<?a-pi pi-4?>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<!--Comment-5--> Level-5
<?a-pi pi-5?>
<near-south>
<!--Comment-6--> Level-6
<?a-pi pi-6?>
<south attr1="First" attr2="Last">
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes93.xsl
Index: axes93.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: axes93 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Tests apply-templates starting with a attribute axes
followed by additional relative-location-path steps. -->
<!-- Author: Paul Dick -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="@*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="@*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes94.xml
Index: axes94.xml
===================================================================
<?xml version="1.0"?>
<far-north> Level-1
<north-north-west1/>
<north-north-west2/>
<!-- Comment-2 --> Level-2
<?a-pi pi-2?>
<north>
<!-- Comment-3 --> Level-3
<?a-pi pi-3?>
<near-north>
<far-west/>
<west/>
<near-west/>
<!-- Comment-4 --> Level-4
<?a-pi pi-4?>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<!--Comment-5--> Level-5
<?a-pi pi-5?>
<near-south>
<!--Comment-6--> Level-6
<?a-pi pi-6?>
<south attr1="First" attr2="Last">
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes94.xsl
Index: axes94.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: axes94 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Tests apply-templates starting with a attribute axes followed
by additional relative-location-path steps. -->
<!-- Author: Paul Dick -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="@*/child::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes95.xml
Index: axes95.xml
===================================================================
<?xml version="1.0"?>
<far-north> Level-1
<north-north-west1/>
<north-north-west2/>
<!-- Comment-2 --> Level-2
<?a-pi pi-2?>
<north>
<!-- Comment-3 --> Level-3
<?a-pi pi-3?>
<near-north>
<far-west/>
<west/>
<near-west/>
<!-- Comment-4 --> Level-4
<?a-pi pi-4?>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<!--Comment-5--> Level-5
<?a-pi pi-5?>
<near-south>
<!--Comment-6--> Level-6
<?a-pi pi-6?>
<south attr1="First" attr2="Last">
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes95.xsl
Index: axes95.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: axes95 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Tests apply-templates starting with a attribute axes followed
by additional relative-location-path steps. -->
<!-- Author: Paul Dick -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="@*/descendant::node()"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="node()">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes96.xml
Index: axes96.xml
===================================================================
<?xml version="1.0"?>
<far-north> Level-1
<north-north-west1/>
<north-north-west2/>
<!-- Comment-2 --> Level-2
<?a-pi pi-2?>
<north>
<!-- Comment-3 --> Level-3
<?a-pi pi-3?>
<near-north>
<far-west/>
<west/>
<near-west/>
<!-- Comment-4 --> Level-4
<?a-pi pi-4?>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<!--Comment-5--> Level-5
<?a-pi pi-5?>
<near-south>
<!--Comment-6--> Level-6
<?a-pi pi-6?>
<south attr1="First" attr2="Last">
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes96.xsl
Index: axes96.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: axes96 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Tests apply-templates starting with a attribute axes followed
by additional relative-location-path steps. -->
<!-- Author: Paul Dick -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="@*/parent::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes97.xml
Index: axes97.xml
===================================================================
<?xml version="1.0"?>
<far-north> Level-1
<north-north-west1/>
<north-north-west2/>
<!-- Comment-2 --> Level-2
<?a-pi pi-2?>
<north>
<!-- Comment-3 --> Level-3
<?a-pi pi-3?>
<near-north>
<far-west/>
<west/>
<near-west/>
<!-- Comment-4 --> Level-4
<?a-pi pi-4?>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<!--Comment-5--> Level-5
<?a-pi pi-5?>
<near-south>
<!--Comment-6--> Level-6
<?a-pi pi-6?>
<south attr1="First" attr2="Last">
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes97.xsl
Index: axes97.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: axes97 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Tests apply-templates starting with a attribute axes followed
by additional relative-location-path steps. -->
<!-- Author: Paul Dick -->
<xsl:template match="/">
<out>
<xsl:for-each select="//center">
<xsl:apply-templates select="@*/ancestor::*"/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes98.xml
Index: axes98.xml
===================================================================
<?xml version="1.0"?>
<far-north> Level-1
<north-north-west1/>
<north-north-west2/>
<!-- Comment-2 --> Level-2
<?a-pi pi-2?>
<north>
<!-- Comment-3 --> Level-3
<?a-pi pi-3?>
<near-north>
<far-west/>
<west/>
<near-west/>
<!-- Comment-4 --> Level-4
<?a-pi pi-4?>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<!--Comment-5--> Level-5
<?a-pi pi-5?>
<near-south>
<!--Comment-6--> Level-6
<?a-pi pi-6?>
<south attr1="First" attr2="Last">
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes98.xsl
Index: axes98.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: axes98 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 -->
<!-- Purpose: Tests apply-templates starting with a attribute axes followed
by additional relative-location-path steps. -->
<!-- Author: Paul Dick -->
<xsl:template match="/">
<out>
1.<xsl:for-each select="//center">
<xsl:apply-templates select="@*/self::node()"/>
</xsl:for-each>
2.<xsl:for-each select="//center">
<xsl:apply-templates select="@*/."/>
</xsl:for-each>
</out>
</xsl:template>
<xsl:template match="@*">
<xsl:text> </xsl:text><xsl:value-of select="name(.)"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes99.xml
Index: axes99.xml
===================================================================
<?xml version="1.0"?>
<far-north> Level-1
<north-north-west1/>
<north-north-west2/>
<!-- Comment-2 --> Level-2
<?a-pi pi-2?>
<north>
<!-- Comment-3 --> Level-3
<?a-pi pi-3?>
<near-north>
<far-west/>
<west/>
<near-west/>
<!-- Comment-4 --> Level-4
<?a-pi pi-4?>
<center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
<near-south-west/>
<!--Comment-5--> Level-5
<?a-pi pi-5?>
<near-south>
<!--Comment-6--> Level-6
<?a-pi pi-6?>
<south attr1="First" attr2="Last">
<far-south/>
</south>
</near-south>
<near-south-east/>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
<north-north-east1/>
<north-north-east2/>
</far-north>
1.1 xml-xalan/test/tests/conf/axes/axes01.xml
Index: axes01.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>
<near-north>
<far-west/>
<west/>
<near-west/>
<center>
<near-south>
<south>
<far-south/>
</south>
</near-south>
</center>
<near-east/>
<east/>
<far-east/>
</near-north>
</north>
</far-north>