summaryrefslogtreecommitdiff
path: root/docs/tutorials/lxmlgraph/step03/myapp/xsltview.xsl
blob: 4d759b15bea10dcc650e564c34cdb8598c705fef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:template match="/document">
        <html>
            <head/>
            <body>
                <h1>My template is viewing item: <xsl:value-of select="@name"/></h1>
                <p>The node has a name of: <xsl:value-of select="name()"/>.</p>
            </body>
        </html>
    </xsl:template>
</xsl:stylesheet>