this is a german Web-Mirror of MHONARC.ORG powered by Domainunion AG

[Top] [All Lists]

Re: [xsl] Reflecting on: csv data to xml

2013-07-02 03:57:28
On 2 July 2013 11:21, davep <davep(_at_)dpawson(_dot_)co(_dot_)uk> wrote:
On 01/07/13 09:36, Adam Retter wrote:

we have built as open source a CSV Validation tool.

The CSV Validation tool consists of a specification for a simple text
grammar that describes the format of a CSV file and rules that are
asserted against the CSV file. It also includes an implementation for
the JVM (in Scala, we also provide a Java API) which takes such a
grammar and CSV file and  performs the validation, reporting all
non-validating issues or pass. The tool is available here It should be considered beta, i.e. we
are using it internally but until now it has not been publicised. In
addition documentation is missing but the EBNF file in the source repo
describes the grammar, and running the tool without arguments gives
you the simple command line useage. I hope documentation will follow
shortly, in the mean time issues etc should be aimed at the Github

Thanks Adam, looks very useful. quick question please,
what of disparate line lengths? Are they considered 'valid'?

I assume you mean can you have rows with different numbers of columns?
At present no, although it could be considered in future.

The other nasty is embedded quotes, if using quotes or comma if using them?

We try and adhere to RFC 4180 here and there are couple of global
directives in the grammar which allow you to adjust the column


Dave Pawson

XSL-List info and archive:
To unsubscribe, go to:
or e-mail: 

Adam Retter

skype: adam.retter
tweet: adamretter

XSL-List info and archive:
To unsubscribe, go to:
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>