[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] xsl:variable and creating conditional select


Subject: [xsl] xsl:variable and creating conditional select
From: "Hesselberth, Jan" <Jan.Hesselberth@xxxxxxxxxxxxxxxxxx>
Date: Tue, 18 Mar 2003 10:25:32 -0000

Hi everyone,
I have the following logical requirement

<xsl:if test= "substring-after(.,' ')=''">
        	<xsl:variable name="nextparent"
select="parent::GROUP/@CategoryOrGroupParent"/>
</xsl:if>
<xsl:if test= "substring-after(.,' ')!=''">
	 <xsl:variable name="nextparent" select="concat(substring-after(.,'
'),' ',$ROOT)"/>
</xsl:if>

I know this won't work as the variables go out of scope.
However, I can't figure out how to set the expression in the select of the
xsl:variable to give me the required results.
Any help would be greatly appreciated.
Cheers
	Jan




-------------------------------------------------------------------------- 
CONFIDENTIALITY 
The information contained in this e-mail and any files transmitted with it 
is private and confidential. It is intended for the named addressee only. 
If you are not the intended addressee you are prohibited from 
storing, copying or using the information in any way. 
If you received this e-mail due to a transmission error please notify the 
sender immediately. No liability is accepted by Northern Rock 
for any losses caused by viruses contracted during transit 
over the Internet or present in any receiving system. 
This e-mail is not intended to create legally binding commitments on 
behalf of Northern Rock plc, nor do its contents reflect the corporate 
views or policies of Northern Rock plc. 
-------------------------------------------------------------------------- 


This message has been checked for all email viruses by the Energis NetscanCentral solution.

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



Current Thread