| 1 |
|
| 2 |
<xsl:stylesheet version="1.0" |
| 3 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/TR/xhtml1/strict" > |
| 4 |
|
| 5 |
<xsl:strip-space elements="player name position team"/> |
| 6 |
<xsl:output |
| 7 |
method="xml" |
| 8 |
indent="no" |
| 9 |
encoding="iso-8859-1" |
| 10 |
/> |
| 11 |
|
| 12 |
<xsl:template match="player"> |
| 13 |
<html> |
| 14 |
<head> |
| 15 |
<title> |
| 16 |
<xsl:value-of select="name"/> |
| 17 |
</title> |
| 18 |
</head> |
| 19 |
<body> |
| 20 |
<xsl:apply-templates/> |
| 21 |
</body> |
| 22 |
</html> |
| 23 |
</xsl:template> |
| 24 |
|
| 25 |
<xsl:template match="player/name"> |
| 26 |
<h1> |
| 27 |
<xsl:apply-templates/> |
| 28 |
</h1> |
| 29 |
</xsl:template> |
| 30 |
|
| 31 |
<xsl:template match="player/position"> |
| 32 |
<h2> |
| 33 |
<xsl:apply-templates/> |
| 34 |
</h2> |
| 35 |
</xsl:template> |
| 36 |
|
| 37 |
<xsl:template match="player/team"> |
| 38 |
<h3> |
| 39 |
<xsl:apply-templates/> |
| 40 |
</h3> |
| 41 |
</xsl:template> |
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
</xsl:stylesheet> |