[Zope-xml] XML Transform 'behave_like' quibble
Craeg Strong
cstrong at arielpartners.com
Mon Sep 2 15:20:27 EDT 2002
I see. You are saying that *if* the transformer is a DTML Method, make
the XMLTransform
behave_like DTML Method by default
*if* the transformer is a ZPT, make the XMLTransform behave_like a ZPT
by default.
I think that is perfectly reasonable. I will put it on the TODO list
for the next version...
--Craeg
Jean Jordaan wrote:
> Craeg Strong wrote:
>
>> behave_like specifies how the *result* of the transformation behaves.
>
>
> Yes, I see that, that's about what I meant by:
>
> >> Now I could put DTML in 'stylesheet.zpt', and set 'transform' to
> >> 'behave_like' DTMLMethod.
>
> For some metatypes, such as File or ExternalFile, it's unclear what
> they should behave like, so you should manually set 'behave_like'. But
> for ZPT and DTML, wouldn't it be helpful to make the Transform behave
> like the type of the transformer by default? Sadists could still
> override the default to make them 'behave_like' something else ;>
>
More information about the Zope-xml
mailing list