template("/") { applyTemplates; } template("*") { copy { applyTemplates("@*|node()"); } } template("processing-instruction()") { copy { applyTemplates("@*|node()|text"); } } // make h1 green template("html:h1") { copy { attribute("style") applyTemplates("@*|node()"); } } template("our:include") { variable("part", "@part"); applyTemplates("document(@src)//*[@id=$part]"); }