Akron | 9a8ee3e | 2022-01-31 13:51:49 +0100 | [diff] [blame] | 1 | <?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 --> |
bansp | db92a87 | 2022-03-10 02:04:06 +0100 | [diff] [blame^] | 14 | <x:call template="test_full"> |
Akron | 9a8ee3e | 2022-01-31 13:51:49 +0100 | [diff] [blame] | 15 | <x:param name="corpusID" select="'NKJP'" /> |
Akron | 4059e5f | 2022-02-14 15:54:32 +0100 | [diff] [blame] | 16 | <x:param name="docID" select="'NKJP'" /> |
| 17 | <x:param name="textID" select="'KOT'" /> |
Akron | 9a8ee3e | 2022-01-31 13:51:49 +0100 | [diff] [blame] | 18 | </x:call> |
| 19 | |
| 20 | <x:expect label="Check text" test="substring(//*[local-name()='text'],0,10) = 'Nie zdąży'" /> |
| 21 | |
Akron | 4059e5f | 2022-02-14 15:54:32 +0100 | [diff] [blame] | 22 | <x:expect label="Check text sigle" test="*[local-name()='raw_text']/@docid = 'NKJP_NKJP.KOT'" /> |
Akron | 9a8ee3e | 2022-01-31 13:51:49 +0100 | [diff] [blame] | 23 | |
| 24 | </x:scenario> |
| 25 | </x:description> |