xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: "Michael Kay" <mike AT saxonica.com>
- To: "'Ittay Dror'" <ittayd AT qlusters.com>, <xom-interest AT lists.ibiblio.org>
- Subject: Re: [XOM-interest] question about Serializer
- Date: Tue, 18 Apr 2006 10:53:54 +0100
You could achieve this by using the Saxon serializer (which has an XHTML
output method) rather than the XOM serializer. Use a JAXP identity
transform, something along the lines:
TransformerFactory f = new net.sf.saxon.TransformerFactoryImpl();
Transformer t = f.newTransformer();
t.setOutputProperty(OutputKeys.METHOD, "xhtml");
t.transform(new net.sf.saxon.xom.DocumentWrapper(doc), new
StreamResult(System.out));
Michael Kay
http://www.saxonica.com/
> -----Original Message-----
> From: xom-interest-bounces AT lists.ibiblio.org [mailto:xom-interest-
> bounces AT lists.ibiblio.org] On Behalf Of Ittay Dror
> Sent: 18 April 2006 10:25
> To: xom-interest AT lists.ibiblio.org
> Subject: [XOM-interest] question about Serializer
>
> i want to write an xhtml document with Serializer. This class writes nodes
> with no children in the <.../> form, rather than <...></...> form.
>
> this causes the document to be rendered differently. specifically, it
> writes a span tag as <span.../>, where i need it to be <span...></span>
> (don't ask me why, it's just like this)
>
> can i control Serializer, so it outputs nodes in the "verbose" form? maybe
> per node name?
>
> thanks
> ittay
>
> --
> ===================================
> Ittay Dror
> openQRM Team Leader,
> R&D, Qlusters Inc.
> ittayd AT qlusters.com
> +972-3-6081994 Fax: +972-3-6081841
>
> http://www.openQRM.org
> - Keeps your Data-Center Up and Running
> _______________________________________________
> XOM-interest mailing list
> XOM-interest AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/xom-interest
-
[XOM-interest] question about Serializer,
Ittay Dror, 04/18/2006
- Re: [XOM-interest] question about Serializer, Michael Kay, 04/18/2006
-
Re: [XOM-interest] question about Serializer,
Elliotte Harold, 04/18/2006
- Re: [XOM-interest] question about Serializer, Michael Kay, 04/18/2006
Archive powered by MHonArc 2.6.24.