blob: c761fda2bacf513b3d331a516e2245c9357c389f [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<x:description xmlns:x="http://www.jenitennison.com/xslt/xspec"
xmlns:functx="http://www.functx.com"
stylesheet="../nkjp2korap.xsl">
<!-- tests to check conversion of primary data -->
<x:scenario label="Check primary Data">
<!-- load example file -->
<x:context href="./resources/nkjp2korap_sample1/KOT/text.xml" />
<!-- test get-primary-data template -->
<x:call template="test_full">
<x:param name="corpusID" select="'NKJP'" />
<x:param name="docID" select="'NKJP'" />
<x:param name="textID" select="'KOT'" />
</x:call>
<x:expect label="Check text" test="substring(//*[local-name()='text'],0,10) = 'Nie zdąży'" />
<x:expect label="Check text sigle" test="*[local-name()='raw_text']/@docid = 'NKJP_NKJP.KOT'" />
</x:scenario>
</x:description>