from the above xml i have to write the condition in XSLT to add the condition at run time, means based on the value of ManageAccount and MasterUser from above i have to decide which code to be executed based on the value of CompareType in the permission group.
If ( ManageAccount (CompareType) MasterUser )
// code to be executed
Subject:determine condition at run time.......very urgent Author:Alberto Massari Date:25 Nov 2009 06:12 AM Originally Posted: 25 Nov 2009 05:42 AM
XSLT cannot build an XPath on the fly, but if you know what are the possible operations, this could be the code you need
<xsl:if test="(@CompareType='or' and Permission[@Name='ManageAccount'] or Permission[@Name='MasterUser']) or
(@CompareType='and' and Permission[@Name='ManageAccount'] and Permission[@Name='MasterUser'])">