output("text", indent="yes"); include("xxx"); applyTemplates("this is select", "this is mode") { sort(dataType="text"); } template("/") { text < > valueOf("///BBB[1]"); text valueOf("//BBBB[2]"); } attributeSet(name="set2") { attribute("xxxx") { <.....> } } template(match="/") { element("QQQ", useAttributeSets="set1 set2") { attribute("xxxx") <555> } }