Commit 5b647819 authored by MRodz's avatar MRodz Committed by mrodzis
Browse files

Add basic framework for second step of serialisation

parent 65fe4f06
xquery version "3.1";
(: This main module starts the tests stored in tidysimple-test.xql. :)
import module namespace tidysimple-test = "http://fontane-nb.dariah.eu/tidysimple-test" at "tidysimple-test.xql";
import module namespace test="http://exist-db.org/xquery/xqsuite" at "resource:org/exist/xquery/lib/xqsuite/xqsuite.xql";
declare namespace tei="http://www.tei-c.org/ns/1.0";
test:suite(
util:list-functions("http://fontane-nb.dariah.eu/teisimple-test")
)
\ No newline at end of file
xquery version "3.1";
(: This library module contains XQSuite tests for the all modules module stored
: in tidysimple.xqm :)
module namespace tidysimple-test = "http://fontane-nb.dariah.eu/tidysimple-test";
import module namespace tidySimple ="http://fontane-nb.dariah.eu/tidysimple" at "../tidysimple.xqm";
declare namespace tei="http://www.tei-c.org/ns/1.0";
declare namespace test="http://exist-db.org/xquery/xqsuite";
(: milestones :)
declare
%test:name("Milestone")
%test:args("<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""paragraph""/>")
%test:assertEquals("<milestone xmlns=""http://www.tei-c.org/ns/1.0"" unit=""paragraph""/>")
function tidysimple-test:analyze-milestones($node as element(*)) {
(: fontaneSimple:transform($node):)
()
};
\ No newline at end of file
xquery version "3.1";
(:~
: This modules handles the conversion of the Fontante-TEI/XML into TEI simplePrint
: for the edited text. The resulting TEI simplePrint is the basis for the "Editerter
: Text" (edited text) view on the website and the book. It represents the latest
: layer of text.
:
: @author Michelle Rodzis
: @version 0.1
: @since TODO
:)
module namespace tidySimple ="http://fontane-nb.dariah.eu/tidysimple";
declare namespace tei="http://www.tei-c.org/ns/1.0";
declare namespace test="http://exist-db.org/xquery/xqsuite";
import module namespace console="http://exist-db.org/xquery/console";
import module namespace fontaneSimple="http://fontane-nb.dariah.eu/teisimple" at "tei2teisimple.xqm";
import module namespace functx = "http://www.functx.com";
import module namespace simpleHelpers="http://fontane-nb.dariah.eu/teisimplehelpers" at "teisimplehelpers.xqm";
declare function tidySimple:main($tei as element(tei:TEI) ) as element(tei:TEI) {
()
};
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment