summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/patternist/embedDataInXHTML2.xq
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/snippets/patternist/embedDataInXHTML2.xq')
-rw-r--r--doc/src/snippets/patternist/embedDataInXHTML2.xq10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/src/snippets/patternist/embedDataInXHTML2.xq b/doc/src/snippets/patternist/embedDataInXHTML2.xq
new file mode 100644
index 0000000..754ddba
--- /dev/null
+++ b/doc/src/snippets/patternist/embedDataInXHTML2.xq
@@ -0,0 +1,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>