24 Oct
2011
24 Oct
'11
9:28 p.m.
Hi, I'm trying to conditionally output CDATA, but don't seem to be finding the right syntax for it. This works: declare option output:cdata-section-elements "div"; <div><![CDATA['<div/>']]></div> But this doesn't: declare option output:cdata-section-elements "div"; <div>{ if (1 = 2) then '' else <![CDATA['<div/>']]> }</div> Any hints on how to do this? Thanks! Kevin