# Calling XSLT transformation

### Simple Transformation

    xquery version "3.0";

    let $input := doc("@@path/examples/basic/Items.xml")
    let $xsl := doc("@@path/examples/basic/ConvertItems.xsl")
    return
        transform:transform($input, $xsl, ())

View source: Items.xml, ConvertItems.xsl

### Transform Shakespeare's Hamlet to HTML

    xquery version "3.0";

    let $input := doc("@@path/data/hamlet.xml")
    let $xsl := doc("@@path/data/shakes.xsl")
    return
        transform:transform($input, $xsl, ())

View source: shakes.xsl, hamlet.xml