summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/patternist/introNavigateFS.xq
blob: 1f5a3a73e7d8ba8e07280bb55f8235814a17aa35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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>