[Home]  [List]  [News]  [Docs]  [FAQ]  [Downloads]  [Resources]  [About]
Search :
/Home /List

list4xt : Mailing list for the XT users community.

[list4xt] Re: Eric: response.setContentType("text,vnd.wap.xml")

Subject: [list4xt] Re: Eric: response.setContentType("text,vnd.wap.xml")
From: Eric van der Vlist (vdv@dyomedea.com)
Date: 06/12/2000 - 01:42


Guy,

guy wrote:
>
> Eric,
> As to your second suggestion, to modify XMLOutputHandler, can I write a class
> that will override the
> this.out = dest.getOutputStream("application/xml", null);
> with
> String mediaType = atts.getValue("media-type");
> and I assume
> this.out = dest.getOutputStream(media -type, null);
> so I don't have to modify XMLOutputHandler or use you whole XHTMLOutputHandler?

In theory, you should be able to do this... however, in practice you'll
see that many properties and method of the XMLOutputHandler are defined
as private and/or final and that you won't be able to derive much from
this class.

The easiest way is therefore to copy the XMLOutputHandler.java file,
replace the "package com.jclark.xsl.sax;" by a "import
com.jclark.xsl.sax.*;", do your modifications and use it through the
java extension as shown from the XHTMLOutputHandler.

Eric

-- 
See you at XML 2000
      http://gca.org/attend/2000_conferences/XML_2000/building.htm#vlist
------------------------------------------------------------------------
Eric van der Vlist       Dyomedea                    http://hostmydomainnow.com
http://collectionagencymerchantservices.com -           http://sauguschamber.com              http://internet-merchant-account.com
------------------------------------------------------------------------

-- Mailing list for the XT users community. (http://highriskmerchantaccount.co) (mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)



Archive générée par hypermail 2b28 le 25/04/2001 - 07:16 CEST

webmaster@4xt.org


A site designed by Dyomedea