Erzeugen von Attributen
Stylesheet:
<xsl:template
match="/Foo">
public class <xsl:value-of
select="classname"/> {
<xsl:apply-templates/>
}
</xsl:template>
<xsl:template
match="*">
String <xsl:value-of
select="name()"/> = "<xsl:value-of
select="."/>";
</xsl:template>
Erzeugter Code:
public class Bar {
String class-name =
"Bar";
String message =
"Hossale";
}