doc/src/snippets/patternist/computedTreeFragment.xq
author Eckhart Koeppen <eckhart.koppen@nokia.com>
Mon, 19 Apr 2010 10:15:19 +0300
branchRCL_3
changeset 9 b5b118452c7d
parent 0 1918ee327afb
permissions -rw-r--r--
a8c775f23625952540b5349744722bcb9e37de45

declare default element namespace "http://example.com/Namespace";
declare variable $documentElementName := "doc";

element {$documentElementName}
{
    attribute xml:base {"http://example.com/"},
    element anotherElement
    {
        comment {" a comment "},
        processing-instruction target {"data"},
        element anotherElement {()},
        text {"some text"}
    }
}