[XOM-interest] XOMSource
Elliotte Harold
elharo at metalab.unc.edu
Sat Mar 29 09:25:51 EDT 2008
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/
More information about the XOM-interest
mailing list