xsl-list
[Top] [All Lists]

RE: Problem with parameter processing

2003-01-18 17:08:21
You are Right. I missed it.


Thanks,
Raj..

-----Original Message-----
From: Mike Brown [mailto:mike(_at_)skew(_dot_)org]
Sent: Friday, January 17, 2003 6:53 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Problem with parameter processing


Avula, Raj wrote:
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>

If the id is 9 and the string contains something like "509" he'll get a
match.
He needs to completely delimit the numbers, putting his delimiter character
at
the beginning and end, then look for the number plus both its delimiters, so

he can be sure he is matching on the whole number, not just a partial one.

Mike

-- 
  Mike J. Brown   |  http://skew.org/~mike/resume/
  Denver, CO, USA |  http://skew.org/xml/


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


"MMS <firstam.com>" made the following
 annotations on 01/18/03 16:08:24
------------------------------------------------------------------------------
"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



<Prev in Thread] Current Thread [Next in Thread>