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