blob: 71f9659e9d249e5ce1e821b0cf79f237be8e1022 [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="'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>