Issue with auto completion function
Posted: Mon Feb 22, 2021 11:05 am
In Oxygen XML Editor 21.1, when I use the widget Elements I have 2 different behavior with Text view and Author view.
I open this file
When the cursor is between faultIsolationProcedure tag and isolationProcedure tag,
on Text view I have 3 possibilities : fault, possibleCauseGroup and isolationProcedure; And faultDescr in grey
on Author view I have 1 possibility : possibleCauseGroup; And fault, faultDescr, isolationProcedure in grey
The definition of the element faultIsolationProcedure in the xsd is :
Can you tell me why there is 2 different behavior between this 2 view ?
Moreover, we tried to customize the automatic completion in our application.
We add this in our ContentCompletionConfigurator :
In Author view, when we add faultIsolationProcedure, only isolationProcedure is inserted automaticaly.
For information it works fine with :
And we have the same behavior between Oxygen Editor and our application with the Elements widget.
We don't understand why there is this different behavior issue and why we can not add automatically fault instead of isolationProcedure.
Do you have any ideas ?
Regards,
Isabelle
I open this file
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dmodule[]>
<dmodule xmlns:dc="http://www.purl.org/dc/elements/1.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.s1000d.org/S1000D_4-1/xml_schema_flat/fault.xsd">
<identAndStatusSection>
<dmAddress>
<dmIdent>
<dmCode modelIdentCode="AAAAAAAAAA"
systemDiffCode="BBB"
systemCode="CC0"
subSystemCode="0"
subSubSystemCode="0"
assyCode="00"
disassyCode="00"
disassyCodeVariant="DD"
infoCode="000"
infoCodeVariant="E"
itemLocationCode="T"/>
<language countryIsoCode="US" languageIsoCode="en"/>
<issueInfo issueNumber="001" inWork="01"/>
</dmIdent>
<dmAddressItems>
<issueDate year="2019" month="06" day="28"/>
<dmTitle>
<techName>Title</techName>
<infoName>Name</infoName>
</dmTitle>
</dmAddressItems>
</dmAddress>
<dmStatus>
<security securityClassification="01"/>
<responsiblePartnerCompany></responsiblePartnerCompany>
<originator></originator>
<applic><displayText></displayText></applic>
<brexDmRef>
<dmRef>
<dmRefIdent>
<dmCode modelIdentCode="AAAAAAAAAA"
systemDiffCode="BBB"
systemCode="CC0"
subSystemCode="0"
subSubSystemCode="0"
assyCode="00"
disassyCode="00"
disassyCodeVariant="DD"
infoCode="000"
infoCodeVariant="E"
itemLocationCode="T"/>
</dmRefIdent>
</dmRef>
</brexDmRef>
<qualityAssurance><unverified/></qualityAssurance>
</dmStatus>
</identAndStatusSection>
<content>
<faultIsolation>
<faultIsolationProcedure>
<isolationProcedure>
<preliminaryRqmts>
<reqCondGroup/>
<reqSupportEquips/>
<reqSupplies/>
<reqSpares/>
<reqSafety/>
</preliminaryRqmts>
<isolationMainProcedure/>
<closeRqmts>
<reqCondGroup/>
</closeRqmts>
</isolationProcedure>
</faultIsolationProcedure>
</faultIsolation>
</content>
</dmodule>
on Text view I have 3 possibilities : fault, possibleCauseGroup and isolationProcedure; And faultDescr in grey
on Author view I have 1 possibility : possibleCauseGroup; And fault, faultDescr, isolationProcedure in grey
The definition of the element faultIsolationProcedure in the xsd is :
Code: Select all
<xs:element name="faultIsolationProcedure" type="faultIsolationProcedureElemType"/>
<xs:complexType name="faultIsolationProcedureElemType">
<xs:sequence>
<xs:sequence minOccurs="0">
<xs:element ref="fault"/>
<xs:element ref="faultDescr"/>
</xs:sequence>
<xs:element minOccurs="0" ref="possibleCauseGroup"/>
<xs:element ref="isolationProcedure"/>
</xs:sequence>
<xs:attribute ref="applicRefId"/>
<xs:attribute ref="id"/>
<xs:attributeGroup ref="changeAttGroup"/>
<xs:attributeGroup ref="securityAttGroup"/>
<xs:attributeGroup ref="authorityAttGroup"/>
</xs:complexType>
Moreover, we tried to customize the automatic completion in our application.
We add this in our ContentCompletionConfigurator :
Code: Select all
<elementProposals insertElements="fault" path="faultIsolationProcedure"/>
In Author view, when we add faultIsolationProcedure, only isolationProcedure is inserted automaticaly.
For information it works fine with :
Code: Select all
<elementProposals insertElements="quantityGroup" path="quantity"/>
And we have the same behavior between Oxygen Editor and our application with the Elements widget.
We don't understand why there is this different behavior issue and why we can not add automatically fault instead of isolationProcedure.
Do you have any ideas ?
Regards,
Isabelle