sdx-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sdx-users] Application de debutant


From: Liste
Subject: [sdx-users] Application de debutant
Date: Tue, 07 Jan 2003 13:56:19 +0100

Bonjour,
J'ai commencé d'essayer d'envoyer ce message le 20 décembre. Comme je ne vois toujours rien ni dans ma boîte aux lettres, ni dans les archives, que je suis têtue et que j'ai besoin de faire marcher cette application test, je réessaye encore...

* J'ai créé l'application arkiw
<sdx:application xmlns:sdx="http://www.culture.gouv.fr/ns/sdx/sdx" id="fr.archi.gamsau.arkiw" xml:lang="fr-FR">

* Les fichiers xml correspondent à des objets architecturaux du type
<?xml version="1.0" encoding="utf-8"?>
<ArkiwInstanceRecord id="287_588">
<Meta>
<CreationDate value="20021412"/>
<Origin>
<Country>fr</Country>
<Agency>MAP-ARKIW TEAM- PICS 1150</Agency>
</Origin>
</Meta>

<Identity>
<Id value="287"/>
<EvolutionId value="588"/>
<Name lang="pl">ogród wirydarz Franciszkanów</Name>
<Class value="GreenArea"/>
<CurrentScale value="structuralScale"/>
<MorphStatus value="original"/>
</Identity>

…
</ArkiwInstanceRecord>

* le fichier conf/index-arkiw.xsl
<xsl:template match="/ ArkiwInstanceRecord ">
<!-- output root element, creates an SDX document with the given @id attribute -->
<sdx:document id="address@hidden">
<!-- For a full text field, we "apply-templates" accross the whole document, except that we need a space between the each element's text ; that's why it's called "fulltext" mode -->
<sdx:field code="contenu">
<xsl:apply-templates mode="fulltext"/>
</sdx:field>
<xsl:apply-templates select="Identity/Name"/>
</sdx:document>
</xsl:template>
…
<xsl:template match="Name">
<sdx:field code="LeNom">
<xsl:value-of select="normalize-space(.)"/>
</sdx:field>
</xsl:template>

est référencé dans conf/application.xconf
<sdx:transformation id="index-arkiw" type="xslt" src="">index-arkiw.xsl"/>

<sdx:fieldList xml:lang="pl" variant="">
<!-- default field for plain-text indexing (@type="word") -->
<sdx:field code="contenu" type="word" default="true">
<sdx:name xml:lang="pl">Texte integral</sdx:name>
</sdx:field>
<!-- nom de l'objet for short results -->
<sdx:field code="LeNom" type="field" brief="true">
<sdx:name xml:lang="pl">Nom de lobjet</sdx:name>
</sdx:field>
</sdx:fieldList>

L'indexation se passe correctement. Mais par exemple dans une recherche avec terms, je n'obtiens pas l'affichage du nom de l'objet, seulement celui de l'id, j'ai modifié le fichier terms.xsp
<sdx:terms field="LeNom">
<sdx:location base="sites"/>
<sdx:location base="apps"/>
</sdx:terms>

De même, dans la fenêtre d'administration.
Merce d'avance pour toute suggestion.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]