I'm in the process of preparing a proto-XEP, and need to give examples containing CDATA like so:
<example caption="Controlling party requests a new output component"><![CDATA[ <iq from='[email protected]/balcony' to='[email protected]' type='set' id='j9d3j'> <output xmlns='urn:xmpp:rayo:output:1' voice='allison'> <document content-type="application/ssml+xml"> <![CDATA[ <?xml version="1.0"?> <!DOCTYPE speak PUBLIC "-//W3C//DTD SYNTHESIS 1.0//EN" "http://www.w3.org/TR/speech-synthesis/synthesis.dtd "> <speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2001/10/synthesis http://www.w3.org/TR/speech-synthesis/synthesis.xsd " xml:lang="en-US"> <p> <s>You have 4 new messages.</s> <s>The first is from Stephanie Williams and arrived at <break/> 3:45pm.</s> <s> The subject is <prosody rate="-20%">ski trip</prosody> </s> </p> </speak> ]]> </document> </output> </iq> ]]></example> Unfortunately, XML doesn't allow nested CDATA. What's the standard procedure for handling this case? Regards, Ben Langfeld
