blob: 5f17f9675d14f1794427efa8328c82f8a11f0ae2 [file] [log] [blame]
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES115 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test for preceding-sibling::foo[1] vs. (preceding-sibling::foo)[1], similar
to the treatment of preceding:: in the first NOTE in section 3.3 -->
<xsl:template match="/">
<out>
<xsl:for-each select="//baz">
<xsl:value-of select="preceding-sibling::foo[1]/@att1"/><xsl:text>, </xsl:text>
<xsl:value-of select="(preceding-sibling::foo)[1]/@att1"/>
</xsl:for-each>
</out>
</xsl:template>
</xsl:stylesheet>