summaryrefslogtreecommitdiff
path: root/doc/src/snippets/patternist/fnStringOnAttribute.xq
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/snippets/patternist/fnStringOnAttribute.xq')
-rw-r--r--doc/src/snippets/patternist/fnStringOnAttribute.xq9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/src/snippets/patternist/fnStringOnAttribute.xq b/doc/src/snippets/patternist/fnStringOnAttribute.xq
new file mode 100644
index 0000000..b26e9f2
--- /dev/null
+++ b/doc/src/snippets/patternist/fnStringOnAttribute.xq
@@ -0,0 +1,9 @@
+<html>
+ <body>
+ <p>
+ {
+ string(doc('feed.rss')/rss/@version)
+ }
+ </p>
+ </body>
+</html>