[Zope-xml] XML Transform 'behave_like' quibble

Craeg Strong cstrong at arielpartners.com
Mon Sep 2 14:46:52 EDT 2002


behave_like specifies how the *result* of the transformation behaves.

For example, you could have a source XML document contained in an 
XMLFile object,
your XSLT transformer could be a DTML Method,
and the *result* could be a ZPT.

There really is no way to know in advance what the result of the 
transformation would be,
without parsing the XSLT code.  That is why the behave_like attribute 
exists.

Hope this helps,

--Craeg

Jean Jordaan wrote:

> I'm a bit uncomfortable with how 'behave_like' behaves. Say I have
> this::
>
>  /xml/source.xml
>  /xml/transform
>  /xml/registry/stylesheet.zpt
>
> Now I could put DTML in 'stylesheet.zpt', and set 'transform' to
> 'behave_like' DTMLMethod. But that's UGLY! Why can't 'transform'
> notice that its transformer is a ZPT (or DTMLMethod) and behave
> accordingly?
>





More information about the Zope-xml mailing list