doc/src/snippets/patternist/computedTreeFragment.xq
branchRCL_3
changeset 8 3f74d0d4af4c
parent 0 1918ee327afb
equal deleted inserted replaced
6:dee5afe5301f 8:3f74d0d4af4c
       
     1 declare default element namespace "http://example.com/Namespace";
       
     2 declare variable $documentElementName := "doc";
       
     3 
       
     4 element {$documentElementName}
       
     5 {
       
     6     attribute xml:base {"http://example.com/"},
       
     7     element anotherElement
       
     8     {
       
     9         comment {" a comment "},
       
    10         processing-instruction target {"data"},
       
    11         element anotherElement {()},
       
    12         text {"some text"}
       
    13     }
       
    14 }