cancel
Showing results for 
Search instead for 
Did you mean: 

XSLT mapping <xsl:param name=" " select="/.." />

Former Member
0 Kudos

Hi,

I  have Xslt mapping and it generates IDoc from source file; and in XSLT i have below piece of code:

- <XBLNR>

<xsl:value-of select="concat(concat(concat(concat(concat(substring($TimeSent, 1, 4), substring($TimeSent, 6, 2)), substring($TimeSent, 9, 2)), substring($TimeSent, 12, 2)), substring($TimeSent, 15, 2)), substring($TimeSent, 18, 2))" />

</XBLNR>

The Timesent is a parameter and is defined as <xsl:param name="TimeSent" select="/.." />

but the IDoc is not getting this vlue in XBLNR.  and what does select="/.."   means?

can you please help me in this.

Thanks.

Prema

Accepted Solutions (1)

Accepted Solutions (1)

udo_martens
Active Contributor
0 Kudos

Hi Prema,

test your mappig (best external i a xml spy) and add a line

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

to see which value the parameter has. May be the xpath to source field gives nothing, or the string is too short for your substring operations. It makes sense, to asure the length of the string with an choose around: xsl:when test="string-length($TimeSent &gt; 19) - react in the otherwise branch to the situation the string is too short.

Regards,

Udo

Former Member
0 Kudos

Thanks Udo. i will try this

Answers (0)