outputter.output(xform.transform(inDoc.getRootElement().getChildren()), System.out);
dimList = xform.transform(inDoc.getRootElement().getChildren()); outputter.output(dimList, System.out);
    public static void main(String[] argv) throws Exception    {        if (argv.length < 2)        {            System.err.println("Usage:  java XSLTIngestionCrosswalk [-l] <crosswalk-name> <input-file>");            System.exit(1);        }        int i = 0;        boolean list = false;        // skip first arg if it's the list option        if (argv.length > 2 && argv[0].equals("-l"))        {            ++i;            list = true;        }        IngestionCrosswalk xwalk = (IngestionCrosswalk)PluginManager.getNamedPlugin(                IngestionCrosswalk.class, argv[i]);        XSLTransformer xform = ((XSLTIngestionCrosswalk)xwalk).getTransformer(DIRECTION);        if (xform == null)            throw new CrosswalkInternalException("Failed to initialize transformer, probably error loading stylesheet.");        SAXBuilder builder = new SAXBuilder();        Document inDoc = builder.build(new FileInputStream(argv[i+1]));        XMLOutputter outputter = new XMLOutputter(Format.getPrettyFormat());        if (list)        {            outputter.output(xform.transform(inDoc.getRootElement().getChildren()),                             System.out);        }        else        {            outputter.output(xform.transform(inDoc), System.out);        }    }