[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: how get the correct value?

Subject: Re: how get the correct value?
From: Oleg Tkachenko <olegt@xxxxxxxxxxxxx>
Date: Mon, 08 Apr 2002 13:57:16 +0200
gif texto
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>

how , with xslt, can i get:
3.gif <br/>
5.gif<br/>
44.gif

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>&#xA;</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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.