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

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

     declare variable $exampleDirectory external;
     <html>
         <head>
             <title>All cpp files in: {string($exampleDirectory/@fileName)}</title>
         </head>
         <body>
             <p>The following cpp-files were found in Qt's example directory, sorted by file size:</p>
             <ul>
                 {
                     for $file in $exampleDirectory//file[@suffix = "cpp"]
                     order by xs:integer($file/@size)
                     return <li>
                                 {string($file/@fileName)}, size: {string($file/@size)}
                            </li>
                 }
             </ul>
         </body>
     </html>