Assigning a string to a variable depending on condition in xslt

JoanneOx

New Member
I want to assign a value to a variable if a particular attribute returns a particular value. In here I want to assign the value "young" to vaiable "person" if pr:all/[@pr:name=current()/@cx:name]/pr:properties/(@ls:middlename) is "cengie". Is that possible?\[code\]<xsl:variable name='person' select='pr:all/[@pr:name=current()/@cx:name]/pr:properties/(@ls:middlename)'></xsl:variable>\[/code\]
 
Back
Top