cancel
Showing results for 
Search instead for 
Did you mean: 

Providing a default value(constant) to the target field in XSLT

Former Member
0 Kudos

  Hi Folks,

How can i assign a default value"001" to the target fields in XSLT mapping..

Could you please provide the parameter i have to use while coding,

<xsl:variable name="RecType" select="001">

    <xsl:value-of select="$RecType"/>   

    </xsl:variable>

And also plz suggest the code i have written is suits the requirement.For this am getting the following error

"Expected select attribute or non empty content not both

xsl:variable"

Thank you

regards,

Balu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sekhar,

Please try this:

  
<xsl:variable name="RecType" select="'001'">

    </xsl:variable>


    <xsl:value-of select="$RecType"/>   

Regards,

Beena.

Answers (0)