summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/patternist/embedDataInXHTML.xq
blob: b513922a3b2bb584e1e603f35713e818e678ec74 (plain)
1
2
3
4
5
6
7
8
9
10
declare default element namespace "http://www.w3.org/1999/xhtml";
<html>
    <body>
        {
            for $i in doc("testResult.xml")/tests/test[@status = "failure"]
            order by $i/@name
            return <p>{$i/@name}</p>
        }
    </body>
</html>