XSL stylesheet 1<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'> |
| <xsl:template match="BBB"> |
| <DIV style="color:purple"> |
| <xsl:value-of select="name()"/> |
| <xsl:text> id=</xsl:text> |
| <xsl:value-of select="@id"/> |
| </DIV> |
| </xsl:template> |
| <xsl:template match="/xslTutorial/AAA/CCC/DDD"> |
| <DIV style="color:red"> |
| <xsl:value-of select="name()"/> |
| <xsl:text> id=</xsl:text> |
| <xsl:value-of select="@id"/> |
| </DIV> |
| </xsl:template> |
| </xsl:stylesheet> |