SV: [ZPT] ZPT and DOM-methods ??

Geir Bækholt geirh@funcom.com
Thu, 26 Apr 2001 22:00:28 +0200


Requested example :
I have to quickly implement an online game-manual, edited by people
with no technical experience.
Using just plain folders and ZPT (with metal macros) edited by
dreamweaver , would make this happen really quickly. An XML
implementation would be preferable in the long run, but is not
feasible right now.
folders and ZPT make for a nice, structured game manual, but does
not give me a "print the whole thing"-feature.. (nor very clever
zcataloging) but if i could use getElementById('theMainContentSlot')
, i could pull the important stuff out of the templates and build a
large printable manual and more nicely Zcatalogable content..
Speed is not an issue , because i can pre-render the print-thing..

well - the solution might just be sitting there without me noticing.
There was mention of using parsed XML with the page templates on the
download page... (have been running my research-zope-instance on an
NT box the last weeks, and din't install parsedXML yet)
- so use ZPT and parsedXML together, any plain XHTML1.0  document
has the DOM methods accessible ?? Great!

thanks.  will check it out tomorrow

Geir




Guido wrote :
>Funny you should ask.  I originally started with a DOM-based
>implementation, but found that it was much too slow, mostly due to
the
>cost of building DOM trees.  Unfortunately, I buried the DOM code
too
>deeply to dig it up easily.
>
>But you can do this yourself: when your input is XML, your output
is
>too, so nothing stops you from parsing the output into a DOM tree.
Or
>is that not what you need?  (I have to say that I don't understand
>exactly what you want to do -- a concrete example would be
helpful.)
>
>--Guido van Rossum (home page: http://www.python.org/~guido/)
>
Evan wrote :
>This sounds like a job for ParsedXML, which does exactly what you
want.