cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Painter-Wakefield <>
Subject Re: dynamic setting of encoding on serializer?
Date Fri, 12 Dec 2003 17:32:06 GMT

Thanks - that's a big help, although I may just take the path of least
resistance and hand-configure for now :)


The fact that serializers don't accept parameters and don't have access
to the objecmodel has come up before here and is indeed a pain.

Can you maybe add a node to the xml using a stylesheet transformer (they
do accept parameters), and then filter out this node in the serializer
and remove it from the xml before you serialize to the client.

Ofcourse for this to work you would need to override at least
startdocument, enddocument, startelement and endelement to buffer the
xml buildup before you modify it.

Admitted, it's a Big Bodge(tm), but it works. Alternatively, there is a
patch waiting for the 2.1x branch that is supposed to add parameters for
the SVG serializer. Maybe you can have a look how it's done and
generalize it to the 2.0.x branch for any serializer.

Hope this helps

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message