[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] how get the correct value?
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|