-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if-expression leads to "parse error" if it is last line in header #327
Comments
The method/function you can use is Try:
|
Another variant:
|
Thank you. I had found this function myself in betweeen. I was merely reporting this as it proves there is some mistake in JSLT library. |
If have to disagree; your original version was syntactically incorrect. As soon as you use "let"-statements, you have to introduce a function body (def SOMETHING() .....). |
A quote from the tutorial:
|
Yes, sorry, @catull, but this is a problem with the JSLT grammar. It has nothing to do with function bodies. The question is how to solve it without breaking backward compatibility. |
Touché. However, that stement is not correct.
Ignore the Now "Expr()" does not include array production. If the rule were this:
then your original code might work. At any rate, either the statement you quote is inaccurate, or the implementation is incomplete. |
You beat my to it. |
Actually, I am mistaken. The rule would have to be:
Again, I am an amateur JSTL coder. |
Hey, no worries. Everyone makes mistakes. |
I have the following input:
And the following JSLT:
If you reenable the commented out line the JSLT works. If you leave it as it is, you get:
The problem can also be avoided if
... else .ADDRESS2
is changed to... else ""
. Of course this changes the logic but might help tracking down the underneath error.The text was updated successfully, but these errors were encountered: