I try to extract some text for creating a lemma in the back of a book and don't know how to grab the nodes:
Consider the following:
<anchor type='commentary' xml:id='A1'/>Romeo and Juliet<note type='commentary' xml:id='N1'>Some blabla</note> is a tragedy written by William Shakespeare
So with my XSLT i want to be able to access the text between anchor and note to write a lemma in the back of the book:
p. 1 Romeo and Juliet) Some blabla
The problem is that basically all other possible elements can occur between anchor and note so I can't just use text(). E.g. sometimes I have the element in between anchor and note:
<anchor type='commentary' xml:id='A1'/>Romeo <c rendition="ampersand"/> Juliet<note type='commentary' xml:id='N1'>Some blabla</note>
with the undesired result of 'Romeo Juliet' instead of 'Romeo & Juliet'
How can i copy the nodes between anchor and note to access it a second time?