[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: how get the correct value?
Carlos wrote:
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> Can you explain us which text you want to be in the output? I can see only one common criterion - ".gif" substring, so just for fun llok at this: <xsl:template match="text()"> <xsl:if test="contains(.,'.gif')"> <xsl:value-of select="normalize-space()"/> <xsl:if test="ancestor::IMAGEN/following-sibling::IMAGEN"> <br/> <xsl:text>
</xsl:text> </xsl:if> </xsl:if> </xsl:template> -- Oleg Tkachenko Multiconn International, Israel 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
|