doc/src/snippets/patternist/computedTreeFragment.xq
author Eckhart Koeppen <eckhart.koppen@nokia.com>
Thu, 29 Apr 2010 15:15:16 +0300
branchRCL_3
changeset 17 4b6ee5efea19
parent 0 1918ee327afb
permissions -rw-r--r--
2010-17 9996a03743ab23f83c83c5bc7ade0f82f71b1506

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"}
    }
}