Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96126261
on-odd-changed.xql
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Dec 22, 22:38
Size
995 B
Mime Type
text/x-java
Expires
Tue, Dec 24, 22:38 (1 d, 18 h)
Engine
blob
Format
Raw Data
Handle
23127995
Attached To
rNIETZSCHEDM nietzsche-dm
on-odd-changed.xql
View Options
xquery version "3.0";
module namespace trigger="http://exist-db.org/xquery/trigger";
import module namespace pmu="http://www.tei-c.org/tei-simple/xquery/util";
import module namespace odd="http://www.tei-c.org/tei-simple/odd2odd";
declare variable $local:odd external;
declare variable $local:collection external;
declare function trigger:after-update-document($uri as xs:anyURI) {
util:log("INFO", "trigger on " || $uri || " using " || $local:collection),
if (ends-with($uri, ".odd")) then
for $source in $local:odd
for $module in ("web", "print", "latex")
for $file in pmu:process-odd(
doc(odd:get-compiled($local:collection || "/resources/odd", $local:odd, $local:collection || "/resources/odd/compiled")),
$local:collection || "/transform",
$module,
"../transform",
doc($local:collection || "/resources/odd/configuration.xml")/*)?("module")
return
()
else
()
};
Event Timeline
Log In to Comment