<transforms> <!-- The directory where this configuration file is ("./") is stored in the property "base". --> <property name="base" relative="." /> <import package="ca.quine.jcommons.transform.transforms" /> <fileType name="edi" transformGraph="ediTransforms"> <glob>*.edi</glob> </fileType> <transformGraph name="ediTransforms"> <!-- Open the file, and parse out the segments (one per line) as String arrays. --> <transform from="Filename" to="Segments"> <class name="ParserTransform" /> <arg type="ParserHelper"> <arg type="java.io.File"> <arg type="String">${base}/delimiter-lookup.properties</arg> </arg> </arg> <arg type="String">'</arg> </transform> <!-- Convert the segments (as String arrays) into XML elements. --> <transform from="Segments" to="XML Segment Stream"> <class name="XMLSegmentTransform" /> <arg type="String">${base}/xml-segment-mapping.xml</arg> </transform> <!-- Structure the XML elements into a properly formed XML document. --> <transform from="XML Segment Stream" to="JDOM Documents"> <class name="StructuredXMLTransform" /> <arg type="java.io.File"> <arg type="String">${base}/structure-map.xml</arg> </arg> </transform> </transformGraph> </transforms>