[ZPT] Re: [Zope] prevent quoting in tal:attributes

Dieter Maurer dieter at handshake.de
Mon Sep 29 13:04:03 EDT 2003


fergal at pop.esatclear.ie wrote at 2003-9-29 04:57 -0400:
 > From: Dieter Maurer dieter at handshake.de
 > >  > ...
 > >  > If you want to put Ä in an
 > >  > attribute, just do it, and send the page with the proper character
 > >  > encoding... is there something I'm missing?
 > > 
 > > We have an SGML application with a restricted SGML declaration
 > > (which essentially only allows ASCII characters). Therefore,
 > > there is a need for character entities.
 > 
 > In that case I think you need to convert your SGML character entitites into
 > encoded characters before passing them into TAL. This is not a bad idea in
 > general because your SGML entities may not all be valid XML entities,

Being no valid XML entities is not a problem at all.
It is an SGML application and may use SGML entities, more precisely,
the entities defined in the doc type.


Dieter



More information about the ZPT mailing list