Ok merci pour la r�ponse, Alors si j'ai bien compris ce que vous me demandez...
en entr�e j'ai : <?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://vincent:8080/sdx" api-url="http://vincent:8080/sdx/sdx/api-url" app="fr.MobydocDemonstration.test" appbypath="test" uri="http://vincent:8080/sdx/test/voir.xsp2sdx" query="?id=00101-3074&q=sdx_q7&n=3&e=" version="2.2.1" build="2004111001" date="Wed Jun 01 16:21:54 CEST 2005"> <Notice Fichier="Inventaire" NumFichier="00101" Num="3074"> <Contenu> [...] <Zone Code="Domaine" Nom="Domaine" Repetable="non"> <OccurZone> <Champ Code="Domaine" Nom="Domaine" Repetable="oui"> <OccurChamp EstCritere="oui" LibCritere="domaine">Arch�ologie</OccurChamp> </Champ> </OccurZone> </Zone> [...] </Contenu> </Notice> [...] </sdx:document> En sortie j'ai : <?xml version="1.0"?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <link rel="stylesheet" type="text/css" href="css/general.css"/> </head> <body> [...] <span class="LibZoneF001P00">Domaine : </span><br/> <a style="text-decoration:underline;" class="ChampF001P00" href="rechcroisee.xsp?f=Ensemble&v=&f=domaine_field&v=Arch%E9ologie&e=">Arch�ologie</a> <p/> [...] </body> </html> En transformation j'ai : <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sdx="http://www.culture.gouv.fr/ns/sdx/sdx" version="1.0" exclude-result-prefixes="sdx"> <xsl:import href="common.xsl"/> <!--<xsl:include href="skin.xsl"/>--> <xsl:preserve-space elements="Literal"/> <xsl:variable name="messages" select="document('messages.xml')/messages"/> <xsl:variable name="ens" select="/sdx:document/sdx:parameters/sdx:[EMAIL PROTECTED]'e']/@value"/> <xsl:template match="sdx:document"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <link rel="stylesheet" type="text/css" href="css/general.css"/> </head> <body> [...] <xsl:apply-templates select="[EMAIL PROTECTED]'Domaine']" mode="F001P00"/> [...] </body> </html> </xsl:template> [...] <xsl:template match="[EMAIL PROTECTED]'Domaine']" mode="F001P00"> <span class="LibZoneF001P00">Domaine : </span> <xsl:apply-templates select="OccurZone" mode="Z74F001P00"/> </xsl:template> [...] <xsl:template match="OccurChamp" mode="C75Z74F001P00"> <xsl:variable xmlns:urle="java:java.net.URLEncoder" name="urlSafeCrit" select="urle:encode(string(normalize-space(.)))"/> <a style="text-decoration:underline;" class="ChampF001P00" href="rechcroisee.xsp?f=Ensemble&v={$ens}&[EMAIL PROTECTED]&v={$urlSafeCrit}&e={$ens}"><xsl:value-of select="."/></a> </xsl:template> [...] </xsl:stylesheet> D�sol� si j'ai pas bien compris. _______________________________________________ sdx-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/sdx-users
