Skip to content

Commit

Permalink
bugfix: @PB:mode should be applied before templates are processed or …
Browse files Browse the repository at this point in the history
…parameters are set
  • Loading branch information
wolfgangmm committed Mar 15, 2022
1 parent d244e1b commit 8457cdc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions content/model.xql
Original file line number Diff line number Diff line change
Expand Up @@ -480,16 +480,15 @@ declare %private function pm:model($ident as xs:string, $model as element(tei:mo
(),
let $signature := $fn?function[1]
let $classes := pm:get-class($ident, $model)
let $spec := $model/ancestor::tei:elementSpec[1]
return
try {
if ($model/tei:desc) then
<comment>{$model/tei:desc}</comment>
else
(),
pm:set-mode($model),
pm:expand-template($model, $params, $output),
pm:set-parameters($model),
pm:set-mode($model),
<function-call name="{$fn?prefix}:{$task}">
{
if ($model/pb:template) then
Expand Down

0 comments on commit 8457cdc

Please sign in to comment.