File: listCPPFiles.xq

package info (click to toggle)
qt4-x11 4.4.3-1%2Blenny1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 339,184 kB
  • ctags: 230,663
  • sloc: cpp: 1,365,310; ansic: 343,027; sh: 25,253; xml: 13,859; python: 6,110; perl: 5,064; yacc: 2,295; asm: 1,988; makefile: 712; ruby: 493; sed: 24
file content (18 lines) | stat: -rw-r--r-- 570 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
declare variable $where as xs:string := string($fileTree/@filePath);
<html>
    <head>
        <title>All cpp files in: {$where}</title>
    </head>
    <body>
        <p>The following cpp-files were found in {$where}, sorted by file size:</p>
        <ul>
            {
                for $file in $fileTree//file[@suffix = "cpp"]
                order by xs:integer($file/@size)
                return <li>
                            {string($file/@fileName)}, size: {string($file/@size)}
                       </li>
            }
        </ul>
    </body>
</html>