Commit 4e3d33e7 authored by Wolfgang's avatar Wolfgang

Remove pmf:level attribute on head when post-processing results

parent 287d6fa6
......@@ -250,21 +250,31 @@ declare %private function pmf:division($head as element()?) {
return
if ($nextHeading and $nextHeading/@pmf:level > $myLevel) then
<div xmlns="http://www.tei-c.org/ns/1.0">
{
$head,
$head/following-sibling::node()[. << $nextHeading],
pmf:division($nextHeading)
}
<head>
{
$head/@* except $head/@pmf:level,
$head/node()
}
</head>
{
$head/following-sibling::node()[. << $nextHeading],
pmf:division($nextHeading)
}
</div>
else (
<div xmlns="http://www.tei-c.org/ns/1.0">
{
$head,
if ($nextHeading) then
$head/following-sibling::node()[. << $nextHeading]
else
$head/following-sibling::node()
}
<head>
{
$head/@* except $head/@pmf:level,
$head/node()
}
</head>
{
if ($nextHeading) then
$head/following-sibling::node()[. << $nextHeading]
else
$head/following-sibling::node()
}
</div>,
pmf:division($nextHeading)
)
......
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