bouncingHippo
bouncingHippo

Reputation: 6040

Appending a string to XSL value after XSLT

XSL file:

<xsl:attribute name="id">                          
    <xsl:value-of select="$text/FieldName"/>
</xsl:attribute>

XML data:

<FieldName>
   meLikeStackOverflow
</FieldName>

after XSLT...

<id>meLikeStackOverflow</id>

How can i edit the XSL files such that after XSLT, it will look like this:

<id>meListStackOverflow_LBL</id> 

Upvotes: 0

Views: 15124

Answers (1)

Pawel
Pawel

Reputation: 31610

<xsl:value-of select="concat($text/FieldName, '_LBL')"/> 

Upvotes: 1

Related Questions