Commit 0de17df0 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

add transform:error message to code.html

parent 404a7fce
......@@ -58,10 +58,13 @@ else if (tokenize($exist:path, '/') = "get") then
$docCollection := $config:projects-dir || $project ||"/data/xml/xhtml/"|| $id ||"/",
$docpath := $docCollection || $page ||".xml",
$doc := doc( $docpath ),
$error := $doc//error,
$content :=
switch ($exist:resource)
case "code.html" return
replace(serialize($doc//xhtml:div[@class="teixml"]), "xhtml:", "")
case "code.html" return (
replace(serialize($doc//xhtml:div[@class="teixml"]), "xhtml:", ""),
serialize($error)
)
case "trans.html" return
replace(serialize($doc/xhtml:body/xhtml:div/xhtml:div[not(@class="teixml")][not(@class="facs")]), "xhtml:", "")
......
Supports Markdown
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