Re: [Zope] The new DTML syntax
Tim Wilson wrote:
On Thu, 5 Aug 1999, Martijn Faassen wrote:
I'd vote for 'z-if' as opposed to 'zif', though, as I'd read 'zzzzzzzzzzzzif!' for the latter, and not 'zed-if'. Also the '-' helps distinguishing DTML visually from HTML.
I wholeheartedly agree. The z-foo syntax is very clean and intuitive.
The XML convention is z:if. You can take that as an argument for or against the hyphen as you see fit.
Or perhaps in this case not even necessary. Our plans for XML are MUCH bigger than just a tacked on syntax, and XMLDocument is just the beginning of what you'll see in the coming months. We specifically avoided using an XML namespace syntax. As for whether it will change, I SERIOUSLY doubt it, as: * It's already been adopted by internal projects * It's been adopted by OTHER projects * Documentation is being updated to reflect this There's no huge gain to go to <z-foo> rather than <dtml-foo> other than a few saved characters. The larger gain was moving away from SSI syntax, because this has allowed us to teach the syntax to editors like Alpha and GoLive. This discussion should have happened a month ago before we committed the new syntax out of "experimental" stage, but it is no longer experimental. As for new renderers, well, *personally* I think there are too many syntaxes as it is: <!--#var foo--> <dtml-var foo--> %(foo)s or some such :-) Over the long term, I suspect that the SSI syntax will be deprecated, but not until we can provide a good program to convert everything to the new syntax. Chris -- | Christopher Petrilli Python Powered Digital Creations, Inc. | petrilli@digicool.com http://www.digicool.com
On Thu, 5 Aug 1999, Christopher Petrilli wrote:
Or perhaps in this case not even necessary. Our plans for XML are MUCH bigger than just a tacked on syntax, and XMLDocument is just the beginning of what you'll see in the coming months. We specifically avoided using an XML namespace syntax.
Would these include using XML to allow tags to interact at the rendering stage? This would allow handling of non-sgml syntax such as CSS. For example: + My Folder + XSL Style sheet (mystyle) + <Style> render method + MyDocument + <DTD = mystyle> + <Style> ... </Style> Please note, I'm still working on pyexpat for Windows so I don't have XML Doc under Windows yet (zmake messes up somewhere in Setup.in auto-conversion)
As for new renderers, well, *personally* I think there are too many syntaxes as it is:
My renderer suggestion was just to ensure that if we were to have syntax dime-a-dozen we didn't have to write to a specific syntax ;) Cheers, Anthony Pfrunder
Anthony Pfrunder wrote:
Please note, I'm still working on pyexpat for Windows so I don't have XML Doc under Windows yet (zmake messes up somewhere in Setup.in auto-conversion)
Why don't you just get the binary out of the windows distribution? Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.
participants (3)
-
Anthony Pfrunder -
Christopher Petrilli -
Jim Fulton