blob: db0e7323f83533f7b974d91d04210b233183fd17 [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="get-primary-data">
<x:param name="corpusID" select="'NKJP'" />
<x:param name="docID" select="'KOT'" />
<x:param name="textID" select="'00076'" />
</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_KOT.00076'" />
</x:scenario>
</x:description>