simshadows

XML and XSLT Cheatsheet

Resources

References:

XSLT: Basic Features

A possible starting template:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
 
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" />
 
<xsl:template match="node()|@*">
    <xsl:copy>
        <xsl:apply-templates select="node()|@*" />
    </xsl:copy>
</xsl:template>
 
<xsl:template match="FooBar">
    Do things here!
</xsl:template>
 
</xsl:stylesheet>

XSLT: XPaths

(TODO)

XSLT: XQuerys

(TODO)