cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with XSLT

Former Member
0 Kudos

Hi All,

I have an issue with XSLT logic , that logic works fine in stylus, but does not work when XI .

the logic is , I have a condition to populate "Item" based on condition

if "ItemChange" exists and "ItemChangeCoded" or "ItemChangeCodedOther" is not equal to "Cancel"

I tried variable method :

I declared "ItemChangeCoded" and "ItemChangeCodedOther" as local variables .

the style sheet looks as below:

========================================================================

Header

For each "OriginalItem"

(Variable declared here)

Choose when "ItemChange exists and $ItemChangeCode is not equal to 'Cancel'"

Create "Item"

================================================================

This works like dream in stylus but not in XI ...all other functions and logic works fine ...but this is the first logic which is not working ....checked the processor everything seems to be fine ..any thoughts from experts.

Regards

Ravi

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ravi, I recommend using XSLT version 1.0. Do you use any XSLT 2.0 functions like exists(..)? They do not work, see e.g. Can you please post the statements which do not work for you? You might need to rewrite those so that SAP xslt processor can interpret properly.

Regards, Martin