Structure-text : <html>
When I use <dtml-var StructureTextDoc fmt=structured-text> I got <html> </html> in the result. Are there any reason that it should be there? I wounder how can structured text generate valid html or be used in wap applications. If structured text is hard coded to output unnecessary <html> then I consider it a serious bug. And there should be coding rules that ensure in future no such bugs exist in Zope. Rgs, Kent Sin --------------------------------- kentsin.weblogs.com kentsin.imeme.net
AFAIK this is the right behavior and not a bug. you ask for the StructureText document to be rendered and you inform the rendering machinery that the document is in structured text. the rendering process will output HTML. i think what you want is to simply say <dtml-var StructureTextDoc> without the "fmt" flag. that should get you the raw structured text. the rendering process then assumes the document is already in some kind of HTML format and does not try to generate HTML tags. jens On Thursday, September 20, 2001, at 07:14 , Sin Hang Kin wrote:
When I use <dtml-var StructureTextDoc fmt=structured-text>
I got <html> </html> in the result. Are there any reason that it should be there? I wounder how can structured text generate valid html or be used in wap applications.
If structured text is hard coded to output unnecessary <html> then I consider it a serious bug. And there should be coding rules that ensure in future no such bugs exist in Zope.
Rgs,
Kent Sin --------------------------------- kentsin.weblogs.com kentsin.imeme.net
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
On Thu, 20 Sep 2001, Jens Vagelpohl wrote:
AFAIK this is the right behavior and not a bug. you ask for the StructureText document to be rendered and you inform the rendering machinery that the document is in structured text. the rendering process will output HTML.
i think what you want is to simply say <dtml-var StructureTextDoc> without the "fmt" flag. that should get you the raw structured text. the rendering process then assumes the document is already in some kind of HTML format and does not try to generate HTML tags.
On Thursday, September 20, 2001, at 07:14 , Sin Hang Kin wrote:
When I use <dtml-var StructureTextDoc fmt=structured-text>
I got <html> </html> in the result. Are there any reason that it should be there? I wounder how can structured text generate valid html or be used in wap applications.
I think you misread what Sin Hang Kin was getting at. Consider: <dtml-var standard_html_header> <dtml-var StructuredTextDoc fmt=structured-text> <dtml-var standard_html_footer> Yes, you want StructuredTextDoc to be output using html formatting. But what you *don't* want is to have <html></html> (or header or body) tags; those are all handled by standard_html_header/footer. Unless nesting html documents inside html documents is allowed by the html standards? And supported "correctly" (for some useful definition of "correctly") by almost all browsers? --RDM
participants (3)
-
Jens Vagelpohl -
R. David Murray -
Sin Hang Kin