Re: [Zope-xml] Is there an easy way of using DocBook documents in Zope yet?

"Christopher N. Deckard" <[email protected]> Thu, 29 Aug 2002 14:26:27 -0500
Newsgroups gmane.comp.web.zope.parsed-xml
Organization Purdue University, ECN
Message-ID <[email protected]>
On Thu, 29 Aug 2002 15:17:36 -0400, Craeg K Strong spoke forth:

> I just did, and you are quite right!

Cool!

> So if your docbook format XML document was contained in
> a ParsedXML object called foo, you would create a DTMLDocument
> called, for example, bar with the contents:
> 
> <dtml-var expr="foo.index_html()">
> 
> And then list "bar" as the sourceID of the XMLTransform.
> 
> A bit clunky, but it works!   I am hoping the authors of
> ParsedXML add a __call__() method in their next release
> that does the same thing as index_html()
> which would obviate the extra DTMLDocument step.

Really, I am not quite sure why Martijn originally overrided
index_html for ParsedXML.  Once you know it works that way, it's
possible to get around it.  I tried to make a Product that
subclassed ParsedXML and could not every figure out how to get to an
index_html to parse and render the XML document as I wanted it to. 
If renamed index_html in the ParsedXML product, I could get it to
work.

-Chris