Added initial conversion script and example xspec

Change-Id: I62c1c82152c6e3dec6aecf9baa3df7f635799868
diff --git a/test/nkjp2korap.xspec b/test/nkjp2korap.xspec
new file mode 100644
index 0000000..db0e732
--- /dev/null
+++ b/test/nkjp2korap.xspec
@@ -0,0 +1,25 @@
+<?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>