doc/src/snippets/patternist/computedTreeFragment.xq
changeset 0 1918ee327afb
equal deleted inserted replaced
-1:000000000000 0:1918ee327afb
       
     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 }