source: trunk/examples/xmlpatterns/filetree/queries/listCPPFiles.xq

Last change on this file was 2, checked in by Dmitry A. Kuminov, 16 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

File size: 455 bytes
Line 
1declare variable $where as xs:string := string($fileTree/@filePath);
2<html>
3 <head>
4 <title>All cpp files in: {$where}</title>
5 </head>
6 <body>
7 <p>
8 cpp-files found in {$where} sorted by size:
9 </p>
10 <ul> {
11 for $file in $fileTree//file[@suffix = "cpp"]
12 order by xs:integer($file/@size)
13 return
14 <li>
15 {string($file/@fileName)}, size: {string($file/@size)}
16 </li>
17 } </ul>
18 </body>
19</html>
Note: See TracBrowser for help on using the repository browser.