xsl-list
[Top] [All Lists]

RE: RE: Problem with conditional definition of a variable

2006-01-04 11:14:02
If you're in 2.0 you can also, of course do

<xsl:variable name="x" select="if (condition) then value-1 else value-2"/>

Michael Kay
http://www.saxonica.com/
 

-----Original Message-----
From: cknell(_at_)onebox(_dot_)com [mailto:cknell(_at_)onebox(_dot_)com] 
Sent: 04 January 2006 18:10
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: RE: [xsl] Problem with conditional definition of 
a variable

Thank you! It was <xsl:sequence> that I was looking for.
-- 
Charles Knell
cknell(_at_)onebox(_dot_)com - email



-----Original Message-----
From:     Xia Li <xli(_at_)galdosinc(_dot_)com>
Sent:     Wed, 4 Jan 2006 09:34:33 -0800
To:       <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Subject:  RE: [xsl] Problem with conditional definition of a variable

You can fill the blanks with the <xsl:value-of> to assign a 
value to the
variable or <xsl:sequence> to assign a result of a XPath expression to
the variable.


Lisa



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--