Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
intermediate-format
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bibliothek-der-neologie
intermediate-format
Commits
f19ef8e4
Commit
f19ef8e4
authored
6 years ago
by
MRodz
Browse files
Options
Downloads
Patches
Plain Diff
Add first draft for bibliothek-der-neologie/bdn-SADE#59
parent
6d13d405
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/intermediate_format/ifweb.xql
+15
-4
15 additions, 4 deletions
modules/intermediate_format/ifweb.xql
with
15 additions
and
4 deletions
modules/intermediate_format/ifweb.xql
+
15
−
4
View file @
f19ef8e4
...
...
@@ -38,16 +38,27 @@ as node()* {
return $intermediate-format
};
declare function ifweb:transform($doc as node()*, $filename as xs:string,
$target-dir as xs:string) as node()* {
let $preprocessed-data := pre:preprocessing($doc/tei:TEI, $ifweb:replace-whitespace)
let $intermediate-format := ident:walk($preprocessed-data, ())
let $store := xmldb:store($target-dir, $filename, $intermediate-format)
return $intermediate-format
};
declare function ifweb:complete-xml($author as xs:string, $xml as node()*)
as node()* {
let $filename := $author || "-full-if.xml"
return ifweb:transform($xml, $filename)
};
declare function ifweb:single-xml($
resource as node()*, $filename
as xs:string
)
as node()* {
let $
filename := substring-before($filename, '.xml') || "-if.xml"
return ifweb:transform($resource, $filename)
declare function ifweb:single-xml($
filename as xs:string, $src-dir
as xs:string
,
$target-dir as xs:string)
as node()* {
let $
resource := doc($src-dir || $filename)
return ifweb:transform($resource, $filename
, $target-dir
)
};
declare function ifweb:transform-split-xml($xml as node()*, $filename as xs:string,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment