Building and Running the Project

   

The EDIFACT parser project is available on the accompanying CD-ROM. Copy the project directory from the CD-ROM to your hard disk and then go to the command line and change to the root of the project. You can run the EDIFACT formatter with the edi2xml command (see Figure 6.3). The parameters are the EDI file, XSL style sheet, and output file.

Warning

This project uses Xalan. You need Xalan and a SAX 1.0 parser to run it. The project on the accompanying CD-ROM uses Xalan and Xerces. Both are available on the CD-ROM, or you can download the latest version from http://xml.apache.org.

If you switch to another XSL processor, you must rewrite Edifact2XML and the extensions to accommodate your processor.


Warning

The compiler might issue deprecation warnings if you recompile the project: Xalan works with SAX 1.0, altought SAX 2.0 is the latest version.


Figure 6.3. Test the converted by converting back and forth between XML and EDIFACT.

graphics/06fig03.gif

   


Applied XML Solutions
Applied XML Solutions
ISBN: 0672320541
EAN: 2147483647
Year: 1999
Pages: 142

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net