Details
Description
I have a custom macro which renders the following markup into the page:
#requireResource("custom.macro.suite:multimediaplayer-resources") #set ($baseUrl = $settingsManager.getGlobalSettings().getBaseUrl()) #set ($playerUrl = $baseUrl+$webResourceManager.getStaticPluginResource("custom.macro.suite:multimediaplayer-resources","player.swf")) #set ($skinUrl = $baseUrl+$webResourceManager.getStaticPluginResource("custom.macro.suite:multimediaplayer-resources","blueratio.zip")) #set ($fileUrl = $baseUrl+$downloadPathWithoutVersion) #set ($rnd = "id_"+$hashCode) <div id="$rnd">$action.getText("custom.macro.suite.multimediaplayer.loading.msg")</div> <script type="text/javascript"> /* <![CDATA[ */ jwplayer("$rnd").setup({ flashplayer: "$playerUrl", file: "$fileUrl", height: $height, width: $width, skin: "$skinUrl", autostart: "$autostart" }); /* ]]> */ </script>
if I put the
{toc}-macro in the same page it doesn't render but is displaying the following error:Error rendering macro 'toc' : [com.ctc.wstx.exc.WstxLazyException] com.ctc.wstx.exc.WstxParsingException: String ']]>' not allowed in textual content, except as the end marker of CDATA section at [row,col {unknown-source}]: [171,5]
As far as I know, the cdata-section in my markup is perfectly valid and shouldn't have any effect on the {toc}
-macro.