From: Frederic Laurent (frederic.laurent@bigfoot.com)
Date: 23/10/2000 - 16:55
Salut,
il y a quelque chose qui m'interpelle ...
j'ai
---------pos.xml--------------
<?xml version="1.0" encoding="ISO-8859-1" ?>
<a>
<b>
<c t="abc" />
<c t="edf" />
<s t="xwy" />
<c t="mno" />
</b>
</a>
------------------------------
---------pos.xsl--------------
<?xml version='1.0' encoding="ISO-8859-1" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="text" indent="yes" encoding="ISO-8859-1"/>
<xsl:template match="/">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="c">
<xsl:value-of select="position()" /> : <xsl:value-of select="@t"/>
</xsl:template>
</xsl:stylesheet>
------------------------------
Et en sortie j'obtiens
Transforming...
2 : abc
4 : edf
8 : mno
transform took 232 milliseconds
XSLProcessor: done
!!!
Je pensais avoir quelque chose ressemblant à
1 : abc
2 : edf
4 : mno
Donc il y a quelque chose qui m'échappe...
si quelqu'un a une idée...
merci
--
Frédéric LAURENT
--
Devenez redacteur <XML>fr et contribuez au developpement du
xml francophone (http://xmlfr.org/infos/redacteurs/) !
Liste de diffusion "xml-tech@xmlfr.org" (http://xmlfr.org).
Cette liste est a votre disposition pour discuter en francais de
tout sujet technique lie a XML.
Pour resilier votre abonnement, envoyez un message contenant
la commande "unsubscribe" a xml-tech-request@xmlfr.org
(mailto:xml-tech-request@xmlfr.org?Subject=unsubscribe)
Archive générée par hypermail 2.1.3 le 28/06/2004 - 11:05 UTC
webmaster@xmlfr.org
|