Adding Or logic to working Sharepoint If XSL:IF

I have the following logic I have used in my custom sharepoint code for a while and it works well, however I need to be able to compare with ORs

example if @Qualification_x0020_Review_x0020 = Yes(Approved)  OR @Qualification_x0020_Review_x0020 = Yes OR @Qualification_x0020_Review_x0020 = Good

<xsl:if test="normalize-space(@Qualification_x0020_Review_x0020) = 'YES (Approved)'">
     <img alt="" src="images/green.gif" />
</xsl:if>
Matt PinkstonEnterprise ArchitectAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Matt PinkstonEnterprise ArchitectAuthor Commented:
I tried this and get an error
<xsl:if test="normalize-space(@Contract_x0020_Type) = ('Fixed Price Level of Effort','Fixed Unit Price','Firmed Fixed Price','Hybrid')">
0
louisfrCommented:
I saw somewhere code suggesting to use a param to create a sequence of strings.
That would be, before the <template>:
<xsl:param name="values">
<value>Fixed Price Level of Effort</value>
<value>Fixed Unit Price</value>
<value>Firmed Fixed Price</value>
<value>Hybrid</value>
</xsl:param>

Open in new window

and using it like
<xsl:if test="normalize-space(@Contract_x0020_Type) = document('')/xsl:stylesheet/xsl:param/*">

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kukdaiCommented:
Is it a web part that you are trying to edit using SharePoint designer? can you provide more details what is it. Where you are trying to use this code. Is it a SharePoint Solution created in VS Studio or Editing in SharePoint designer.
0
Matt PinkstonEnterprise ArchitectAuthor Commented:
Thanks for the assistance
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.