Commit e8fab1d6 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

new function for wiki-based editing of index.html

parent 99d74486
......@@ -6,6 +6,11 @@ import module namespace config="http://textgrid.de/ns/SADE/config" at "../config
declare namespace http="http://expath.org/ns/http-client";
declare namespace xhtml="http://www.w3.org/1999/xhtml";
declare function wiki:include($node as node(), $model as map(*), $id as xs:string)
{
wiki:dokuwiki($node, $model, $id)/*
};
declare function wiki:dokuwiki($node as node(), $model as map(*), $id as xs:string) as node()* {
(: replace id not in whitelist :)
let $id:= if($id = doc('/db/sade-projects/textgrid/data/xml/data/2shfj.xml')//text()) then $id else 'gesamtdokumentation'
......
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