Re: javax.xml.transform and HTML

On Sep 3, 2008, at 09:41, Julian Reschke wrote:

> Henri Sivonen wrote:
>> Hi,
>> On Sep 2, 2008, at 14:38, Julian Reschke wrote:
>>> I just checked my last project where I needed to produce HTML from  
>>> Java -- turns out that it falls into the same category, as it uses  
>>> javax.xml.transform just for the purpose of serializing to HTML.  
>>> Note that this is *not* XSLT, just usage of a standard JDK method  
>>> to produce HTML.
>> How can one use javax.xml.transform as a mere serializer? Can that  
>> be done without the expense of using an identity transform?
>
> Yes.
>
> I did attach sample code, didn't I?


Oops. I didn't realize there was content after the signature.

Is this commonly used? It's a rather unobvious use of a transform  
package.

-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/

Received on Wednesday, 3 September 2008 07:49:06 UTC