Hi, maybe you guys have experienced this. I was validating(www.w3.org) my site recently and bumped into this problem. zope could not transform the url correctly(returned the standard error site) once i changed the Ampersands into & within the following link. <a href="/forum/topic_html?forumid=1&id=&dtml-id;"> other links worked fine with the change. does anyone know why this might happen to this url? cheers, sungmook --------------------------------- Gesendet von http://mail.yahoo.de. Bis zu 100 MB Speicher bei http://premiummail.yahoo.de.
Hi, i tried that, too. but it doesnt work. the validator says ' cannot generate system identifier for general entity "id" ' and if i change both ampearands to & zope cannot transform this link. Jamie Heilman <jamie@audible.transient.net> wrote:> is what you want and will yeild the correct html. _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) --------------------------------- Gesendet von http://mail.yahoo.de. Bis zu 100 MB Speicher bei http://premiummail.yahoo.de.
Sungmook Kim wrote:
Hi, i tried that, too. but it doesnt work. the validator says ' cannot generate system identifier for general entity "id" ' and if i change both ampearands to & zope cannot transform this link.
Well if you're feeding the raw DTML code into the validator thats why... its not HTML its DTML, and there's a very big difference. If you're feeding the rendered output to the validator it should validate. If you want to be able to validate your code before its rendered you should use ZPT, not only is it cleaner than DTML its also valid XML. -- Jamie Heilman http://audible.transient.net/~jamie/ "Paranoia is a disease unto itself, and may I add, the person standing next to you may not be who they appear to be, so take precaution." -Sathington Willoughby
on or about, Friday, January 17, 2003, we have reason to believe that Jamie Heilman wrote something along the lines of :
If you want to be able to validate your code before its rendered you should use ZPT, not only is it cleaner than DTML its also valid XML.
Not neccesarily. There seems to be a common misconception that ZPTs are always valid XML. This is in no way true, but it is indeed *possible* to write well formed and even valid XML in ZPT but it is no way required. The original draft for ZPT was based on using XHTML (which is proper XML), but it seemed that the the WYSIWYG tools many use to produce HTML was not ready for XHTML - so a lot of work was put into the parser to make it forgiving enough to accept 'old style' HTML, which is neither well formed nor valid, but works nonetheless... Pick which style you like by setting the content-type of the page template to "text/html" or "text/xml" - the latter will force Zope to use the XML-parser instead of the 'forgiving' one... :) -- Geir Bækholt geir@funcom.com Web Application/HCI-designer Product Operations Funcom Oslo
Geir B?kholt wrote:
There seems to be a common misconception that ZPTs are always valid XML.
Well I didn't want to split hairs and mention that you can braindamage anything if you really want to. TINSTAAFL If you want your zpt to be valid xml your going to have to put in just as much effort as you normally would to write valid xml. The idea is, with zpt its possible, where as with DTML, its not. -- Jamie Heilman http://audible.transient.net/~jamie/ "You came all this way, without saying squat, and now you're trying to tell me a '56 Chevy can beat a '47 Buick in a dead quarter mile? I liked you better when you weren't saying squat kid." -Buddy
participants (3)
-
Geir B�kholt -
Jamie Heilman -
Sungmook Kim