| <?xml version="1.0"?> |
| <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
| |
| <!-- FileName: node19 --> |
| <!-- Document: http://www.w3.org/TR/xpath --> |
| <!-- DocVersion: 19991116 --> |
| <!-- Section: 2.3 --> |
| <!-- Creator: David Marston --> |
| <!-- Purpose: Test for 'attribute::node()' 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::node()"> |
| <xsl:value-of select="name(.)"/><xsl:text> </xsl:text> |
| </xsl:template> |
| |
| </xsl:stylesheet> |