blob: 1c96017cc2cc003ccdc825e28bb1ceb632f9eb3e [file] [log] [blame]
<?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>