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