This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: non-binary, non-XML, source files
- From: "Mark Wonsil" <wonsil at 4m-ent dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 22 Aug 2002 09:50:39 -0400
- Subject: RE: [xsl] non-binary, non-XML, source files
- Reply-to: xsl-list at lists dot mulberrytech dot com
> creates XML first, or is there a way for XSLT to work directly on
> non-binary, non-XML, source files?
If you know Java, you could generate SAX events from your data to make it
appear as an XML stream. I believe in Michael Kay's Book there is an
example of this. I think he created a SAX XMLReader class that reads GedCom
files (genealogy files). You have to use an XSLT processor that can accept
a SAX input stream. The other option is to convert the file to XML ahead of
time using Perl or Java.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list