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: Thu, 19 Dec 2002 13:07:06 +0100

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">
...
            <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 l'objet</sdx:name>
                </sdx:field>
            </sdx:fieldList>

...
                    <sdx:transformation id="index-arkiw" type="xslt" src="">index-arkiw.xsl"/>

* le fichier index-arkiw.xsl
    <xsl:template match="/ArkiwInstanceRecord">
        <!-- output root element, creates an SDX document with the given @id attribute  -->
        <sdx:document id="{@id}">
            <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>

* un fichier xml à indexer
<?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>
...

* l'indexation se passe correctement. J'aurais voulu que dans le menu Titre, le nom de chaque objet s'affiche. J'ai modifié le fichier terms.xsp
        <title>ARKIW - Liste des objets</title>
        <sdx:terms field="LeNom">
            <sdx:location base="sites"/>
            <sdx:location base="apps"/>
        </sdx:terms>

La recherche ne donne aucun résultat.
Même problème sur la page d'administration où seul l'id s'affiche.

j'ai changé dans results.xsl
                <xsl:value-of select="sdx:address@hidden'LeNom']"/>

Merci d'avance pour toute suggestion
Cordialement






reply via email to

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