[DM] 'mltext' extension for TAL
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Invalid
|
Wishlist
|
Andreas Jung | ||
zope.tal |
Invalid
|
Undecided
|
Andreas Jung |
Bug Description
2. Introduction
TAL supports text and structure as content transformation specifiers: structure inserts the value unchanged while text performs HTML/XML quoting, i.e. it quotes < and &. This means that structure corresponds to the SGML pcdata (parsable character data) and text to cdata (character data). However, SGML defines also the additional rcdata (replacable character data), which TAL currently does not support.
rcdata can contain entity references, especially character references. This is important when the text may contain special characters such as ü or XML character references for unicode characters not representable in the used encoding. The content transformation corresponding to rcdata would quote < but not &.
3. Feature
Define mltext (for markup language text) as a compagnion of text and structure. mltext quotes < but not &.
4. Example Use Cases
mltext can be used when a content value should not be interpreted as full HTML/XML (such that structure cannot be used) but may contain entity references and especially character references (such that text cannot be used).
Changed in zope2: | |
importance: | Undecided → Wishlist |
Changed in zope.tal: | |
assignee: | nobody → Andreas Jung (ajung) |
Patch committed:
http:// svn.zope. org/zope. tal/branches/ haufe-legacy- integration/ ?rev=99839& view=rev