blob: db0e7323f83533f7b974d91d04210b233183fd17 [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 -->
14 <x:call template="get-primary-data">
15 <x:param name="corpusID" select="'NKJP'" />
16 <x:param name="docID" select="'KOT'" />
17 <x:param name="textID" select="'00076'" />
18 </x:call>
19
20 <x:expect label="Check text" test="substring(//*[local-name()='text'],0,10) = 'Nie zdąży'" />
21
22 <x:expect label="Check text sigle" test="*[local-name()='raw_text']/@docid = 'NKJP_KOT.00076'" />
23
24 </x:scenario>
25</x:description>