[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue 5.1) SSH End of message directive



"Gilbert Gagnon" writes:
>It may be just a bit overkill but it might be a good idea to suggest a 
>common escaping for cases within the CDATA block (e.g. user the </%gt; 
>entities even though they are within an escaped block)

Non-standard escaping mechanisms will cost more than they win.

So the only string that can't appear inside a CDATA section is
the end marker for a CDATA section (CDEnd ::= ']]>').  While
not as ascetically appealing as "<?eom?>", we could make a
string that was illegal XML using ']]>'.  Hold your stomach:

   ]]>]]><?eom?><[[<[[

The double ']]>' insures that we're not in a CDATA section,
the '<?eom?>' is the marker, and the '<[[<[[' helps recover
some dignity by making the string symmetric, if making it
look a bit more like line noise.

The other option is to use a real framing scheme.

Thanks,
 Phil

--
to unsubscribe send a message to netconf-request@ops.ietf.org with
the word 'unsubscribe' in a single line as the message text body.
archive: <http://ops.ietf.org/lists/netconf/>