Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text concatination using a parameter 1

Status
Not open for further replies.

EwS

Programmer
Dec 30, 2002
398
0
0
US
I would like to replace the 'OrderCreate' with a parameter called myParam (sometimes the parameter will be "OrderCreate", sometimes "OrderChange").

Here's the code where the value is hardcoded - it works:
Code:
<xsl:if test="(position() = last()) and contains(local-name(..),'OrderCreateProductLineItem')">

Here's the code where I'm trying not to hardcode the value -it doesn't work:
Code:
<xsl:if test="(position() = last()) and contains(local-name(..),'$MyParamProductLineItem')">

Is this possible to do? Thank you!
 
Have you tried this?
Code:
<xsl:if test="(position() = last()) and contains(local-name(..),concat($MyParam,'ProductLineItem'))">

Tom Morrison
 
That worked. Thank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top