Subject: RE: [xsl] Problem with parameter processing From: "Avula, Raj" <ravula@xxxxxxxxxxx> Date: Sat, 18 Jan 2003 16:08:21 -0800 |
You are Right. I missed it. Thanks, Raj.. -----Original Message----- From: Mike Brown [mailto:mike@xxxxxxxx] Sent: Friday, January 17, 2003 6:53 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Problem with parameter pr, Mike Brown | Thread | [xsl] Imbedding a document in an el, Peter Van de Water |
RE: [xsl] RTF TABLE USING XSL, Rob Staveley \(Tom\) | Date | Re: [xsl] top level params and xsl:, Mike Brown |
Month |