I’m working with S1000D schemas/collections and i’m having a hard time updating mixed content nodes in Tamino. Example XML:
…
Test information for
Figure-NSC Displays Overall Layout. The Upper Display is titled NSSMS…
Test text 1
Test text 2
Test text 3
Test text 4
The CONTROL WINDOW
provides the NSC operator the ability
to display the LLLTV video for the selected TIS. This display provides the selected TIS’s
radar bearing and elevation information.
…
I’ve been trying to update using the fully qualified xpath:
“/content/descript/para0/subpara1/subpara2[1]/para/randlist/item[5]/text()[1]”
Tamino returns an error:
<ino:message ino:returnvalue=“7740”>
<ino:messagetext ino:code=“INOXDE7740”>(cvc-complex-type.2.4): element child error</ino:messagetext>
ino:messageline
Line 0, Column 0: [element ‘item’ in element ‘item’]
</ino:messageline>
</ino:message>
This xquery appears to work, so my xpath is correct:
(obviously it wipes out the mixed content)
“/content/descript/para0/subpara1/subpara2[1]/para/randlist/item[5]”
I’ve tested this xpath with an XPath Validator in another program
with the same xml file and the XPath is perfectly valid.
Any help would be appreciated.