1. <xsl:template match="/ | *">
<xsl:apply-templates/>
</xsl:template>
2. <xsl:template match="text()">
<xsl:value-of select="."/>
</xsl:template>
3. <xsl:template match="@">
<xsl:value-of select="."/>
</xsl:template>
4. <xsl:template match="comment()"/>
5. <xsl:template match="processing-instruction()"/>
Style-sheet with no explicit rules:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
</xsl:stylesheet>
Output File (applied to students.xml):
<?xml version="1.0" encoding="UTF-8"?>
Programming XML in Java
John Punin
John Smith
30
70
80
85
George Lucas
80
90
100
40
Elizabeth Roberts
60
95
50
90