Bonjour ,
je suis en fait entrain de developper une application web documentaire ,je travaille sur SDX et j'utilise XSP ,XML et XSL j'avais besoin d'ajouter dans un resultat xsl un code qui me permet d'afficher du svg inline ,
le code du fichier xsl est le suivant:
et le fichier XSP :
le fichier XML produit par la servlet sdx est celui qui lui accede le xsl pour produire le html souhaité:
il y a aussi un fichier de configuration pour l'application un sitemap.xmap:
c'est un fichier pour configuration des pages xsp
et un autre pour la configuration de l'application particulièrement pour renseigner des pages xsl:
c'est en faite aussi pour definir les index pour cette application
je vous donne aussi le code de fichier d'entrée pour l'application
le problème que lorsque j'ai inserer le code pour afficher le SVG inline dans le xsl il affiche que la description du SVG alors qu'il ne faut pas l'afficher
un joli cercle
mais il ne dessine pas le svg souhaite le cercle
merci d'avance
je suis en fait entrain de developper une application web documentaire ,je travaille sur SDX et j'utilise XSP ,XML et XSL j'avais besoin d'ajouter dans un resultat xsl un code qui me permet d'afficher du svg inline ,
le code du fichier xsl est le suivant:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" encoding="iso-8859-1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sdx="http://www.culture.gouv.fr/ns/sdx/sdx" exclude-result-prefixes="sdx xsl" xmlns:svg="http://www.w3.org/2000/svg-20000303-stylable">
<xsl:include href="skin.xsl"/>
<xsl:template match="sdx:hilite">
<span class="sdx_hilite" style="background:#FFFFC0; ">
<xsl:apply-templates/>
</span>
</xsl:template>
<xsl:template match="sdx:results">
<br/>
<br/>
<div class="highlight" colspan="2">
<xsl:apply-templates select="." mode="sdx:head"/>
</div>
<table cellpadding="10" cellspacing="0" width="100%" class="paddings" border="3" >
<tr>
<td>
<table cellpadding="3" cellspacing="0" width="100%" >
<xsl:apply-templates select="sdx:result/*"/>
</table>
</td>
<td>
<?import namespace='svg' implementation='#AdobeSVG'?>
<xsl:element name="svg:svg">
<xsl:attribute name="width">4cm</xsl:attribute>
<xsl:attribute name="height">8cm</xsl:attribute>
<xsl:attribute name="xmlns:svg">http://www.w3.org/2000/svg-20000303-stylable</xsl:attribute>
<xsl:element name="svg:desc">Un joli cercle</xsl:element>
<xsl:element name="svg:g">
<xsl:attribute name="id">group1</xsl:attribute>
<xsl:attribute name="fill">red</xsl:attribute>
<xsl:element name="svg:circle">
<xsl:attribute name="cx">100</xsl:attribute>
<xsl:attribute name="cy">50</xsl:attribute>
<xsl:attribute name="r">40</xsl:attribute>
<xsl:attribute name="stroke">black</xsl:attribute>
<xsl:attribute name="stroke-width">2</xsl:attribute>
<xsl:attribute name="fill">red</xsl:attribute>
</xsl:element>
</xsl:element>
</xsl:element>
</td>
</tr>
</table>
<div class="highlight" colspan="2">
<xsl:apply-templates select="." mode="sdx:foot"/>
</div>
</xsl:template>
<xsl:template match="DOC | *[local-name()='html']">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="adresses">
<tr>
<td colspan="2">
<b>URL : </b>
<xsl:apply-templates/>
</td>
</tr>
</xsl:template>
<xsl:template match="adresse">
<a href="{.}">
<xsl:apply-templates/>
</a>
</xsl:template>
<xsl:template match="email">
<a href="mailto:{.}">
<xsl:apply-templates/>
</a>
</xsl:template>
<!-- Handle images node -->
<xsl:template match="titre">
<tr>
<td>
<h1>
<center>
<xsl:apply-templates/>
</center>
</h1>
</td>
</tr>
</xsl:template>
<xsl:template match="images"><xsl:for-each select="image">
<a href="documents/{@src}"> <xsl:value-of select="FOLIO"/></a><br></br>
</xsl:for-each>
</xsl:template>
<xsl:template match="*[local-name()='p']">
<xsl:variable name="pos">
<xsl:number level="any"/>
</xsl:variable>
<p>
<xsl:if test="$pos=1">
<xsl:attribute name="class">first</xsl:attribute>
</xsl:if>
<xsl:apply-templates/>
</p>
</xsl:template>
<xsl:template match="responsable |
*[local-name()='meta']
[
contains(@name, 'author')
or contains(@name, 'creator')
or contains(@name, 'publisher')
]
">
<tr>
<td colspan="2">
<b>Créatrice</b> : <xsl:apply-templates select="node()|@*"/>
</td>
</tr>
</xsl:template>
<xsl:template match="*[local-name()='meta'][@name='keywords']">
<tr>
<td colspan="2">
<b>Clés : </b>
<xsl:apply-templates select="node()|@*"/>
</td>
</tr>
</xsl:template>
<xsl:template match="*[local-name()='meta'][contains(@name, 'description')]">
<tr>
<td colspan="2">
<b>Description : </b>
<xsl:apply-templates select="node()|@*"/>
</td>
</tr>
</xsl:template>
<xsl:template match="description | *[local-name()='body']">
<tr>
<td colspan="2">
<table cellpadding="10" cellspacing="0" >
<tr>
<td class="text">
<xsl:apply-templates/>
</td>
</tr>
</table>
</td>
</tr>
</xsl:template>
<xsl:template match="lien">
<a href="{@cible}">
<xsl:value-of select="."/>
</a>
</xsl:template>
<!-- =========== HTML ============ -->
<xsl:template match="*[local-name()='head']">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="*[local-name()='meta']"/>
<xsl:template match="*[local-name()='script']"/>
<!-- styles, script -->
<xsl:template match="@style"/>
<xsl:template match="@*[starts-with(local-name(), 'on')]"/>
<xsl:template match="table/@width | td/@width"/>
<xsl:template match="table/@width[number(.)>500] | td/@width[number(.)>150]"/>
<!-- resolve links -->
<xsl:template match="@src | @href | @action">
<xsl:variable name="base" select="ancestor::sdx:result[1]/sdx:field[@name='base']/@value"/>
<xsl:attribute name="{name()}"><xsl:if test="not(starts-with(., 'http')) and not(starts-with(. , '#')) and not(starts-with(. , 'mailto'))"><xsl:value-of select="$base"/></xsl:if><xsl:if test="not( starts-with(., '/') or starts-with(., 'http') or starts-with(., '#') or starts-with(. , 'mailto'))">/</xsl:if><xsl:value-of select="."/></xsl:attribute>
</xsl:template>
<!-- copy all elements and attributes, except for sdx:*/@*, where apply sdx-default.xsl -->
<xsl:template match="sdx:*/@*" priority="1">
<xsl:apply-imports/>
</xsl:template>
<xsl:template match="sdx:*" priority="-1">
<xsl:apply-imports/>
</xsl:template>
<xsl:template match="@*" priority="-1">
<xsl:attribute name="{name()}"><xsl:value-of select="."/></xsl:attribute>
<!--<xsl:copy/> -->
</xsl:template>
<xsl:template match="*" priority="-1">
<xsl:element name="{name()}">
<xsl:apply-templates select="@*"/>
<xsl:apply-templates select="comment()|text()| node()"/>
</xsl:element>
</xsl:template>
<xsl:template match="text()|processing-instruction()|comment()" priority="-1">
<xsl:copy>
<xsl:apply-templates select="*|text()|processing-instruction()|comment()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="link"/>
</xsl:stylesheet>
et le fichier XSP :
<?xml version="1.0"?>
<xsp:page xmlns:xsp="http://apache.org/xsp" xmlns:sdx="http://www.culture.gouv.fr/ns/sdx/sdx" language="java">
<sdx:page>
<bar/>
<sdx:executeFieldQuery field="sdxdocid" valueParam="id" hpp="1" docs="true" hiliteParam="qid">
<sdx:fallback>
<sdx:executeSimpleQuery base="sdxworld sdxdoc" query="sdxall:1" docs="true" hpp="1" hilite="true">
<sdx:expandQuery th="dico"/>
</sdx:executeSimpleQuery>
</sdx:fallback>
</sdx:executeFieldQuery>
</sdx:page>
</xsp:page>
le fichier XML produit par la servlet sdx est celui qui lui accede le xsl pour produire le html souhaité:
<?xml version="1.0"?>
<sdx:document xmlns:xsp="http://apache.org/xsp" xmlns:sdx="http://www.culture.gouv.fr/ns/sdx/sdx" xml:lang="fr-FR" server="http://localhost:8080/sdx-2.2.1-vm14" api-url="http://localhost:8080/sdx-2.2.1-vm14/sdx/api-url" app="application.sdx.rfv" appbypath="sdxtest" uri="http://localhost:8080/sdx-2.2.1-vm14/sdxtest/resultatsonia.xsp2sdx" query="?app=application.sdx.rfv&base=sdxworld&id=imageB1038761&qid=sdx_q3&n=1&q=" version="2.2.1" build="2004111001" date="Wed Apr 20 11:04:50 CEST 2005">
<bar/>
<sdx:hilites>
<sdx:term value="185"/>
</sdx:hilites>
<sdx:results qid="sdx_q3" page="1" hpp="1" pages="2" nb="2" start="1" end="1" id="sdx_q3" currentPage="1" nbPages="2">
<sdx:query type="simple" engine="lucene" luceneQuery="185" escapedLuceneQuery="185" text="185" escapedText="185" op="or" sdx:hilite-luceneQuery="1:3" sdx:hilite-escapedLuceneQuery="1:3" sdx:hilite-text="1:3" sdx:hilite-escapedText="1:3"/>
<sdx:sort/>
<sdx:result no="1" score="0.5" pctScore="100">
<sdx:field name="sdxrepoid" value="sdxworldRepo" escapedValue="sdxworldRepo" indexed="true" tokenized="false">sdxworldRepo</sdx:field>
<sdx:field name="sdxcontentlength" value="500" escapedValue="500" type="field" indexed="true" tokenized="false">500</sdx:field>
<sdx:field name="sdxmoddate" timeInMilliseconds="1113911118609" value="2005-04-19T13:45:18Z" escapedValue="2005-04-19T13%3A45%3A18Z" type="date" indexed="true" tokenized="false">2005-04-19T13:45:18Z</sdx:field>
<sdx:field name="sdxdoctype" value="xml" escapedValue="xml" type="field" indexed="true" tokenized="false">xml</sdx:field>
<sdx:field name="sdxappid" value="application.sdx.rfv" escapedValue="application.sdx.rfv" type="field" indexed="true" tokenized="false">application.sdx.rfv</sdx:field>
<sdx:field name="sdxdbid" value="sdxworld" escapedValue="sdxworld" type="field" indexed="true" tokenized="false">sdxworld</sdx:field>
<sdx:field name="sdxall" value="1" escapedValue="1" type="field" indexed="true" tokenized="false">1</sdx:field>
<sdx:field name="sdxdocid" value="imageB1038761" escapedValue="imageB1038761" type="field" indexed="true" tokenized="false">imageB1038761</sdx:field>
<sdx:field name="numeropage" value="185" escapedValue="185" type="field" indexed="true" tokenized="false" sdx:hilite-value="1:3" sdx:hilite-escapedValue="1:3">
<sdx:hilite no="1" term="185">185</sdx:hilite>
</sdx:field>
<sdx:field name="fy" value="1364" escapedValue="1364" type="field" indexed="true" tokenized="false">1364</sdx:field>
<sdx:field name="fx" value="2361" escapedValue="2361" type="field" indexed="true" tokenized="false">2361</sdx:field>
<sdx:field name="dy" value="1318" escapedValue="1318" type="field" indexed="true" tokenized="false">1318</sdx:field>
<sdx:field name="dx" value="2221" escapedValue="2221" type="field" indexed="true" tokenized="false">2221</sdx:field>
<sdx:field name="index" value="manu" escapedValue="manu" type="field" indexed="true" tokenized="false">manu</sdx:field>
<sdx:field name="titre" value="image B103876101G2700632C" escapedValue="image+B103876101G2700632C" type="field" indexed="true" tokenized="false">image B103876101G2700632C</sdx:field>
<DOC id="imageB1038761">
<titre> image B103876101G2700632C </titre>
<images>
<image src="images/B103876101_G27_00632_C.jpg" id="borajpg" mime-type="image/jpeg">
<MOTCLE id="manu">
<HIT dist="152520" dx="2221" dy="1318" fx="2361" fy="1364" fname="images/B103876101_G27_00632_C.jpg"/>
</MOTCLE>
<FOLIO typo="0" double="0" mire="0">
<sdx:hilite no="2" term="185">185</sdx:hilite>
</FOLIO>
</image>
</images>
</DOC>
</sdx:result>
</sdx:results>
<sdx:user id="admin" admin="true" app="application.sdx.rfv" ip="127.0.0.1" host="127.0.0.1" xml:lang="fr-FR">
<sdx:group id="admins"/>
</sdx:user>
<sdx:parameters>
<sdx:parameter type="get" name="q" value="" escapedValue=""/>
<sdx:parameter type="get" name="base" value="sdxworld" escapedValue="sdxworld"/>
<sdx:parameter type="get" name="qid" value="sdx_q3" escapedValue="sdx_q3"/>
<sdx:parameter type="get" name="app" value="application.sdx.rfv" escapedValue="application.sdx.rfv"/>
<sdx:parameter type="get" name="n" value="1" escapedValue="1"/>
<sdx:parameter type="get" name="id" value="imageB1038761" escapedValue="imageB1038761"/>
</sdx:parameters>
</sdx:document>
il y a aussi un fichier de configuration pour l'application un sitemap.xmap:
<?xml version="1.0"?>
<!-- Sitemap for the sdxworld application -->
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<!-- =========================== Components ================================ -->
<map:components>
<!-- generators -->
<map:generators default="xsp">
<map:generator name="file" src="org.apache.cocoon.generation.FileGenerator" label="content,data" logger="sitemap.generator.file" pool-max="32" pool-min="8" pool-grow="4"/>
<map:generator name="xsp" src="org.apache.cocoon.generation.ServerPagesGenerator" logger="sitemap.generator.serverpages" pool-max="32" pool-min="4" pool-grow="2"/>
</map:generators>
<!-- readers -->
<map:readers default="resource">
<map:reader name="resource" src="org.apache.cocoon.reading.ResourceReader" logger="sitemap.reader.resource" pool-max="32"/>
</map:readers>
<!-- transformers -->
<map:transformers default="xsl">
<map:transformer name="xsl" src="org.apache.cocoon.transformation.TraxTransformer" logger="sitemap.transformer.xslt" pool-max="32" pool-min="8" pool-grow="2"/>
</map:transformers>
<!-- serializers -->
<map:serializers default="html">
<map:serializer name="xml" src="org.apache.cocoon.serialization.XMLSerializer" mime-type="text/xml" logger="sitemap.serializer.xml"/>
<map:serializer name="html" src="org.apache.cocoon.serialization.HTMLSerializer" mime-type="text/html" logger="sitemap.serializer.html" pool-max="32" pool-min="4" pool-grow="4">
<buffer-size>1024</buffer-size>
<encoding>ISO-8859-1</encoding>
</map:serializer>
<map:serializer name="xhtml" mime-type="text/html" logger="sitemap.serializer.xhtml" src="org.apache.cocoon.serialization.XMLSerializer" pool-max="64" pool-min="2" pool-grow="2">
<doctype-public>-//W3C//DTD XHTML 1.0 Strict//EN</doctype-public>
<doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</doctype-system>
<encoding>UTF-8</encoding>
</map:serializer>
<map:serializer name="text" src="org.apache.cocoon.serialization.XMLSerializer" mime-type="text/plain" logger="sitemap.serializer.xml">
<encoding>UTF-8</encoding>
</map:serializer>
</map:serializers>
<!-- selectors -->
<map:selectors default="browser"/>
<!-- matchers -->
<map:matchers default="wildcard">
<map:matcher name="wildcard" src="org.apache.cocoon.matching.WildcardURIMatcherFactory"/>
</map:matchers>
<!-- actions -->
<map:actions default="isAdmin">
<map:action name="isAdmin" logger="sdx.sitemap.AdminAction" src="fr.gouv.culture.sdx.sitemap.AdminAction"/>
</map:actions>
</map:components>
<!-- =========================== Pipelines ================================= -->
<map:pipeline>
<!-- If no server redirection, a default welcome page -->
<map:match pattern="">
<map:redirect-to uri="index.xsp"/>
</map:match>
<!-- <map:match pattern="params.xsp">
<map:generate type="xsp" src="params.xsp"/>
<map:serialize/>
</map:match> -->
<!-- General XSP processing with an XSLT stylesheet having the same name -->
<map:match pattern="*.xsp">
<map:generate type="xsp" src="{1}.xsp"/>
<map:transform src="xsl/{1}.xsl">
<!-- <map:parameter name="use-request-parameters" value="true"/> -->
</map:transform>
<map:serialize/>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>
c'est un fichier pour configuration des pages xsp
et un autre pour la configuration de l'application particulièrement pour renseigner des pages xsl:
<?xml version="1.0" encoding="UTF-8"?>
<sdx:application xmlns:sdx="http://www.culture.gouv.fr/ns/sdx/sdx" id="application.sdx.rfv" xml:lang="fr-FR" xmlns="http://www.culture.gouv.fr/ns/sdx/sdx">
<sdx:access type="restricted">
<sdx:allow host=".*\.culture\.fr .*\.culture\.gouv\.fr"/>
<sdx:allow ip="132.204.10.24"/>
<sdx:allow id="portail.culture.fr"/>
</sdx:access>
<sdx:documentBases>
<sdx:documentBase id="sdxworld" type="lucene" default="true" keepOriginalDocuments="true">
<sdx:queryParser class="fr.gouv.culture.sdx.search.lucene.queryparser.DefaultQueryParser"/>
<!-- A document base must have one or more repositories -->
<sdx:repositories>
<sdx:repository id="sdxworldRepo" type="FS" baseDirectory="repos/sdxworld" depth="0" extent="100" default="true"/>
<sdx:repository id="url" type="URL"/>
</sdx:repositories>
<sdx:fieldList xml:lang="fr-FR" variant="" analyzerConf="/sdx/resources/conf/analysis/fr.xml">
<sdx:field name="contenu" type="word" default="true">
<sdx:name xml:lang="fr-FR">Texte intégral</sdx:name>
</sdx:field>
<sdx:field name="titre" type="field" brief="true">
<sdx:name xml:lang="fr-FR">Titre</sdx:name>
</sdx:field>
<sdx:field name="numeropage" type="field" brief="true">
<sdx:name xml:lang="fr-FR">numeropage</sdx:name>
</sdx:field>
<sdx:field name="index" type="field" brief="true">
<sdx:name xml:lang="fr-FR">index</sdx:name>
</sdx:field>
<sdx:field name="dx" type="field" brief="true">
<sdx:name xml:lang="fr-FR">dx</sdx:name>
</sdx:field>
<sdx:field name="dy" type="field" brief="true">
<sdx:name xml:lang="fr-FR">dy</sdx:name>
</sdx:field>
<sdx:field name="fx" type="field" brief="true">
<sdx:name xml:lang="fr-FR">fx</sdx:name>
</sdx:field>
<sdx:field name="fy" type="field" brief="true">
<sdx:name xml:lang="fr-FR">fy</sdx:name>
</sdx:field>
<sdx:field name="url" type="field" brief="true">
<sdx:name xml:lang="fr-FR">url</sdx:name>
</sdx:field>
<sdx:field name="jour" type="field" brief="true">
<sdx:name xml:lang="fr-FR">Jour</sdx:name>
</sdx:field>
<sdx:field name="doc" type="field" brief="true">
<sdx:name xml:lang="fr-FR">Document</sdx:name>
</sdx:field>
<sdx:field name="image" type="field" brief="true">
<sdx:name xml:lang="fr-FR">Image</sdx:name>
</sdx:field>
<sdx:field name="lien" type="field" brief="true">
<sdx:name xml:lang="fr-FR">Lien</sdx:name>
</sdx:field>
<sdx:field name="base" type="field" brief="true">
<sdx:name xml:lang="fr-FR">URL de base</sdx:name>
</sdx:field>
</sdx:fieldList>
<sdx:index>
<sdx:pipeline>
<sdx:transformation id="index-projet" type="XSLT" src="index-projet.xsl"/>
</sdx:pipeline>
</sdx:index>
<sdx:oai-repository name="test oai repository for sdxworld document base of the sdxtest application" adminEmail="rasik.pandey@ajlsm.com" baseURL="http://localhost:8080/sdx/oai/sdxtest/sdxworld">
<sdx:oai-format name="OAI Dublin core" metadataPrefix="oai_dc" namespace="http://purl.org/dc/elements/1.1/" schemaUrl="http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
<sdx:oai-fields>
<sdx:oai-field name="title" sdxField="titre" repeated="concatenate" separator=" ;; "/>
<sdx:oai-field name="numeropage" sdxField="numeropage" repeated="concatenate" separator=" ;; "/>
<sdx:oai-field name="index" sdxField="index" repeated="concatenate" separator=" ;; "/>
<sdx:oai-field name="dx" sdxField="dx" repeated="concatenate" separator=" ;; "/>
<sdx:oai-field name="dy" sdxField="dy" repeated="concatenate" separator=" ;; "/>
<sdx:oai-field name="fx" sdxField="fx" repeated="concatenate" separator=" ;; "/>
<sdx:oai-field name="fy" sdxField="fy" repeated="concatenate" separator=" ;; "/>
<sdx:oai-field name="source" sdxField="url" repeated="concatenate" separator=" ** "/>
<sdx:oai-field name="identifier" sdxField="sdxdocid"/>
</sdx:oai-fields>
</sdx:oai-format>
<sdx:oai-format name="SDX" metadataPrefix="sdx">
<sdx:oai-fields>
<sdx:oai-field sdxField="titre" repeated="concatenate" separator=" ;; "/>
<sdx:oai-field sdxField="numeropage" repeated="concatenate" separator=" ;; "/>
<sdx:oai-field sdxField="index" repeated="concatenate" separator=" ;; "/>
<sdx:oai-field sdxField="dx" repeated="concatenate" separator=" ;; "/>
<sdx:oai-field sdxField="dy" repeated="concatenate" separator=" ;; "/>
<sdx:oai-field sdxField="fx" repeated="concatenate" separator=" ;; "/>
<sdx:oai-field sdxField="fy" repeated="concatenate" separator=" ;; "/>
<sdx:oai-field sdxField="url" repeated="concatenate" separator=" ** "/>
</sdx:oai-fields>
</sdx:oai-format>
<sdx:oai-subset>
<sdx:include query="sdxdocid:b*"/>
<sdx:exclude query="sdxdocid:a*"/>
</sdx:oai-subset>
</sdx:oai-repository>
</sdx:documentBase> <sdx:documentBase id="sdxdoc" type="lucene" keepOriginalDocuments="true">
<sdx:queryParser class="fr.gouv.culture.sdx.search.lucene.queryparser.DefaultQueryParser"/>
<sdx:repositories>
<sdx:repository id="sdxdocRepo" type="URL" default="true"/>
</sdx:repositories>
<sdx:fieldList xml:lang="fr-FR" variant="" analyzerConf="/sdx/resources/conf/analysis/fr.xml">
<sdx:field name="contenu" type="word" default="true">
<sdx:name xml:lang="fr-FR">Texte intégral</sdx:name>
</sdx:field>
<sdx:field name="titre" type="field" brief="true">
<sdx:name xml:lang="fr-FR">Titre</sdx:name>
</sdx:field>
<sdx:field name="numeropage" type="field" brief="true">
<sdx:name xml:lang="fr-FR">numeropage</sdx:name>
</sdx:field>
<sdx:field name="index" type="field" brief="true">
<sdx:name xml:lang="fr-FR">index</sdx:name>
</sdx:field>
<sdx:field name="dx" type="field" brief="true">
<sdx:name xml:lang="fr-FR">dx</sdx:name>
</sdx:field>
<sdx:field name="dy" type="field" brief="true">
<sdx:name xml:lang="fr-FR">dy</sdx:name>
</sdx:field>
<sdx:field name="fx" type="field" brief="true">
<sdx:name xml:lang="fr-FR">fx</sdx:name>
</sdx:field>
<sdx:field name="fy" type="field" brief="true">
<sdx:name xml:lang="fr-FR">fy</sdx:name>
</sdx:field>
</sdx:fieldList>
<sdx:index>
<sdx:pipeline>
<sdx:transformation id="index-html" type="XSLT" src="index-html.xsl"/>
</sdx:pipeline>
</sdx:index>
</sdx:documentBase>
</sdx:documentBases>
<sdx:thesauri>
<sdx:thesaurus id="dico" type="lucene" src="dico.xml">
<sdx:depth>0</sdx:depth>
<sdx:relations>
<sdx:relation>et</sdx:relation>
</sdx:relations>
<sdx:fieldList xml:lang="fr-FR" variant="" analyzerConf="/sdx/resources/conf/analysis/fr.xml">
<sdx:field name="term" type="word" brief="true" default="true">
<sdx:name xml:lang="fr-FR">Term</sdx:name>
</sdx:field>
<sdx:field name="fterm" type="field" brief="true">
<sdx:name xml:lang="fr-FR">Term TYPE Field</sdx:name>
</sdx:field>
<sdx:field name="bts" type="field" brief="true">
<sdx:name xml:lang="fr-FR">Broader TermS</sdx:name>
</sdx:field>
<sdx:field name="bt" type="field" brief="true">
<sdx:name xml:lang="fr-FR">Broader Term</sdx:name>
</sdx:field>
<sdx:field name="nt" type="field" brief="true">
<sdx:name xml:lang="fr-FR">Narrower Term</sdx:name>
</sdx:field>
<sdx:field name="et" type="field" brief="true">
<sdx:name xml:lang="fr-FR">Equivalent Term</sdx:name>
</sdx:field>
<sdx:field name="rt" type="field" brief="true">
<sdx:name xml:lang="fr-FR">Related Term</sdx:name>
</sdx:field>
<sdx:field name="pe" type="field" brief="true">
<sdx:name xml:lang="fr-FR">Partial Equivalence</sdx:name>
</sdx:field>
<sdx:field name="use" type="field" brief="true">
<sdx:name xml:lang="fr-FR">Use</sdx:name>
</sdx:field>
<sdx:field name="uf" type="word" brief="true">
<sdx:name xml:lang="fr-FR">Used For</sdx:name>
</sdx:field>
<sdx:field name="fuf" type="field" brief="true">
<sdx:name xml:lang="fr-FR">Used For TYPE Field</sdx:name>
</sdx:field>
<sdx:field name="sn" type="word" brief="true">
<sdx:name xml:lang="fr-FR">Scope note</sdx:name>
</sdx:field>
<sdx:field name="xmllang" type="field" brief="true">
<sdx:name xml:lang="fr-FR">xml:lang field</sdx:name>
</sdx:field>
</sdx:fieldList>
</sdx:thesaurus>
</sdx:thesauri>
</sdx:application>
c'est en faite aussi pour definir les index pour cette application
je vous donne aussi le code de fichier d'entrée pour l'application
<?xml version="1.0" encoding="UTF-8"?>
<DOC id="imageB1038761">
<titre> image B103876101G2700632C </titre>
<images>
<image src="images/B103876101_G27_00632_C.jpg" id="borajpg" mime-type="image/jpeg">
<MOTCLE id="manu">
<HIT dist="152520" dx="2221" dy="1318" fx="2361" fy="1364" fname="images/B103876101_G27_00632_C.jpg"/>
</MOTCLE>
<FOLIO typo="0" double="0" mire="0"> 185</FOLIO>
</image>
</images>
</DOC>
le problème que lorsque j'ai inserer le code pour afficher le SVG inline dans le xsl il affiche que la description du SVG alors qu'il ne faut pas l'afficher
un joli cercle
mais il ne dessine pas le svg souhaite le cercle
merci d'avance