xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Elliotte Harold <elharo AT metalab.unc.edu>
- To: Micah Schehl <micah.schehl AT stratumlogic.com>
- Cc: xom-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] XOMSource
- Date: Sat, 29 Mar 2008 06:25:51 -0700
Micah Schehl wrote:
How can I use xom as an input source for javax.xml.transform.Source? I see
nu.xom.xslt.XOMSource, but it is not public.
XOM does not provide this functionality. The assumption is you'll use the XSLT support built into XOM itself rather than the poorly designed InputSource interface from TrAX.
This does mean that you'll have a hard time using XOM as input to other products like Saxon that currently offer more features and languages than XOM provides. However, the architectural flaw in InputSource is that even if I did expose an InputSource implementation it still wouldn't work with third party products unless they had specifically designed themselves to work with XOM. That is, InputSource alone is not sufficient to enable a product to successfully consume XOM documents. The third party product has to specifically be aware of and account for XOM's (or SAX's, or DOM's, or JDOM's) underlying model and do a lot of nasty casting to get the object into the form they expect.
--
Elliotte Rusty Harold elharo AT metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/
-
Re: [XOM-interest] XOMSource,
Micah Schehl, 03/25/2008
- Re: [XOM-interest] XOMSource, Michael Kay, 03/25/2008
- Re: [XOM-interest] XOMSource, Elliotte Harold, 03/29/2008
Archive powered by MHonArc 2.6.24.