-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
transpose empty elements that span to anchors #627
Comments
This comment has been minimized.
This comment has been minimized.
Transposed empty elements
for $ptr in $faust//transpose/ptr
let $target := id(substring-after($ptr/@target, '#'), $ptr)
for $milestone in $target[not(child::node())]
let $span-end := id(substring-after($milestone/@spanTo, '#'), $milestone),
$parent := $span-end/..,
$is-common := if ($span-end) then if ($parent is $span-end/..) then name($parent) else "✘" else "",
$sigil := data(root($milestone)//idno[@type='faustedition']),
$partners := for $partner in ($ptr/../ptr except $ptr) return id(substring-after($partner/@target, '#'), $ptr)
return <h:tr>
<h:td>{$sigil}</h:td>
<h:td>#{data($milestone/@xml:id)}</h:td>
<h:td>{name($milestone)}</h:td>
<h:td>{count($partners[not(child::node())])}</h:td>
<h:td>{name($span-end)}</h:td>
<h:td>{$is-common}</h:td>
</h:tr> |
The transposition doesn’t work because this use case has never been specified and thus never been implemented. The phrase-level transposition in the test manuscript has its xml:ids on lines. I would very strongly suggest to check whether this couldn’t be handled in some different way (e.g., pointer to l or div or lg or ab). I haven’t looked at the actual cases yet, but transpositions across hierarchy borders might contain all kinds of ambiguities and will not be easy to implement. |
Same applies to |
This table lists all empty elements that are referred by a transposition pointer. This points to different cases, at least the following can be distinguished:
|
Thanks for the query and its analysis! |
When I have something like
and
the transposition for last stage doesn't work. @thvitt, can you find out how often we have
transpose
that points to amilestone
?The text was updated successfully, but these errors were encountered: