[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sdx-users] Application pour debutant
From: |
Martin Sevigny |
Subject: |
[sdx-users] Application pour debutant |
Date: |
Sun, 5 Jan 2003 19:08:00 +0100 |
[Ce message n'a pas été diffusé sur la liste sdx-users, alors qu'il
aurait dû l'être le 20 décembre 2002]
-----Message d'origine-----
De : address@hidden
[mailto:address@hidden De la part de
address@hidden
Envoyé : vendredi 20 décembre 2002 16:21
À : address@hidden
Objet : [sdx-users] Application pour debutant
Bonjour,
* 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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [sdx-users] Application pour debutant,
Martin Sevigny <=