IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

File System Example

Using Qt XML Patterns for querying non-XML data that is modeled to look like XML.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

File System Example

 
Sélectionnez
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>

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+