This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
how get the correct value?
- From: "Carlos" <linux at lpis dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 8 Apr 2002 11:13:08 +0200
- Subject: [xsl] how get the correct value?
- References: <000301c1d4c7$2e594fb0$6501a8c0@pcukmka>
- Reply-to: xsl-list at lists dot mulberrytech dot com
if i have this xml:
<PARRAFOS>
<IMAGEN>3.gif
<TEXTO>asdf asfd sfd afas fasfd</TEXTO>
<TEXTO>asdf asfd sfd afas fasfd</TEXTO>
<TEXTO>asdf asfd sfd afas fasfd</TEXTO>
<TEXTO>asdf asfd sfd afas fasfd</TEXTO>
</IMAGEN>
<IMAGEN>5.gif
<TEXTO>asdf asfd sfd afas fasfd</TEXTO>
</IMAGEN>
<IMAGEN>
<TEXTO>44.gif</TEXTO>
</IMAGEN>
</PARRAFOS>
how , with xslt, can i get:
3.gif <br/>
5.gif<br/>
44.gif
can any body help me?
i am using this, but it doesn't runs:
<xsl:for-each select="PARRAFOS/IMAGEN">
<xsl:variable name="sGif" select="normalize-space(text()[1])"/>
<xsl:choose>
<xsl:when test="$sGif">
<xsl:value-of select="text()"/><BR/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list