Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

XSLT Transformation Error in Loop

Former Member
0 Likes
1,275

I am trying to do a XSLT Transformation and introduced a node as below for a nested table:

SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L1S33 { color: #009300; }

<tt:cond>
<VENDOR>
<tt:loop ref=".REQUEST.BANNERAUTH.PIR_DEFAULTS.VENDOR">
<ZACW_LIFNR>
<tt:cond>
<LIFNR tt:value-ref="LIFNR"/>
</tt:cond>
</ZACW_LIFNR>
</tt:loop>
</VENDOR>
</tt:cond>

There is no syntax error on this but on processing it shows the below error:

System expected the end of the element 'VENDOR ' REQUEST(1)BANNERAUTH(21)ZACW_BANNER_AUTH_S(1)PIR_D

Please suggest on how to get rid of error.

5 REPLIES 5
Read only

Sandra_Rossi
Active Contributor
0 Likes
1,076

It's not XSLT, it's a Simple Transformation - two different languages (and the name of transaction XSLT_TOOL is misleading, use transaction STRANS instead)

Read only

Former Member
0 Likes
1,076

Hi Sandra,

Thank you for the response. Yes you are right its misleadingbecause of the transaction code name. however I was looking for a way to get rid of the XML processing error. Could you please suggest on what changes do i need to make in the simple transformation for the nested table.

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,076

Please show the XML around REQUEST(1)BANNERAUTH(21)ZACW_BANNER_AUTH_S(1)PIR_D

Read only

Former Member
0 Likes
1,076
-<PIR_DEFAULTS>
-<ZACW_PIR_DEFAULT_S>
<IS_MCKESSON/>
<MCKESSON_VENDOR/>
<DSD_VENDOR>
<LIFNR>0001028130</LIFNR>
<LIFNR>0001028152</LIFNR>
</DSD_VENDOR>

Read only

Sandra_Rossi
Active Contributor
1,076
Where is <ZACW_LIFNR> ?