Hello, I am using a page template to geneate a valid XML document, this is the template: <?xml version="1.0" encoding="UTF-8"?> <person xmlns:tal="http://xml.zope.org/namespaces/tal"> <name tal:content="string:&hello"> Mi mobile </name> </person> The caracter "&" gives me the following error: Compilation failed xml.parsers.expat.ExpatError: not well-formed (invalid token): line 3, column 38 If I remove the "&" everything goes ok. What can I do?? Thank you
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 - --On 15. Dezember 2006 13:05:39 +0100 Daniel de la Cuesta <daniel.cuesta@iavante.es> wrote:
Hello,
I am using a page template to geneate a valid XML document, this is the template:
<?xml version="1.0" encoding="UTF-8"?> <person xmlns:tal="http://xml.zope.org/namespaces/tal"> <name tal:content="string:&hello"> Mi mobile </name> </person>
The caracter "&" gives me the following error:
Either use & or put your stuff inside a CDATA section. - -aj -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (Darwin) iD8DBQFFgpCRCJIWIbr9KYwRAjqDAKCxZh/LiHeENEFayRUdNPKYHfkUNACfbIYR FXf1PvLFEbpF1Wm+bCVTeqQ= =THxZ -----END PGP SIGNATURE-----
participants (2)
-
Andreas Jung -
Daniel de la Cuesta