Commit b589ad7b authored by MRodz's avatar MRodz Committed by mrodzis
Browse files

Add documentation

parent 6e11f94c
......@@ -3,7 +3,7 @@ xquery version "3.1";
(:~
: This modules handles the conversion of the Fontante-TEI/XML into TEISimple
: for the edited text. The resulting TEISimple is the basis for the "Editerter
: Text" view on the website and the book.
: Text" view on the website and the book and represent the latest layer of text.
:
: The resulting TEISimple orientates itself toward the so-called "SUB-Schema"
: which is a subset for TEISimple that is recommended for future projects that
......@@ -50,8 +50,20 @@ declare function fontane-simple:main($file as xs:string) as element(tei:TEI) {
</TEI>
};
declare function fontane-simple:transform($nodes as node()*) as item()* {
(:~
: Recursivly iterates the passed nodes and converts them according to the
: requirements for the "Edierter Text".
:
: The requirements are part of the encoding documentation, c.f.
: https://fontane-nb.dariah.eu/doku.html.
:
:
: @author Michelle Rodzis
: @param $nodes
: @return $node()* a TEISimple element
:
:)
declare function fontane-simple:transform($nodes as node()*) as node()* {
for $node in $nodes
return
typeswitch ($node)
......
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