| <?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> |