diff options
Diffstat (limited to 'doc/src/snippets/patternist/embedDataInXHTML.xq')
-rw-r--r-- | doc/src/snippets/patternist/embedDataInXHTML.xq | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/src/snippets/patternist/embedDataInXHTML.xq b/doc/src/snippets/patternist/embedDataInXHTML.xq new file mode 100644 index 0000000..b513922 --- /dev/null +++ b/doc/src/snippets/patternist/embedDataInXHTML.xq @@ -0,0 +1,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> |