Serveur de données eXist
youcha06
Messages postés
3
Date d'inscription
Statut
Membre
Dernière intervention
-
youcha06 Messages postés 3 Date d'inscription Statut Membre Dernière intervention -
youcha06 Messages postés 3 Date d'inscription Statut Membre Dernière intervention -
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
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
A voir également:
- Serveur de données eXist
- Fuite données maif - Guide
- Changer serveur dns - Guide
- Supprimer les données de navigation - Guide
- Serveur de reception mail - Guide
- Trier des données excel - Guide