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

Accessing array variable

Subject: Accessing array variable
From: "Andy Srinivasan" <sriandy74@xxxxxxxxxxx>
Date: Tue, 12 Jun 2001 11:54:35 -0400
accessing array
hi!

I just wanted to access the array variable. I am expriencing difficulties with it.
Here's what I do,


I am trying to convert XML-XML.I have declared a array variable called benefit
<xsl:variable name="benefit">
<period ID='12M'>1</period>
<period ID='18M'>2</period>
<period ID='24M'>3</period>
<period ID='2Y'>4</period>
<period ID='5Y'>5</period>
</xsl:variable>



timePeriod="<xsl:value-of select="benefit/period[@ID =$BP] "/>" </xsl:if>


where BP is another variable that I used in my program. Based on the value I pass to BP, it should select the relevant value from the variable array.

For example, if BP=18M then timePeriod should be 2.

I tried to view the resulting XML in IE5.0, I found the value of timePeriod to be null. It worked in another PC where the same IE5.0 has been installed.
What could be the reason for this?
I tried the same thru a java program using Xalan, it returns null only.


Looking forward for some positive suggestion.

Anand


_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com


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.