Home · All Namespaces · All Classes · Main Classes · Grouped Classes · Modules · Functions

listCPPFiles.xq Example File
xmlpatterns/filetree/queries/listCPPFiles.xq

 declare variable $where as xs:string := string($fileTree/@filePath);
 <html>
   <head>
     <title>All cpp files in: {$where}</title>
   </head>
   <body>
     <p>
       cpp-files found in {$where} sorted by 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>


Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt 4.5.1