Serveur de données eXist

Fermé
youcha06 Messages postés 3 Date d'inscription lundi 26 octobre 2009 Statut Membre Dernière intervention 27 octobre 2009 - 27 oct. 2009 à 15:27
youcha06 Messages postés 3 Date d'inscription lundi 26 octobre 2009 Statut Membre Dernière intervention 27 octobre 2009 - 27 oct. 2009 à 20:38
Bonjour,
en fait j'ai un ficihier book.xml dont le code est le suivant:

<?xml version="1.0"?>
<book>
<title>Data on the Web</title>
<author>Serge Abiteboul</author>
<author>Peter Buneman</author>
<author>Dan Suciu</author>
<section id="intro" difficulty="easy" >
<title>Introduction</title>
<p>Text ... </p>
<section>
<title>Audience</title>
<p>Text ... </p>
</section>
<section>
<title>Web Data and the Two Cultures</title>
<p>Text ... </p>
<figure height="400" width="400">
<title>Traditional client/server architecture</title>
<image source="csarch.gif"/>
</figure>
<p>Text ... </p>
</section>
</section>
<section id="syntax" difficulty="medium" >
<title>A Syntax For Data</title>
<p>Text ... </p>
<figure height="200" width="500">
<title>Graph representations of structures</title>
<image source="graphs.gif"/>
</figure>
<p>Text ... </p>
<section>
<title>Base Types</title>
<p>Text ... </p>
</section>
<section>
<title>Representing Relational Databases</title>
<p>Text ... </p>
<figure height="250" width="400">
<title>Examples of Relations</title>
<image source="relations.gif"/>
</figure>
</section>
<section>
<title>Representing Object Databases</title>
<p>Text ... </p>
</section>
</section>
</book>




et la requete xquery suivante:

xquery version "1.0";



<figlist>

{

for $f in doc("book.xml")//figure

return

<figure>

{ $f/@* }

{ $f/title }

</figure>

}

</figlist>




lorsque je compile avec le client de eXit ca marche mais j'ai envie de la compiler via le serveur avec l'adresse:
localhost:8080/exist/requete.xq

Ou je doit charger mon fichier xml et ma requete.xq pour pouvoir afficher le résultat en tapant cet adresse : localhost:8080/exist/requete.xq dans le navigateur web
Merci d'avance

1 réponse

youcha06 Messages postés 3 Date d'inscription lundi 26 octobre 2009 Statut Membre Dernière intervention 27 octobre 2009
27 oct. 2009 à 20:38
qlq1 a une réponse svp?
0