Fragment Insertion - is this a bug?
Posted: Fri Dec 20, 2024 6:07 pm
Hi,
I am having some issues debugging the placement of a fragment insertion using Author actions: can someone confirm if this is a bug in the software, or the user
?
I have a structure like this:
My action uses the built-in InsertOrReplaceFragmentOperation with the following options:
Activation XPath: ancestor-or-self::div[@class="activity-item"][not(child::something)]
fragment: <something/>
InsertLocation: ancestor-or-self::div[@class="activity-item"]
InsertPosition: Inside as last child
Can anyone give me a pointer as to why the content ends up in the wrong place and/or confirm I'm doing the right thing? Oxygen version is <oXygen/> XML Editor 26.1, build 2024091606
I am having some issues debugging the placement of a fragment insertion using Author actions: can someone confirm if this is a bug in the software, or the user

I have a structure like this:
Code: Select all
<document>
<div class="activity-item">
<p/>
<!-- I want to insert <something/> here -->
</div>
<xi:include><!-- The content ends up appearing here --></xi:include>
</document>
Activation XPath: ancestor-or-self::div[@class="activity-item"][not(child::something)]
fragment: <something/>
InsertLocation: ancestor-or-self::div[@class="activity-item"]
InsertPosition: Inside as last child
Can anyone give me a pointer as to why the content ends up in the wrong place and/or confirm I'm doing the right thing? Oxygen version is <oXygen/> XML Editor 26.1, build 2024091606