[DFDL-WG] daffodil-calabash-extension now open-sourced

Cranford, Jonathan W. jcranford at mitre.org
Sat Jul 26 13:54:23 EDT 2014


DFDL WG,

Announcing the first open-source release of the daffodil-calabash extension.

https://opensource.ncsa.illinois.edu/stash/projects/DFDL/repos/daffodil-calabash-extension/browse

This project contain extension XProc steps so that data can be parsed into XML using DFDL and then manipulated in XProc.  It integrates Daffodil into the Calabash implementation of XProc (http://xmlcalabash.com/).

Here's an example to whet your appetite, from the README.txt file:

<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
                xmlns:dfdl="urn:daffodil:calabash"
                version="1.0">
    <p:output port="result"/>
    <p:import href="../../etc/daffodil-library.xpl"/>
    <dfdl:parse-file file="simpleCSV" schema="csv.dfdl.xsd" 
        root="ex:file" xmlns:ex="http://example.com"/>
</p:declare-step>

Here, a CSV is parsed using a sample CSV DFDL schema.

Of course, the real power of this extension is in manipulating the XML after the data is parsed.  More examples to come on that front.

More details are available at the above URL in the README.txt file.

Feedback is welcome and encouraged.  Please direct your comments to the daffodil-users at oss.tresys.com mailing list.

With best regards,

--
Jonathan W. Cranford 
Senior Information Systems Engineer
The MITRE Corporation (http://www.mitre.org)



More information about the dfdl-wg mailing list