Commit 84150219 authored by Wolfgang's avatar Wolfgang

Fix transform.xql

parent 72a555e0
......@@ -43,8 +43,7 @@ let $doc := request:get-parameter("doc", ())
let $odd := request:get-parameter("odd", $config:odd)
return
if ($doc) then
let $id := replace($doc, "^(.*)\..*", "$1")
let $xml := pages:get-document($id)/*
let $xml := pages:get-document($doc)/*
let $config := tpu:parse-pi(root($xml), ())
let $out := $pm-config:web-transform($xml, map { "root": $xml }, $config?odd)
let $styles := if (count($out) > 1) then $out[1] else ()
......
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