Hi Jay, You can add the below option:
declare option xdmp:output "cdata-section-elements = text"; FYI, http://www.w3.org/TR/xslt-xquery-serialization/#XML_CDATA-SECTION-ELEMENTS John On Tue, Feb 28, 2012 at 11:01 PM, <[email protected]> wrote: > > I am writing an xqy to generate a KML file using ExtendedData for > formatting the pop-up balloon. I'm having trouble getting the CDATA > section to output correctly. For example: > > .... > let $totalKML := <BalloonStyle> > <text><![CDATA[ > <strong>$[name]</strong> > $[description] > <table border='0' width='200'> > <tr> > <td>Time:</td> > <td>$[time]</td> > </tr> > </table> > ]]> > </text> > </BalloonStyle> > .... > > > ends up generating > .... > <BalloonStyle> > <text> > <strong>$[name]</strong> > $[description] > <table border='0' width='200'> > <tr> > <td>Time:</td> > <td>$[time]</td> > </tr> > </table> > > </text> > </BalloonStyle> > ....... > > I have looked into this, and haven't been able to find an appropriate way > to output exactly what is inside the <text> node. I'm sure I'm not the > first person to run into this problem. Any suggestions? > > Thanks, Jay > > Jay Gregory > GIS Analyst > Codefry / FAA / Command and Control Communications > 202-835-4148 > > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > >
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
