summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/patternist/copyID.xq
blob: 2409cafe6b0d043eb8ac37f94d998e1391bac76b (plain)
1
2
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}"/>