You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2016/08/03 09:38:20 UTC
[jira] [Updated] (SLING-5945) Using angle brackets twice in
expression language leads to token recognition error
[ https://issues.apache.org/jira/browse/SLING-5945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Konrad Windszus updated SLING-5945:
-----------------------------------
Summary: Using angle brackets twice in expression language leads to token recognition error (was: Using brackets twice in expression language leads to token recognition error)
> Using angle brackets twice in expression language leads to token recognition error
> ----------------------------------------------------------------------------------
>
> Key: SLING-5945
> URL: https://issues.apache.org/jira/browse/SLING-5945
> Project: Sling
> Issue Type: Bug
> Components: Scripting
> Affects Versions: Scripting Sightly Engine 1.0.18
> Reporter: Konrad Windszus
>
> The following Sightly expression leads to an exception when used inside a block element's content
> {code}
> ${'<{0}> </{0}>' @ format=['myelement'], context='unsafe'}
> {code}.
> The error is
> {code}
> token recognition error at: ''<{0}>' for expression ${'<{0}>
> at org.apache.sling.scripting.sightly.impl.engine.UnitLoader.getSourceCodeForScript(UnitLoader.java:135)
> {code}
> On the other hand
> {code}
> ${'<{0} /> ' @ format=['myelement'], context='unsafe'}
> {code}
> works without any issues.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)