this is a safety commit, before I take some stuff apart
Change-Id: I4e8e99eb1ed52d4133f44f6e773233126d74720b
diff --git a/nkjp2korap.xsl b/nkjp2korap.xsl
index 4a377df..9430c70 100644
--- a/nkjp2korap.xsl
+++ b/nkjp2korap.xsl
@@ -14,11 +14,12 @@
<xsl:param name="targetDir" select="'test/output'" as="xs:string"/>
<xsl:param name="skip_docID" as="xs:string">
- <xsl:value-of select="''"/>
- <!-- comma-separated list of document IDs to be skipped from processing
+ <xsl:value-of select="'HellerPodgladanie,IsakowiczZaleskiMoje,KolakowskiOco,MysliwskiKamien,WilkWilczy,ZycieWarszawy_Zycie'"/>
+ </xsl:param>
+ <!-- comma-separated list of document IDs to be skipped from processing
example: HellerPodgladanie,KOT
no functionality beyond string identity is supported -->
- </xsl:param>
+
<!-- VARIABLES -->
@@ -46,7 +47,8 @@
<!-- see https://www.saxonica.com/documentation11/index.html#!sourcedocs/collections/collection-directories -->
<xsl:variable name="collection_of_text" select="collection($sourceDir || '?' || $collection_params)" as="document-node()+"/>
-
+
+
<!-- MODES -->
<xsl:mode name="corpus" on-no-match="deep-skip"/>
@@ -96,6 +98,9 @@
</xsl:choose>
</xsl:function>
+
+<!-- UTILITY TEMPLATES -->
+
<xsl:template match="@default" mode="#all"/>
<!-- this is to delete some auto-inserted attribute throughout -->
@@ -112,6 +117,10 @@
but now, I just want this stylesheet to work, even if it eats some occasional token (which it now does, 'komuĊ' and 'czym' vanish)
-->
+
+ <!-- MAIN PROCESSING -->
+
+
<xsl:template name="xsl:initial-template">
<xsl:variable name="IDs_to_skip" select="tokenize($skip_docID,',')" as="xs:string*"/>
@@ -131,15 +140,14 @@
<xsl:choose>
<xsl:when test="$my_textID = $IDs_to_skip"/>
<xsl:otherwise>
- <xsl:message select="$my_textID"></xsl:message>
- <!--<xsl:call-template name="process_single_sample">
+ <xsl:call-template name="process_single_sample">
<xsl:with-param name="text.xml" as="document-node()" select="."/>
<xsl:with-param name="ann_morphosyntax.xml" as="document-node()"
select="doc($ann_morphosyntax.uri)"/>
<xsl:with-param name="ann_segmentation.xml" as="document-node()"
select="doc($ann_segmentation.uri)"/>
<xsl:with-param name="my_textID" select="$my_textID" as="xs:string"/>
- </xsl:call-template>-->
+ </xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
@@ -269,6 +277,9 @@
</xsl:variable>
<xsl:variable name="my_index" select="$index + 1 + $preceding-count + $outside-preceding-count"
as="xs:integer"/>
+
+
+ <!--<xsl:copy select="//tei:seg[count(@nkjp:rejected) ne 0 and @nkjp:rejected ne 'true']"></xsl:copy>-->
<xsl:variable name="start" as="xs:integer">
<xsl:choose>