JSLT for Nested Loops #196
Unanswered
hemakumarg89
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Your function is basically:
How is that going to work? I mean, do you want to return an array or an object? You can't do both. Maybe at the top level of your function you want to use an if to check |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Team,
Pardon if it is a basic question as I am new to JSLT.
I am trying to write a JSLTransform which lowercases all the json-attributes (not the values) including the nested structures. I could not managed to do that myself and getting below error. Could not find much documentation as well. Please could you guide me ? Attached the jslt file
SampleJSLT.txt
Exception in thread "main" com.schibsted.spt.data.jslt.JsltException: Parse error: Encountered " <IDENT> "toLower "" at line 22, column 1. Was expecting one of: <EOF> "or" ... "and" ... "==" ... "!=" ... ">=" ... ">" ... "<" ... "<=" ... "+" ... "-" ... "*" ... "/" ... "|" ... at /data/apps/hub/utils/JSLTFiles/iviResponse.jslt:21:5 at com.schibsted.spt.data.jslt.parser.ParserImpl.compileExpression(ParserImpl.java:61) at com.schibsted.spt.data.jslt.Parser.compile(Parser.java:226) at com.schibsted.spt.data.jslt.Parser.compile(Parser.java:62) at com.schibsted.spt.data.jslt.Parser.compile(Parser.java:51) at com.lnrs.jslt.JSLTransformWorkout.main(JSLTransformWorkout.java:23)
Beta Was this translation helpful? Give feedback.
All reactions