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

RE: Problem with parameter processing

Subject: RE: Problem with parameter processing
From: "Avula, Raj" <ravula@xxxxxxxxxxx>
Date: Fri, 17 Jan 2003 14:55:17 -0800
trantime

Create a String out of the array with a delimiter like "1:3:4:8:"
Pass this string as parameter to XSL file.
With in the xsl you can do something like.

<xsl:for-each select="trnsaction">
	<xsl:if test="contains(ARRAY_STRING, @id)">
		do processing
	</xsl:if>
</xsl:for-each>

Raj..

-----Original Message-----
From: Jaywanth [mailto:jrao@xxxxxxxxxx]
Sent: Friday, January 17, 2003 4:46 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Problem with parameter processing


Hi All,

I am newbie to the XSL world and would appreciate any help..

I have an array in a java program that has elements [1,3] , i need a way to
pass this array to XSL and filter the transactions whose "id" attribute
match the values in the array .

In the sample listed below, i need the header part (
<TPCA><company><location><transactions> ) and the transactions 1 and 3 in
the output.

Any sample code would be of great help.

Thanks and Warm regards
Jaywanth



<?xml version="1.0" encoding="UTF-8"?>
<TPCA xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="SAMPLE.xsd">
 <company>AAA</company>
 <location>bbb</location>
 <transactions>
  <transaction id="1">
   <tranDate>11/11/2002</tranDate>
   <tranTime> 11:30 </tranTime>
  </transaction>
  <transaction id="2">
   <tranDate>11/11/2002</tranDate>
   <tranTime> hhh </tranTime>
  </transaction>
  <transaction id="3">
   <tranDate>11/11/2002</tranDate>
   <tranTime>11:50</tranTime>
  </transaction>
 </transactions>
</TPCA>




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


"MMS <firstam.com>" made the following
 annotations on 01/17/03 14:55:21
------------------------------------------------------------------------------
"THIS E-MAIL MESSAGE AND ANY FILES TRANSMITTED HEREWITH, ARE INTENDED SOLELY FOR THE USE OF THE INDIVIDUAL(S) ADDRESSED AND MAY CONTAIN CONFIDENTIAL, PROPRIETARY OR PRIVILEGED INFORMATION.  IF YOU ARE NOT THE ADDRESSEE INDICATED IN THIS MESSAGE (OR RESPONSIBLE FOR DELIVERY OF THIS MESSAGE TO SUCH PERSON) YOU MAY NOT REVIEW, USE, DISCLOSE OR DISTRIBUTE THIS MESSAGE OR ANY FILES TRANSMITTED HEREWITH.  IF YOU RECEIVE THIS MESSAGE IN ERROR, PLEASE CONTACT THE SENDER BY REPLY E-MAIL AND DELETE THIS MESSAGE AND ALL COPIES OF IT FROM YOUR SYSTEM."

==============================================================================


 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.