Skip to content
Snippets Groups Projects
Commit fb0aa61a authored by usikora's avatar usikora :monkey:
Browse files

right-branch-axis now handles last tei:rdg[@type = pp|pt]

parent f4aecca6
No related branches found
No related tags found
No related merge requests found
...@@ -171,6 +171,11 @@ declare function ident:right-branch-axis ...@@ -171,6 +171,11 @@ declare function ident:right-branch-axis
$target/child::node()[last()]/child::node()[last()] $target/child::node()[last()]/child::node()[last()]
) )
(: If tei:apps last child is a tei:rdg[pp, pt] stop here and return the tei:app :)
else if ( $target/child::node()[last()][ self::rdg[@type eq "pp" or @type eq "pt"] ] ) then (
$target
)
(: If tei:app has no last child tei:rdg[ppl, ptl] and its tei:lem is not empty (: If tei:app has no last child tei:rdg[ppl, ptl] and its tei:lem is not empty
change the axis to tei:lems last child() :) change the axis to tei:lems last child() :)
else if ( not(empty($target/child::lem/node())) ) then ( else if ( not(empty($target/child::lem/node())) ) then (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment