doc/src/snippets/patternist/introNavigateFS.xq
author Eckhart Koeppen <eckhart.koppen@nokia.com>
Thu, 22 Apr 2010 16:15:11 +0300
branchRCL_3
changeset 14 8c4229025c0b
parent 0 1918ee327afb
permissions -rw-r--r--
930346f3335f271b808bd69409c708262673ba3a

declare variable $myRoot := <e/>; (: This line is a dummy and shouldn't appear in the documentation. :)
<html>
    <body>
        {
            $myRoot//file[@mimetype = 'text/xml' or @mimetype = 'application/xml']
            /
            (if(doc-available(@uri))
             then ()
             else <p>Failed to parse file {@uri}.</p>)
        }
    </body>
</html>