summaryrefslogtreecommitdiff
path: root/src/xmlpatterns/doc/snippets/patternist/copyID.xq
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmlpatterns/doc/snippets/patternist/copyID.xq')
-rw-r--r--src/xmlpatterns/doc/snippets/patternist/copyID.xq3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xmlpatterns/doc/snippets/patternist/copyID.xq b/src/xmlpatterns/doc/snippets/patternist/copyID.xq
new file mode 100644
index 0000000..2409caf
--- /dev/null
+++ b/src/xmlpatterns/doc/snippets/patternist/copyID.xq
@@ -0,0 +1,3 @@
+(: Copy the value of xml:id attribute from other.html. This is a comment by the way! :)
+<html xmlns="http://www.w3.org/1999/xhtml/"
+ xml:id="{doc("other.html")/html/@xml:id}"/>