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

Re: Need help with XSL Variable

Subject: Re: Need help with XSL Variable
From: Scott_Boag/CAM/Lotus <CN=Scott_Boag/OU=CAM/O=Lotus@xxxxxxxxx>
Date: Tue, 18 May 1999 15:34:10 +0000 (EST)
xsl variable help
Looks like a nasty bug in the comparison function.  You can work around
this by forcing a comparison to a string:

     <xsl:variable name="CREF" expr

Thanks for the heads up.  I think this gives me a clue to another bug that
I've had reported.


"Sharmila Pandith" <sharmila@xxxxxxxxx>@mulberrytech.com on 05/18/99
10:44:51 AM

Please respond to xsl-list@xxxxxxxxxxxxxxxx

Sent by:  owner-xsl-list@xxxxxxxxxxxxxxxx

To:   "XSL List" <XSL-List@xxxxxxxxxxxxxxxx>
Subject:  Need help with XSL Variable


I am using the latest LotusXSL processor which is in accordance with the
April XSL draft.

I have the following XML:
<advertisement action="inquiry" state="view">
<contact id="contact1">
     <company>WILLIAM S. ROSS R.E.</company>
     <phone where="work" type="phone"></phone>
<contact id="fwd1">
     <phone where="work" type="phone">9147930663</phone>
     <phone where="work" type="fax">9147936054</phone>
     <agency>44040<description>MILLER AA</description></agency>
     <account type="contract">10007</account>
     <contact_ref link="contact1"></contact_ref>

This is what I am trying to do:
1. Go to advertiser, get what is in contact_ref@link and store it in a
variable called CREF.
2. Go to contact, and match contact/@id with CREF.
3. If it matches, then do something...

I have the following code:

     <xsl:variable name="CREF"

     <xsl:if test='advertisement/contact/@id=$CREF'> -- This doesn't work

Do you know why my code doesn't work?


Sharmila Pandith
Zedak Corp
400 Columbus Ave
Valhalla, NY 10595

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

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

Current Thread


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.
First Name
Last Name
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.