Skip to content

Commit

Permalink
Use the 3.1 grammars from the grammars repository
Browse files Browse the repository at this point in the history
  • Loading branch information
ndw committed Sep 2, 2024
1 parent d963aa6 commit bbcb895
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -115,18 +115,18 @@ task make_etc() {
// ======================================================================
// We need the core RNG grammars

task xproc_schemas(dependsOn: [ "download_core30" ]) {
task xproc_schemas(dependsOn: [ "download_core31" ]) {
// nop
}

task download_core30(type: Download) {
src "$schemaBaseUri/lib/core30.rng"
dest file("build/core30.rng")
task download_core31(type: Download) {
src "$schemaBaseUri/lib/core31.rng"
dest file("build/core31.rng")
}
download_core30.onlyIf { !file("$buildDir/core30.rng").exists() }
download_core31.onlyIf { !file("$buildDir/core31.rng").exists() }

[ "rnc", "rng" ].each { ext ->
["xproc", "xproc10", "xproc30"].each { base ->
["xproc", "xproc10", "xproc30", "xproc31"].each { base ->
Task t = task "download_${base}_${ext}"(type: Download) {
src "$schemaBaseUri/relax-ng/$base.$ext"
dest file("build/$base.$ext")
Expand Down
2 changes: 1 addition & 1 deletion tools/xsl/rngsyntax.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

<xsl:variable name="pattern" select="@name"/>

<xsl:variable name="schemafile" select="'../../build/xproc30.rng'"/>
<xsl:variable name="schemafile" select="'../../build/xproc31.rng'"/>

<xsl:variable name="theschema" as="document-node()">
<xsl:choose>
Expand Down

0 comments on commit bbcb895

Please sign in to comment.