blob: c761fda2bacf513b3d331a516e2245c9357c389f [file] [log] [blame]
Akron9a8ee3e2022-01-31 13:51:49 +01001<?xml version="1.0" encoding="UTF-8"?>
2
3<x:description xmlns:x="http://www.jenitennison.com/xslt/xspec"
4 xmlns:functx="http://www.functx.com"
5 stylesheet="../nkjp2korap.xsl">
6
7 <!-- tests to check conversion of primary data -->
8 <x:scenario label="Check primary Data">
9
10 <!-- load example file -->
11 <x:context href="./resources/nkjp2korap_sample1/KOT/text.xml" />
12
13 <!-- test get-primary-data template -->
banspdb92a872022-03-10 02:04:06 +010014 <x:call template="test_full">
Akron9a8ee3e2022-01-31 13:51:49 +010015 <x:param name="corpusID" select="'NKJP'" />
Akron4059e5f2022-02-14 15:54:32 +010016 <x:param name="docID" select="'NKJP'" />
17 <x:param name="textID" select="'KOT'" />
Akron9a8ee3e2022-01-31 13:51:49 +010018 </x:call>
19
20 <x:expect label="Check text" test="substring(//*[local-name()='text'],0,10) = 'Nie zdąży'" />
21
Akron4059e5f2022-02-14 15:54:32 +010022 <x:expect label="Check text sigle" test="*[local-name()='raw_text']/@docid = 'NKJP_NKJP.KOT'" />
Akron9a8ee3e2022-01-31 13:51:49 +010023
24 </x:scenario>
25</x:description>