Skip to content

Commit

Permalink
More work on TEIC#250
Browse files Browse the repository at this point in the history
  • Loading branch information
sydb committed Sep 26, 2018
1 parent de3d19c commit c8abc44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion Test/expected-results/test.isosch
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
<!-- namespaces, implicit: -->
<!-- ********************* -->
<ns prefix="dcr" uri="http://www.isocat.org/ns/dcr"/>
<ns prefix="rng" uri="http://relaxng.org/ns/structure/1.0"/>

<!-- ************ -->
<!-- constraints: -->
Expand Down
8 changes: 3 additions & 5 deletions odds/extract-isosch.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<d:doc scope="stylesheet" type="stylesheet">
<d:desc>
<d:p> TEI stylesheet for extracting Schematron rules from TEI ODD </d:p>
<d:p>TEI stylesheet for extracting Schematron rules from TEI ODD</d:p>
<d:p>This software is dual-licensed:

1. Distributed under a Creative Commons Attribution-ShareAlike 3.0
Expand Down Expand Up @@ -268,10 +268,8 @@ of this software, even if advised of the possibility of such damage.
<!-- separating each pair with a character we know will never occur inside (for easy -->
<!-- parsing later). -->
<xsl:variable name="allNSs" as="xs:string+">
<xsl:sequence>
<xsl:sequence select="( $decorated//tei:*[@nsu]/concat( @nsp, '␝', @nsu ) )"/>
<xsl:sequence select="('rng:␝http://relaxng.org/ns/structure/1.0')"/>
</xsl:sequence>
<xsl:sequence select="( $decorated//tei:*[@nsu]/concat( @nsp, '␝', @nsu ) )"/>
<!-- if desired, other NSs can be added manually here -->
</xsl:variable>
<xsl:variable name="NSs" select="distinct-values( $allNSs )"/>
<!-- For each pair (except those that are empty or are the XLS namespace) ... -->
Expand Down

0 comments on commit c8abc44

Please sign in to comment.