Commit 58ebd3a6 authored by Wolfgang's avatar Wolfgang

Merge branch 'master' of gitlab.existsolutions.com:tei-publisher/dodis-facets

parents 44dd25f5 c0e3ba82
Pipeline #289 canceled with stages
......@@ -251,6 +251,8 @@ declare variable $config:app-root :=
;
declare variable $config:data-root :=$config:app-root || "/data";
declare variable $config:translations-root :=$config:app-root || "/translations";
declare variable $config:data-exclude := "taxonomy.xml";
......
......@@ -6,6 +6,7 @@
module namespace mapping="http://www.tei-c.org/tei-simple/components/map";
import module namespace nav="http://www.tei-c.org/tei-simple/navigation/tei" at "navigation-tei.xql";
import module namespace config="http://www.tei-c.org/tei-simple/config" at "config.xqm";
declare namespace tei="http://www.tei-c.org/ns/1.0";
......@@ -20,6 +21,13 @@ declare function mapping:vg-translation($root as element()) {
$node
};
declare function mapping:dodis-translation($root as element()) {
(: let $id := ``[pb-trans-`{$root/@f}`-`{$root/@n}`]``:)
let $file := substring-before(util:document-name($root), '.xml')
return
doc($config:translations-root || '/' || $file || '-en.xml')//tei:text
};
declare function mapping:cortez-translation($root as element()) {
let $first := (($root/following-sibling::text()/ancestor::*[@xml:id])[last()], $root/following-sibling::*[@xml:id], ($root/ancestor::*[@xml:id])[last()])[1]
let $last := $root/following::tei:pb[1]
......
......@@ -161,6 +161,9 @@ margin-top: 10px;
</elementSpec>
<elementSpec ident="note" mode="change">
<model output="web" predicate="$parameters?header='short'" behaviour="omit"/>
<model output="web" predicate="@type=&#34;merged&#34;" behaviour="section" cssClass="tei-note-merged"/>
<model behaviour="note" cssClass="tei-note">
<param name="label" value="@n"/>
......@@ -366,6 +369,31 @@ color: red;
<elementSpec ident="div" mode="change">
<model behaviour="block" cssClass="tei-div"/>
</elementSpec>
<elementSpec ident="titleStmt" mode="change">
<model output="latex" behaviour="meta">
<param name="content" value="."/>
</model>
<model output="fo" behaviour="heading"/>
<model predicate="$parameters?mode='title'" behaviour="heading">
<param name="content" value="title[not(@type)]"/>
<param name="level" value="5"/>
</model>
<modelSequence output="web" predicate="$parameters?header='short'">
<model behaviour="link">
<param name="content" value="root(.)//div[@type='doc']/head/title[@type='sub']"/>
<param name="uri" value="$parameters?doc"/>
</model>
<model behaviour="block">
<param name="content" value="title"/>
</model>
<model behaviour="block">
<param name="content" value="author"/>
</model>
</modelSequence>
<model output="web" behaviour="block"/>
</elementSpec>
</schemaSpec>
<elementSpec ident="body" mode="change">
<modelSequence>
......
......@@ -130,6 +130,9 @@
<pb-grid-action grid="#grid" slot="toolbar" action="remove">
<paper-icon-button icon="icons:close"/>
</pb-grid-action>
<template title="Translation">
<pb-view src="document1" map="dodis-translation" xpath="//text" subscribe="transcription"/>
</template>
<template title="Facsimile">
<pb-facsimile subscribe="transcription" base-uri="https://apps.existsolutions.com/cantaloupe/iiif/2/"
default-zoom-level="0">
......
......@@ -178,11 +178,11 @@ declare function model:apply($config as map(*), $input as node()*) {
let $content :=
model:template-cp_coreProperties($config, ., $params)
return
tei:metadata(map:merge(($config, map:entry("template", true()))), ., ("tei-cp:coreProperties"), $content)
tei:metadata(map:merge(($config, map:entry("template", true()))), ., ("tei-cp_coreProperties"), $content)
case element(dc:title) return
tei:inline($config, ., ("tei-dc:title"), ., map {})
tei:inline($config, ., ("tei-dc_title"), ., map {})
case element(dc:creator) return
tei:inline($config, ., ("tei-dc:creator"), ., map {"tei_element": 'author'})
tei:inline($config, ., ("tei-dc_creator"), ., map {"tei_element": 'author'})
case element(tbl) return
tei:table($config, ., ("tei-tbl"), tr)
case element(tr) return
......@@ -192,13 +192,13 @@ declare function model:apply($config as map(*), $input as node()*) {
case element(t) return
tei:text($config, ., ("tei-t"), .)
case element(pic:pic) return
tei:graphic($config, ., ("tei-pic:pic"), ., let $id := .//a:blip/@r:embed let $mediaColl := $parameters?filename || ".media/" let $target := $parameters?rels/rel:Relationship[@Id=$id]/@Target return $mediaColl || substring-after($target, "media/"), (), (), (), ())
tei:graphic($config, ., ("tei-pic_pic"), ., let $id := .//a:blip/@r:embed let $mediaColl := $parameters?filename || ".media/" let $target := $parameters?rels/rel:Relationship[@Id=$id]/@Target return $mediaColl || substring-after($target, "media/"), (), (), (), ())
case element(smartTag) return
tei:inline($config, ., ("tei-smartTag"), ., map {})
case element(pict) return
tei:inline($config, ., ("tei-pict"), .//v:imagedata, map {})
case element(v:imagedata) return
tei:graphic($config, ., ("tei-v:imagedata"), ., let $id := @r:id let $mediaColl := $parameters?filename || ".media/" let $relationship := $parameters?rels/rel:Relationship[@Id=$id] let $target := $relationship/@Target return if ($relationship/@TargetMode = "External") then $target else $mediaColl || substring-after($target, "media/"), (), (), (), ())
tei:graphic($config, ., ("tei-v_imagedata"), ., let $id := @r:id let $mediaColl := $parameters?filename || ".media/" let $relationship := $parameters?rels/rel:Relationship[@Id=$id] let $target := $relationship/@Target return if ($relationship/@TargetMode = "External") then $target else $mediaColl || substring-after($target, "media/"), (), (), (), ())
case element() return
tei:omit($config, ., ("tei--element"), .)
case text() | xs:anyAtomicType return
......
......@@ -128,10 +128,13 @@ declare function model:apply($config as map(*), $input as node()*) {
case element(code) return
html:inline($config, ., ("tei-code"), .)
case element(note) return
if (@type="merged") then
html:section($config, ., ("tei-note1", "tei-note-merged"), .)
if ($parameters?header='short') then
html:omit($config, ., ("tei-note1"), .)
else
epub:note($config, ., ("tei-note2", "tei-note"), ., (), @n)
if (@type="merged") then
html:section($config, ., ("tei-note2", "tei-note-merged"), .)
else
epub:note($config, ., ("tei-note3", "tei-note"), ., (), @n)
case element(dateline) return
epub:block($config, ., ("tei-dateline", "tei-dateline"), .)
case element(back) return
......@@ -420,8 +423,8 @@ declare function model:apply($config as map(*), $input as node()*) {
else
if ($parameters?header='short') then
(
html:link($config, ., ("tei-titleStmt4"), title[1], $parameters?doc, (), map {}),
epub:block($config, ., ("tei-titleStmt5"), subsequence(title, 2)),
html:link($config, ., ("tei-titleStmt4"), root(.)//div[@type='doc']/head/title[@type='sub'], $parameters?doc, (), map {}),
epub:block($config, ., ("tei-titleStmt5"), title),
epub:block($config, ., ("tei-titleStmt6"), author)
)
......
......@@ -123,7 +123,7 @@ declare function model:apply($config as map(*), $input as node()*) {
case element(code) return
latex:inline($config, ., ("tei-code"), .)
case element(note) return
latex:note($config, ., ("tei-note2", "tei-note"), ., (), @n)
latex:note($config, ., ("tei-note3", "tei-note"), ., (), @n)
case element(dateline) return
latex:block($config, ., ("tei-dateline", "tei-dateline"), .)
case element(back) return
......
......@@ -123,7 +123,7 @@ declare function model:apply($config as map(*), $input as node()*) {
case element(code) return
fo:inline($config, ., ("tei-code"), .)
case element(note) return
fo:note($config, ., ("tei-note2", "tei-note"), ., (), @n)
fo:note($config, ., ("tei-note3", "tei-note"), ., (), @n)
case element(dateline) return
fo:block($config, ., ("tei-dateline", "tei-dateline"), .)
case element(back) return
......
......@@ -126,10 +126,13 @@ declare function model:apply($config as map(*), $input as node()*) {
case element(code) return
html:inline($config, ., ("tei-code"), .)
case element(note) return
if (@type="merged") then
html:section($config, ., ("tei-note1", "tei-note-merged"), .)
if ($parameters?header='short') then
html:omit($config, ., ("tei-note1"), .)
else
html:note($config, ., ("tei-note2", "tei-note"), ., (), @n)
if (@type="merged") then
html:section($config, ., ("tei-note2", "tei-note-merged"), .)
else
html:note($config, ., ("tei-note3", "tei-note"), ., (), @n)
case element(dateline) return
html:block($config, ., ("tei-dateline", "tei-dateline"), .)
case element(back) return
......@@ -418,8 +421,8 @@ declare function model:apply($config as map(*), $input as node()*) {
else
if ($parameters?header='short') then
(
html:link($config, ., ("tei-titleStmt4"), title[1], $parameters?doc, (), map {}),
html:block($config, ., ("tei-titleStmt5"), subsequence(title, 2)),
html:link($config, ., ("tei-titleStmt4"), root(.)//div[@type='doc']/head/title[@type='sub'], $parameters?doc, (), map {}),
html:block($config, ., ("tei-titleStmt5"), title),
html:block($config, ., ("tei-titleStmt6"), author)
)
......
......@@ -57,7 +57,7 @@
.tei-pb:after { content: ']'; }
.tei-hi { vertical-align: super; line-height: 0; margin-left: 1px; }
.tei-code { font-family:monospace }
.tei-note2 { display: inline !important; }
.tei-note3 { display: inline !important; }
.tei-dateline { text-align: right; }
.tei-del { text-decoration: line-through; }
.tei-trailer { color: green; }
......
import module namespace m='http://www.tei-c.org/pm/models/tei_simplePrint/epub' at '/db/apps/dodis-facets/transform/tei_simplePrint-epub.xql';
declare variable $xml external;
declare variable $parameters external;
let $options := map {
"styles": ["../transform/tei_simplePrint.css"],
"collection": "/db/apps/dodis-facets/transform",
"parameters": if (exists($parameters)) then $parameters else map {}
}
return m:transform($options, $xml)
\ No newline at end of file
module namespace pml='http://www.tei-c.org/pm/models/tei_simplePrint/epub/module';
import module namespace m='http://www.tei-c.org/pm/models/tei_simplePrint/epub' at '/db/apps/dodis-facets/transform/tei_simplePrint-epub.xql';
(: Generated library module to be directly imported into code which
: needs to transform TEI nodes using the ODD this module is based on.
:)
declare function pml:transform($xml as node()*, $parameters as map(*)?) {
let $options := map {
"styles": ["../transform/tei_simplePrint.css"],
"collection": "/db/apps/dodis-facets/transform",
"parameters": if (exists($parameters)) then $parameters else map {}
}
return m:transform($options, $xml)
};
\ No newline at end of file
This diff is collapsed.
import module namespace m='http://www.tei-c.org/pm/models/tei_simplePrint/latex' at '/db/apps/dodis-facets/transform/tei_simplePrint-latex.xql';
declare variable $xml external;
declare variable $parameters external;
let $options := map {
"styles": ["../transform/tei_simplePrint.css"],
"collection": "/db/apps/dodis-facets/transform",
"parameters": if (exists($parameters)) then $parameters else map {}
}
return m:transform($options, $xml)
\ No newline at end of file
module namespace pml='http://www.tei-c.org/pm/models/tei_simplePrint/latex/module';
import module namespace m='http://www.tei-c.org/pm/models/tei_simplePrint/latex' at '/db/apps/dodis-facets/transform/tei_simplePrint-latex.xql';
(: Generated library module to be directly imported into code which
: needs to transform TEI nodes using the ODD this module is based on.
:)
declare function pml:transform($xml as node()*, $parameters as map(*)?) {
let $options := map {
"styles": ["../transform/tei_simplePrint.css"],
"collection": "/db/apps/dodis-facets/transform",
"parameters": if (exists($parameters)) then $parameters else map {}
}
return m:transform($options, $xml)
};
\ No newline at end of file
This diff is collapsed.
import module namespace m='http://www.tei-c.org/pm/models/tei_simplePrint/fo' at '/db/apps/dodis-facets/transform/tei_simplePrint-print.xql';
declare variable $xml external;
declare variable $parameters external;
let $options := map {
"styles": ["../transform/tei_simplePrint.css"],
"collection": "/db/apps/dodis-facets/transform",
"parameters": if (exists($parameters)) then $parameters else map {}
}
return m:transform($options, $xml)
\ No newline at end of file
module namespace pml='http://www.tei-c.org/pm/models/tei_simplePrint/fo/module';
import module namespace m='http://www.tei-c.org/pm/models/tei_simplePrint/fo' at '/db/apps/dodis-facets/transform/tei_simplePrint-print.xql';
(: Generated library module to be directly imported into code which
: needs to transform TEI nodes using the ODD this module is based on.
:)
declare function pml:transform($xml as node()*, $parameters as map(*)?) {
let $options := map {
"styles": ["../transform/tei_simplePrint.css"],
"collection": "/db/apps/dodis-facets/transform",
"parameters": if (exists($parameters)) then $parameters else map {}
}
return m:transform($options, $xml)
};
\ No newline at end of file
This diff is collapsed.
import module namespace m='http://www.tei-c.org/pm/models/tei_simplePrint/web' at '/db/apps/dodis-facets/transform/tei_simplePrint-web.xql';
declare variable $xml external;
declare variable $parameters external;
let $options := map {
"styles": ["../transform/tei_simplePrint.css"],
"collection": "/db/apps/dodis-facets/transform",
"parameters": if (exists($parameters)) then $parameters else map {}
}
return m:transform($options, $xml)
\ No newline at end of file
module namespace pml='http://www.tei-c.org/pm/models/tei_simplePrint/web/module';
import module namespace m='http://www.tei-c.org/pm/models/tei_simplePrint/web' at '/db/apps/dodis-facets/transform/tei_simplePrint-web.xql';
(: Generated library module to be directly imported into code which
: needs to transform TEI nodes using the ODD this module is based on.
:)
declare function pml:transform($xml as node()*, $parameters as map(*)?) {
let $options := map {
"styles": ["../transform/tei_simplePrint.css"],
"collection": "/db/apps/dodis-facets/transform",
"parameters": if (exists($parameters)) then $parameters else map {}
}
return m:transform($options, $xml)
};
\ No newline at end of file
This diff is collapsed.
/* Generated stylesheet. Do not edit. */
/* Global styles */
.simple_allcaps { text-transform: uppercase; }
.simple_blackletter { font-family: fantasy; }
.simple_bold { font-weight: bold; }
.simple_bottombraced { padding-bottom: 2pt; border-bottom: dashed gray 2pt; }
.simple_block { display:block; }
.simple_boxed { padding: 2pt; border: solid black 1pt; }
.simple_centre { text-align: center; }
.simple_cursive { font-family: cursive; }
.simple_doublestrikethrough { text-decoration: line-through; color: red; }
.simple_doubleunderline { text-decoration: underline; color: red; }
.simple_dropcap { font-size : 6em; font-family: cursive; font-weight : bold; vertical-align: top; height: 1em; line-height: 1em; float : left; width : 1em; color : #c00; margin: 0em; padding: 0px; }
.simple_float { float:right; display: block; font-size: smaller; clear: right; padding: 4pt; width: 15%; }
.simple_hyphen { }
.simple_inline { display:inline; }
.simple_italic { font-style: italic; }
.simple_justify { text-align: justify; }
.simple_larger { font-size: larger; }
.simple_left { text-align: left; }
.simple_leftbraced { padding-left: 2pt; border-left: dotted gray 2pt; }
.simple_letterspace { letter-spacing: 0.5em; }
.simple_literal { font-family:monospace; white-space:pre; }
.simple_normalstyle { font-style:roman; }
.simple_normalweight { font-weight:normal; }
.simple_right { text-align: right; }
.simple_rightbraced { padding-right: 2pt; border-right: dotted gray 2pt; }
.simple_rotateleft { -webkit-transform: rotate(90deg); transform: rotate(90deg); }
.simple_rotateright { -webkit-transform: rotate(-90deg); transform: rotate(-90deg); }
.simple_rules { border: 1px solid black; padding: 2px;border-collapse:collapse;border-spacing:0; }
.simple_smallcaps { font-variant: small-caps; }
.simple_smaller { font-size: smaller; }
.simple_strikethrough { text-decoration: line-through; }
.simple_subscript { vertical-align: bottom; font-size: smaller; }
.simple_superscript { vertical-align: super; font-size: smaller; }
.simple_topbraced { padding-top: 2pt; border-top: dotted gray 2pt; }
.simple_typewriter { font-family:monospace; }
.simple_underline { text-decoration: underline; }
.simple_wavyunderline { text-decoration: underline; text-decoration-style: wavy; }
/* Model rendition styles */
.tei-add { color: green; text-decoration: underline; }
.tei-address { margin-top: 2em; margin-left: 2em; margin-right: 2em; margin-bottom: 2em; }
.tei-addrLine { white-space: nowrap; }
.tei-argument { margin-bottom: 0.5em; }
.tei-castList { list-style: ordered; }
.tei-closer { margin-top: 1em; margin-left: 1em; margin-left: 1em; }
.tei-code { font-family:monospace }
.tei-corr2:before { content: '['; }
.tei-corr2:after { content: ']'; }
.tei-del { text-decoration: line-through; }
.tei-div1 { border: 1px solid black; padding: 5px; }
.tei-docTitle { font-size: larger; }
.tei-email { font-family:monospace }
.tei-figDesc:before { content: '[..'; }
.tei-figDesc:after { content: '..]'; }
.tei-figDesc { color: grey;font-style:italic; }
.tei-figure2 { display: block; border-top: solid 1pt blue; border-bottom: solid 1pt blue; }
.tei-floatingText { margin: 6pt; border: solid black 1pt; }
.tei-foreign { font-style:italic; }
.tei-gap1 { color: grey; }
.tei-gap2:before { content: '[..'; }
.tei-gap2:after { content: '..]'; }
.tei-gap2 { color: grey; }
.tei-gap3:before { content: '[...]'; }
.tei-head1 { font-style: italic; }
.tei-head2 { font-style: italic; }
.tei-head3 { font-style: italic; }
.tei-head4 { font-weight: bold; }
.tei-hi1 { font-style: italic; }
.tei-hi2 { font-style: italic; }
.tei-l { margin-left: 1em; }
.tei-note2 { margin-left: 10px;margin-right: 10px; font-size:smaller; }
.tei-note3:before { content:" ["; }
.tei-note3:after { content:"] "; }
.tei-note3 { font-size:small; }
.tei-p { text-align: justify; }
.tei-pb { display: block; margin-left: 4pt; color: grey; float: right; }
.tei-pb:before { content: '[Page '; }
.tei-pb:after { content: ']'; }
.tei-q1 { margin-left: 10px; margin-right: 10px; }
.tei-q2:before { content: '‘'; }
.tei-q2:after { content: '’'; }
.tei-q3 { margin-left: 10px; margin-right: 10px; }
.tei-quote1:before { content: '‘'; }
.tei-quote1:after { content: '’'; }
.tei-quote2 { margin-left: 10px; margin-right: 10px; }
.tei-row1 { font-weight: bold; }
.tei-sic2:before { content: '{'; }
.tei-sic2:after { content: '}'; }
.tei-signed1 { text-align: right; }
.tei-signed2 { font-style: italic; }
.tei-speaker { font-style:italic; }
.tei-stage { font-style: italic; }
.tei-supplied2:before { content:"<"; }
.tei-supplied2:after { content:">"; }
.tei-supplied3:before { content:"["; }
.tei-supplied3:after { content:"]"; }
.tei-supplied4:before { content:"("; }
.tei-supplied4:after { content:")"; }
.tei-supplied5:before { content:"{"; }
.tei-supplied5:after { content:"}"; }
.tei-table { font-size: smaller; background-color: #F0F0F0; }
.tei-text { max-width: 80%; margin: auto; font-family: Verdana, Tahoma, Geneva, Arial, Helvetica, sans-serif; }
.tei-title2 { color: red; font-size: 2em; }
.tei-title4 { font-style: italic; }
.tei-title6 { font-style: italic; }
.tei-title8 { font-style: italic; }
.tei-title10 { font-style: italic; }
.tei-titlePage { text-align: center; }
.tei-trailer { color: green; }
.tei-unclear:after { content: ' [?] '; }
\ No newline at end of file
import module namespace m='http://www.tei-c.org/pm/models/teipublisher/epub' at '/db/apps/dodis-facets/transform/teipublisher-epub.xql';
declare variable $xml external;
declare variable $parameters external;
let $options := map {
"styles": ["../transform/teipublisher.css"],
"collection": "/db/apps/dodis-facets/transform",
"parameters": if (exists($parameters)) then $parameters else map {}
}
return m:transform($options, $xml)
\ No newline at end of file
module namespace pml='http://www.tei-c.org/pm/models/teipublisher/epub/module';
import module namespace m='http://www.tei-c.org/pm/models/teipublisher/epub' at '/db/apps/dodis-facets/transform/teipublisher-epub.xql';
(: Generated library module to be directly imported into code which
: needs to transform TEI nodes using the ODD this module is based on.
:)
declare function pml:transform($xml as node()*, $parameters as map(*)?) {
let $options := map {
"styles": ["../transform/teipublisher.css"],
"collection": "/db/apps/dodis-facets/transform",
"parameters": if (exists($parameters)) then $parameters else map {}
}
return m:transform($options, $xml)
};
\ No newline at end of file
This diff is collapsed.
import module namespace m='http://www.tei-c.org/pm/models/teipublisher/latex' at '/db/apps/dodis-facets/transform/teipublisher-latex.xql';
declare variable $xml external;
declare variable $parameters external;
let $options := map {
"styles": ["../transform/teipublisher.css"],
"collection": "/db/apps/dodis-facets/transform",
"parameters": if (exists($parameters)) then $parameters else map {}
}
return m:transform($options, $xml)
\ No newline at end of file
module namespace pml='http://www.tei-c.org/pm/models/teipublisher/latex/module';
import module namespace m='http://www.tei-c.org/pm/models/teipublisher/latex' at '/db/apps/dodis-facets/transform/teipublisher-latex.xql';
(: Generated library module to be directly imported into code which
: needs to transform TEI nodes using the ODD this module is based on.
:)
declare function pml:transform($xml as node()*, $parameters as map(*)?) {
let $options := map {
"styles": ["../transform/teipublisher.css"],
"collection": "/db/apps/dodis-facets/transform",
"parameters": if (exists($parameters)) then $parameters else map {}
}
return m:transform($options, $xml)
};
\ No newline at end of file
This diff is collapsed.
import module namespace m='http://www.tei-c.org/pm/models/teipublisher/fo' at '/db/apps/dodis-facets/transform/teipublisher-print.xql';
declare variable $xml external;
declare variable $parameters external;
let $options := map {
"styles": ["../transform/teipublisher.css"],
"collection": "/db/apps/dodis-facets/transform",
"parameters": if (exists($parameters)) then $parameters else map {}
}
return m:transform($options, $xml)
\ No newline at end of file
module namespace pml='http://www.tei-c.org/pm/models/teipublisher/fo/module';
import module namespace m='http://www.tei-c.org/pm/models/teipublisher/fo' at '/db/apps/dodis-facets/transform/teipublisher-print.xql';
(: Generated library module to be directly imported into code which
: needs to transform TEI nodes using the ODD this module is based on.
:)
declare function pml:transform($xml as node()*, $parameters as map(*)?) {
let $options := map {
"styles": ["../transform/teipublisher.css"],
"collection": "/db/apps/dodis-facets/transform",
"parameters": if (exists($parameters)) then $parameters else map {}
}
return m:transform($options, $xml)
};
\ No newline at end of file
This diff is collapsed.
import module namespace m='http://www.tei-c.org/pm/models/teipublisher/web' at '/db/apps/dodis-facets/transform/teipublisher-web.xql';
declare variable $xml external;
declare variable $parameters external;
let $options := map {
"styles": ["../transform/teipublisher.css"],
"collection": "/db/apps/dodis-facets/transform",
"parameters": if (exists($parameters)) then $parameters else map {}
}
return m:transform($options, $xml)
\ No newline at end of file
module namespace pml='http://www.tei-c.org/pm/models/teipublisher/web/module';
import module namespace m='http://www.tei-c.org/pm/models/teipublisher/web' at '/db/apps/dodis-facets/transform/teipublisher-web.xql';
(: Generated library module to be directly imported into code which
: needs to transform TEI nodes using the ODD this module is based on.
:)
declare function pml:transform($xml as node()*, $parameters as map(*)?) {
let $options := map {
"styles": ["../transform/teipublisher.css"],
"collection": "/db/apps/dodis-facets/transform",
"parameters": if (exists($parameters)) then $parameters else map {}
}
return m:transform($options, $xml)
};
\ No newline at end of file
This diff is collapsed.
/* Generated stylesheet. Do not edit. */
/* Global styles */
.simple_allcaps { text-transform: uppercase; }
.simple_blackletter { font-family: fantasy; }
.simple_bold { font-weight: bold; }
.simple_bottombraced { padding-bottom: 2pt; border-bottom: dashed gray 2pt; }
.simple_block { display:block; }
.simple_boxed { padding: 2pt; border: solid black 1pt; }
.simple_centre { text-align: center; }
.simple_cursive { font-family: cursive; }
.simple_doublestrikethrough { text-decoration: line-through; color: red; }
.simple_doubleunderline { text-decoration: underline; color: red; }
.simple_dropcap { font-size : 6em; font-family: cursive; font-weight : bold; vertical-align: top; height: 1em; line-height: 1em; float : left; width : 1em; color : #c00; margin: 0em; padding: 0px; }
.simple_float { float:right; display: block; font-size: smaller; clear: right; padding: 4pt; width: 15%; }
.simple_hyphen { }
.simple_inline { display:inline; }
.simple_italic { font-style: italic; }
.simple_justify { text-align: justify; }
.simple_larger { font-size: larger; }
.simple_left { text-align: left; }
.simple_leftbraced { padding-left: 2pt; border-left: dotted gray 2pt; }
.simple_letterspace { letter-spacing: 0.5em; }
.simple_literal { font-family:monospace; white-space:pre; }
.simple_normalstyle { font-style:roman; }
.simple_normalweight { font-weight:normal; }
.simple_right { text-align: right; }
.simple_rightbraced { padding-right: 2pt; border-right: dotted gray 2pt; }
.simple_rotateleft { -webkit-transform: rotate(90deg); transform: rotate(90deg); }
.simple_rotateright { -webkit-transform: rotate(-90deg); transform: rotate(-90deg); }
.simple_rules { border: 1px solid black; padding: 2px;border-collapse:collapse;border-spacing:0; }
.simple_smallcaps { font-variant: small-caps; }
.simple_smaller { font-size: smaller; }
.simple_strikethrough { text-decoration: line-through; }
.simple_subscript { vertical-align: bottom; font-size: smaller; }
.simple_superscript { vertical-align: super; font-size: smaller; }
.simple_topbraced { padding-top: 2pt; border-top: dotted gray 2pt; }
.simple_typewriter { font-family:monospace; }
.simple_underline { text-decoration: underline; }
.simple_wavyunderline { text-decoration: underline; text-decoration-style: wavy; }
/* Model rendition styles */
.tei-supplied2:before { content:"<"; }
.tei-supplied2:after { content:">"; }
.tei-supplied3:before { content:"["; }
.tei-supplied3:after { content:"]"; }
.tei-supplied4:before { content:"("; }
.tei-supplied4:after { content:")"; }
.tei-supplied5:before { content:"{"; }
.tei-supplied5:after { content:"}"; }
.tei-signed1 { text-align: right; }
.tei-signed2 { font-style: italic; }
.tei-pb { display: block; margin-left: 4pt; color: grey; float: right; }
.tei-pb:before { content: '[Page '; }
.tei-pb:after { content: ']'; }
.tei-hi1 { font-style: italic; }
.tei-hi2 { font-style: italic; }
.tei-note2 { margin-left: 10px;margin-right: 10px; font-size:smaller; }
.tei-note3:before { content:" ["; }
.tei-note3:after { content:"] "; }
.tei-note3 { font-size:small; }
.tei-code { font-family:monospace }
.tei-del { text-decoration: line-through; }
.tei-trailer { color: green; }
.tei-speaker { font-style:italic; }
.tei-figDesc:before { content: '[..'; }
.tei-figDesc:after { content: '..]'; }
.tei-figDesc { color: grey;font-style:italic; }
.tei-foreign { font-style:italic; }
.tei-email { font-family:monospace }
.tei-floatingText { margin: 6pt; border: solid black 1pt; }
.tei-table { font-size: smaller; background-color: #F0F0F0; }
.tei-address { margin-top: 2em; margin-left: 2em; margin-right: 2em; margin-bottom: 2em; }
.tei-author1:before { content: 'By '; }
.tei-castList { list-style: ordered; }
.tei-l { margin-left: 1em; }
.tei-closer { margin-top: 1em; margin-left: 1em; margin-left: 1em; }
.tei-p { text-align: justify; }
.tei-q1 { margin-left: 10px; margin-right: 10px; }
.tei-q2:before { content: '‘'; }
.tei-q2:after { content: '’'; }
.tei-q3 { margin-left: 10px; margin-right: 10px; }
.tei-docTitle { font-size: larger; }
.tei-titlePage { text-align: center; }
.tei-stage { font-style: italic; }
.tei-div1 { border: 1px solid black; padding: 5px; }
.tei-add { color: green; text-decoration: underline; }
.tei-head2 { font-style: italic; }
.tei-head3 { font-style: italic; }
.tei-head4 { font-style: italic; }
.tei-head5 { font-weight: bold; }
.tei-unclear:after { content: ' [?] '; }
.tei-title5 { font-style: italic; }
.tei-title7 { font-style: italic; }
.tei-title9 { font-style: italic; }
.tei-title11 { font-style: italic; }
.tei-argument { margin-bottom: 0.5em; }
.tei-corr2:before { content: '['; }
.tei-corr2:after { content: ']'; }
.tei-sic2:before { content: '{'; }
.tei-sic2:after { content: '}'; }
.tei-quote1:before { content: '‘'; }
.tei-quote1:after { content: '’'; }
.tei-quote2 { margin-left: 10px; margin-right: 10px; }
.tei-gap1 { color: grey; }
.tei-gap2:before { content: '[..'; }
.tei-gap2:after { content: '..]'; }
.tei-gap2 { color: grey; }
.tei-gap3:before { content: '[...]'; }
.tei-addrLine { white-space: nowrap; }
.tei-row1 { font-weight: bold; }
.tei-edition:before { content: 'Edition: '; }
\ 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