From 63ed7a9ced86b83b390b6a7c21fd6e708742843b Mon Sep 17 00:00:00 2001 From: "Benjamin W. Bohl" Date: Thu, 9 Jul 2015 01:06:11 +0200 Subject: [PATCH 1/5] make change of schemaRef optional and parametrizeable --- 04 MEI cleaning/improveMusic.xsl | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/04 MEI cleaning/improveMusic.xsl b/04 MEI cleaning/improveMusic.xsl index d2131d6..b83fe00 100644 --- a/04 MEI cleaning/improveMusic.xsl +++ b/04 MEI cleaning/improveMusic.xsl @@ -30,6 +30,11 @@ + + The newSchemaRef parameter defines a new URL for RNG and Schematron schemata; if empty the existing schemaRef will be retained + + + Parameter for mdiv id @@ -782,17 +787,19 @@ Replace general mei-all.rng references with custom freidi-schema reference - - - href="../../../schemata/rng/freidi-schema-musicSource.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0" - - - href="../../../schemata/rng/freidi-schema-musicSource.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron" - - - - - + + + + href="" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0" + + + href="" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron" + + + + + + \ No newline at end of file From d7d5e0ee1d10fbbed776d01c658461f3a6c6c89d Mon Sep 17 00:00:00 2001 From: "Benjamin W. Bohl" Date: Thu, 9 Jul 2015 01:07:44 +0200 Subject: [PATCH 2/5] fix typo --- 04 MEI cleaning/improveMusic.xsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/04 MEI cleaning/improveMusic.xsl b/04 MEI cleaning/improveMusic.xsl index b83fe00..3cd7e5a 100644 --- a/04 MEI cleaning/improveMusic.xsl +++ b/04 MEI cleaning/improveMusic.xsl @@ -25,7 +25,7 @@ - Define output method as UTH-8 encoded XML with identation. + Define output method as UTF-8 encoded XML with identation. From 0ec3b1c9cedfdbc1ed653d03fcef707286f40305 Mon Sep 17 00:00:00 2001 From: bwbohl Date: Thu, 23 Jul 2015 11:51:49 +0200 Subject: [PATCH 3/5] changed repository reference --- 04 MEI cleaning/improveMusic.xsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/04 MEI cleaning/improveMusic.xsl b/04 MEI cleaning/improveMusic.xsl index 3cd7e5a..92596d4 100644 --- a/04 MEI cleaning/improveMusic.xsl +++ b/04 MEI cleaning/improveMusic.xsl @@ -753,7 +753,7 @@ Content of processed with - improveMusic.xsl from Freischütz Digital Tools in order to resolve mei:bTrems, mei:fTrems, intermediary mei:scoreDefs and mei:staffDef, transform mei:artic and mei:accid to respective attributes, etc. + improveMusic.xsl from Freischütz Digital Tools in order to resolve mei:bTrems, mei:fTrems, intermediary mei:scoreDefs and mei:staffDef, transform mei:artic and mei:accid to respective attributes, etc. From 47d5d3d708919cda91ca89e93c6ef5fb2d1b45aa Mon Sep 17 00:00:00 2001 From: bwbohl Date: Thu, 23 Jul 2015 12:04:40 +0200 Subject: [PATCH 4/5] retain old schemaRef if no new value is given Previously the xml-model processing instruction were removed from the file if $newSchemaRef was an empty string. Now this case will lead to the old schema references being copied to the result document. --- 04 MEI cleaning/improveMusic.xsl | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/04 MEI cleaning/improveMusic.xsl b/04 MEI cleaning/improveMusic.xsl index 92596d4..0ce7235 100644 --- a/04 MEI cleaning/improveMusic.xsl +++ b/04 MEI cleaning/improveMusic.xsl @@ -787,8 +787,9 @@ Replace general mei-all.rng references with custom freidi-schema reference - - + + + href="" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0" @@ -798,8 +799,12 @@ - - + + + + + + \ No newline at end of file From cb0449ccb86cffbbfafd23c1283f63e6fa6485c8 Mon Sep 17 00:00:00 2001 From: bwbohl Date: Thu, 23 Jul 2015 14:38:30 +0200 Subject: [PATCH 5/5] add latest schema ref and verify @meiversion.num previously $newSchemaRef was blank Now by default MEI 2.1.1 schemaRef is supplied and attribute meiversion.num will be updated accordingly. The value depends on the version number after 'MEI2013_v' in the newSchemaRef parameter. --- 04 MEI cleaning/improveMusic.xsl | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/04 MEI cleaning/improveMusic.xsl b/04 MEI cleaning/improveMusic.xsl index 0ce7235..20dae2e 100644 --- a/04 MEI cleaning/improveMusic.xsl +++ b/04 MEI cleaning/improveMusic.xsl @@ -33,7 +33,7 @@ The newSchemaRef parameter defines a new URL for RNG and Schematron schemata; if empty the existing schemaRef will be retained - + https://raw.githubusercontent.com/music-encoding/music-encoding/MEI2013_v2.1.1/schemata/mei-all.rng @@ -211,6 +211,17 @@ + + + this template takes care that mei:mei element holds meiversion.num + + + + + + + + mei:pb elements are to be excluded from the result, as notation program specific page breaks are irrelevant for the project.