On December 21, 2019 11:57:19 AM GMT+01:00, Andrew Nenakhov <[email protected]> wrote: >сб, 21 дек. 2019 г. в 15:45, Philipp Hörist <[email protected]>: > >> >> I think you misunderstood the RFC, it's not a violation to send ">" >> unescaped. >> >> > The right angle bracket (>) *may *be represented using the string " >> >> ", and *MUST*, for compatibility >> <https://www.w3.org/TR/REC-xml/#dt-compat>, be escaped using either " >> >> " or a character reference *when *it appears in the string " ]]> " in >> content, when that string is not marking the end of a CDATA section >> <https://www.w3.org/TR/REC-xml/#dt-cdsection>. >> >> >I have a different reading of this. > >MUST be escaped using >EITHER > >OR character reference (WHEN it appears in the string ... ...) > >so OR branch is clearly used only for case listed in WHEN
Just making sure everyone has the same interpretation: Case 1) The text has the sequence ]]>. In this case, in XML the > MUST be escaped (with >, or equivalent character reference). Case 2) All occurances of > not preceded by ]]. Here > MAY appear as-is, or escaped. Both are valid. -- Cheers, ralphm _______________________________________________ Standards mailing list Info: https://mail.jabber.org/mailman/listinfo/standards Unsubscribe: [email protected] _______________________________________________
