[Zope] DTML / HTML and Emacs PSGML Mode
Alastair Burt
burt@dfki.de
Wed, 7 Jul 1999 12:29:01 +0200 (MEST)
Dear fellow Zopistas,
I wonder if any of you are using Emacs psgml mode to edit DTML and HTML
documents for Zope. Maybe you could give me a few tips. I have two
questions in particular. They both arise from the fact that psgml only
wants to generate syntactically valid sgml code:
1) Is there some trick to get psgml to work with files such as the following?
<!--#var standard_html_header-->
<h2><!--#var title_or_id--></h2>
<p>
This is the <!--#var id--> Document.
</p>
<!--#var standard_html_footer-->
Really, I want psgml to act as if the file is in an enclosing
<body>. From the documentation, it seems that using the variable
sgml-parent-document might help, but my attempts to generate such a
parent document were not successful.
2) I do not understand how the <dtml-var> syntax fits into the HTML /
XMLscheme of things. At first sight, it appears that, if I had a DTD
that specified the dtml-var entities etc, then using psgml would be
a really easy means to generate files in this syntax. Does such a
DTD exist? If not, is it theoretically possible to capture the
syntax with a DTD?
--- Alastair