XQuery 1.0/3.1 Editor
XQuery uses a different syntax than XSLT but serves the same purpose: transforming an XML document. EditiX supports the XQuery 1.0 and 3.1 specifications with the same transformation flow as XSLT.
xquery version "1.0";
<html><body>
{
for $chapter in //chapter
return
(<h1>{$chapter/title/text()}</h1>,
for $p in $chapter/p return <p>{$p/text()}</p>)
}
</body></html>