[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
xsl:variable
Subject: xsl:variable From: "Sharmila Pandith" <sharmila@xxxxxxxxx> Date: Mon, 17 May 1999 17:43:44 -0400 |
Hi, I am using the latest LotusXSL processor which is in accordance with the April XSL draft. I have the following XML: <DATA> <advertisement action="inquiry" state="view"> <contact id="contact1"> <name></name> <company>WILLIAM S. ROSS R.E.</company> <phone where="work" type="phone"></phone> </contact> <contact id="fwd1"> <name>Zedak</name> <company></company> <phone where="work" type="phone">9147930663</phone> <phone where="work" type="fax">9147936054</phone> <address><postal></postal></address> </contact> <advertiser> <agency>44040<description>MILLER AA</description></agency> <account type="contract">10007</account> <contact_ref link="contact1"></contact_ref> </advertiser> ...... 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" expr="advertisement/advertiser/contact_ref/@link"/> <xsl:if test='advertisement/contact/@id=$CREF'> -- This doesn't work Match </xsl:if> Do you know why my code doesn't work? Sharmila Sharmila Pandith Zedak Corp 400 Columbus Ave Valhalla, NY 10595 sharmila@xxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
xsl:variable, Bovone Stefano | Thread | URI names, Oren Ben-Kiki |
Announcement: OmniMark is Free, Marcus Carr | Date | Re: Multiple XML files, Ray Waldin |
Month |
Keywords