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

Re: Getting values from different templates

Subject: Re: Getting values from different templates
From: T Uma Shankari <umashankari@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 10 Jan 2006 15:32:04 +0530 (IST)
last templates
> <xsl:template name="finalstring">
>    <xsl:param name="stringfirst"/>
>    <xsl:param name="stringmid"/>
>    <xsl:param name="stringend"/>
>    <xsl:value-of select="$stringfirst"/>
>    <xsl:value-of select="$stringmid"/>
>    <xsl:value-of select="$stringend"/>
>   </xsl:template>
>
>
> But while executing  i can get only the third variable value. Please correct me where i am doing wrong.

You've probably got a typo in the place where finalstring is called,
but you haven't posted that bit of code.  Even then, this is a pretty
pointless template - what are you trying to achieve?  Wherever you
call finalstring, you could just use value-of instead.


I used the value-of to display the values instead of calling in different template. But i am getting only the value which i got in the last template.


Is that possible values get over written if we use the same attribute for matching? actually my input file looks like this

<content>statement1 |option1\ statement2</content>
<content>statement1 |option2\ statement2</content>
...


So i will retrieve statement1 from contents attribute in one template and doing some replacement of that contents. likewise doing for option1,statement2. while trying to display the 3 final values of the templates i am getting only the last template (statment2) value alone.

thanks in advance!

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.