|
Subject: [xsl] how get the correct value? From: "Carlos" <linux@xxxxxxxx> Date: Mon, 8 Apr 2002 11:13:08 +0200 |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Multiple documents from o, Michael Kay | Thread | Re: [xsl] how get the correct value, Oleg Tkachenko |
| [xsl] Multiple documents from one s, Maxim Patramanskij | Date | Re: [xsl] explain of Joerg xslt (wa, Mike Brown |
| Month |