Comment 0 for bug 143563

Revision history for this message
Dieter Maurer (d.maurer) wrote :

Uploaded: mltext.pat

Markup language text ("mltext" for short) corresponds to SGML's RCDATA
(Replaceable Character data). Such text can contain entity references
(especially character references) but no other markup.

TAL currently supports this text type badly. Because, it may contain
entity reference, we must use 'structure'. But 'structure' does not
quote '<' which should be quoted in mltext. To get it right,
we must use 'structure' and explicitely replace '<' by '&lt;'.

The attached patch defines the new quote type "mltext".
It can be used whereever the other quote types ('text' and 'structure')
can be used. 'mltext' leaves entity references unquoted but quotes
'<' (as required by mltext).