[DM] 'mltext' extension for TAL

Bug #374720 reported by Andreas Jung
6
This bug affects 1 person
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 &uuml; 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).

Tags: dm-committed
Revision history for this message
Andreas Jung (ajung) wrote :
Revision history for this message
Andreas Jung (ajung) wrote :
Changed in zope2:
assignee: nobody → Andreas Jung (ajung)
status: New → Fix Committed
tags: added: dm-committed
Changed in zope2:
importance: Undecided → Wishlist
Revision history for this message
Christian Zagrodnick (zagy) wrote :

Could this be merged to trunk?

Tres Seaver (tseaver)
Changed in zope.tal:
assignee: nobody → Andreas Jung (ajung)
Revision history for this message
Tres Seaver (tseaver) wrote :

"Fix committed" means that the fix has been committed / merged to the trunk or appropriate release branches.

Changed in zope2:
status: Fix Committed → In Progress
Revision history for this message
Colin Watson (cjwatson) wrote :

The zope.tal project on Launchpad has been archived at the request of the Zope developers (see https://answers.launchpad.net/launchpad/+question/683589 and https://answers.launchpad.net/launchpad/+question/685285). If this bug is still relevant, please refile it at https://github.com/zopefoundation/zope.tal.

Changed in zope.tal:
status: New → Invalid
Revision history for this message
Colin Watson (cjwatson) wrote :

The zope2 project on Launchpad has been archived at the request of the Zope developers (see https://answers.launchpad.net/launchpad/+question/683589 and https://answers.launchpad.net/launchpad/+question/685285). If this bug is still relevant, please refile it at https://github.com/zopefoundation/zope2.

Changed in zope2:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.