This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[XSL] Custom DocumentHandler in XT


Hi all:

I've got a little reporting servlet that makes the result set from a 
database query look like a SAX parser. I feed this output to XT 
(XSLProcessor object) so I can get HTML out (creating a 
OutputMethodHandler for the XSLProcessor whose destination is set to the 
servlet response output). Now when I want to get WML instead, I find 
that there is no DocumentHandler in XT for WML. Hence, the media-type is 
never set to text/vnd.wap.wml, and hence my phone can't read the output. 
I found a posting in the archives where someone created his own copy of 
XMLOutputHandler so that it would set the correct media-type for WML. 
Problem is, I don't know how he did it. I've tried several things, but I 
can't get it to work. Has anyone else done this? Is there perhaps an 
easier way?

Moreover, I also want to use FOP stylesheets. I've used FOP (mostly with 
Cocoon), put I can't figure out how I might use it just like I'm using 
XT. I'd like to have another DocumentHandler, but I don't think that is 
how FOP was intended to be used. Anybody have any ideas?

Thanks in advance.

Lajos Moczar
Galatea IS Inc.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]