Skip to content

Commit 22850f5

Browse files
author
DavidUnderdown
committed
1.1 release
1 parent 9a96400 commit 22850f5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

csv-schema.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
subtitle : "A Language for Defining and Validating CSV Data",
1919

2020
// if you wish the publication date to be other than today, set this
21-
// publishDate: "2014-08-23",
21+
publishDate: "2016-01-25",
2222

2323
// if the specification's copyright date is a range of years, specify
2424
// the start date here:
@@ -178,7 +178,7 @@
178178
as defined by <a href="http://www.nationalarchives.gov.uk">The National Archives</a>.
179179
It is unclear yet whether this document will be submitted to a formal standards body
180180
such as the <a href="http://w3.org">W3C</a>.
181-
This version supersedes the original <a href="http://digital-preservation.github.io/csv-schema/csv-schema-1.1.html">CSV Schema Language 1.0</a> published on 28 August 2014.
181+
This version supersedes the original <a href="http://digital-preservation.github.io/csv-schema/csv-schema-1.0.html">CSV Schema Language 1.0</a> published on 28 August 2014.
182182
</section>
183183
<section id='abstract'>
184184
<acronym title="Comma Separated Value">CSV</acronym> (Comma Separated Value) data comes in many shapes and sizes. Apart from [[RFC4180]] which is a fairly recent development (and often ignored),
@@ -1130,6 +1130,7 @@ <h5>Usage</h5>
11301130
<pre class="example" data-lt="Regular Expression Expression Syntax">
11311131
a_column: regex("[bcm]at") //the value of a_column must match the regular expression [bcm]at ie a string containing "bat", "cat" or "mat"
11321132
another_column: regex("[0-5]") //the value of another_column match the regular expression [0-5] ie a string containing only the digits only 0-5.
1133+
</section>
11331134
</section>
11341135
<section>
11351136
<h4>Range Expressions</h4>
@@ -1667,6 +1668,8 @@ <h4>Integrity Check Expressions</h4>
16671668
The default value for this string is an empty string.
16681669
The second parameter allows a string provider to be given to point to an explicit subdirectory relative to the location of the base path.
16691670
By default this subdirectory is expected to be called "content".
1671+
If only a single OPTIONAL parameter is supplied, it will be assumed to be the first, so if you wish to set only the second OPTIONAL parameter,
1672+
you MUST also explicitly supply the first as an empty string ("")
16701673
The final expression MUST be supplied. This indicates whether references to subfolders are explicitly included in the CSV file,
16711674
if the CSV file has a row for each subfolder the exact string "includeFolder" should be given,
16721675
if the subfolders do not have explicit references, the exact string "excludeFolder" should be given.
@@ -1691,7 +1694,7 @@ <h5>Usage</h5>
16911694
as the second parameter has not been supplied it defaults to the value "content" meaning that all sub folders must
16921695
sit within a folder with that name*/
16931696
another_column: integrityCheck("file:///C:/","excludeFolder") //here the string "file:///C:/" is prepended to the contents of another_column before the integrity check is made
1694-
third_column: integrityCheck("","excludeFolder") //here as an empty string is included, we indicate that there is no content folder
1697+
third_column: integrityCheck("","","excludeFolder") //here as an strings are passed for both optional parameters, we indicate that there is no content folder
16951698
</pre>
16961699
</section>
16971700
</section>

0 commit comments

Comments
 (0)