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

add namespaces from new http client and parser

parent 972ea218
......@@ -5,6 +5,8 @@ module namespace app="http://textgrid.de/ns/SADE/templates";
import module namespace templates="http://exist-db.org/xquery/templates" ;
import module namespace config="http://textgrid.de/ns/SADE/config" at "config/config.xqm";
declare namespace xhtml="http://www.w3.org/1999/xhtml";
(:~
: returns an html snippet with the current project title from conf.xml, can be
: can be a clickable title within a navbar that triggers a sidebar
......@@ -30,7 +32,7 @@ declare function app:publications($node as node(), $model as map(*)) {
let $request := <hc:request method="get" href="https://www.uni-goettingen.de/de/publikationen/303721.html" />
let $response := hc:send-request($request)[2]
return
$response//ul[@class="txtlist"][1]/li[position() < 4]
($response//*:li[@class="content"])[position() lt 5]
};
(:~
......@@ -43,7 +45,7 @@ declare function app:publications($node as node(), $model as map(*)) {
declare function app:presentations($node as node(), $model as map(*)) {
let $request := <hc:request method="get" href="https://www.uni-goettingen.de/de/vortr%C3%A4ge-und-pr%C3%A4sentationen/303717.html" />
let $response := hc:send-request($request)[2]
for $item in $response//ul[@class="txtlist"][1]/li[position() < 5]
for $item in ($response//*:li[@class="content"])[position() lt 5]
return
element li { for $i in $item/node() return local:nodeTest($i) }
};
......
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