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>
                        &lt;strong&gt;$[name]&lt;/strong&gt;
                        $[description]
                        &lt;table border='0' width='200'&gt;
                        &lt;tr&gt;
                                &lt;td&gt;Time:&lt;/td&gt;
                                &lt;td&gt;$[time]&lt;/td&gt;
                        &lt;/tr&gt;
                        &lt;/table&gt;
 
                        </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

Reply via email to