supportXInclude
property allows to include portions of the XML documents using the xInclude mechanism. It help to define only once an XML structure (such as the interfaces of a module) and reuse them in several configurations.xmlns:xi="http://www.w3.org/2001/XInclude"
at the root of the XML documentxi:include
directive by using <xi:include href="includedFile" parse="text"/>
or <xi:include href="includedFile" parse="xml"/>
<applications xmlns:xi="http://www.w3.org/2001/XInclude"> <application name="appli1"> <xi:include href="included.xml" parse="xml"/> </application> </applications>Note that the two possible values for the
parse
attribute ( xml
and text
) are supported. The text
allows to include content as text, whereas the content included with the xml
must be well-formed XML.
Aircraft
application with the following modules:InertialNavSystem
module computes the current position of the aircraftFlightManagementSystem
module computes the Flight plan and sends the events during the aircraft route on the Flight planGuidanceSystem
module computes the aircraft trajectoryCockpit
moduleAircraftSystems
application with the following modules:InertialNavSystem
module computes the current position of the aircraftFlightManagementSystem
module computes the Flight plan and sends the events during the aircraft route on the Flight planGuidanceSystem
module computes the aircraft trajectoryCockpit
application with only the Cockpit
moduleInertialNavSystem.xml
file with the following content:<module name="InertialNavSystem" > <implementation path="org.da.aircraft.ins.INS" > <initEntryPoint method="init" /> <startEntryPoint method="start" /> <defaultReceiveEntryPoint method="receive" /> <defaultSendEntryPoint method="send" /> </implementation> <interfaces> <push service="position" /> </interfaces> </module>
FlightManagementSystem.xml
file with the following content:<module name="FlightManagementSystem" > <implementation path="org.da.aircraft.fms.FMS" > <initEntryPoint method="init" /> <startEntryPoint method="start" /> <defaultReceiveEntryPoint method="receive" /> <defaultSendEntryPoint method="send" /> </implementation> <interfaces> <subscribe service="position"/> <eventSend service="flightPlanEvents" /> <requestReceived service="computeFlightPlan"/> </interfaces> </module>
FlightManagementSystem.xml
file with the following content:<module name="GuidanceSystem" > <implementation path="org.da.aircraft.guidance.Guidance" > <initEntryPoint method="init" /> <startEntryPoint method="start" /> <defaultReceiveEntryPoint method="receive" /> <defaultSendEntryPoint method="send" /> </implementation> <interfaces> <eventReceived service="flightPlanEvents" /> <subscribe service="position"/> </interfaces> </module>
Cockpit.xml
file with the following content:<module name="Cockpit" > <implementation path="org.da.aircraft.mmi.Cockpit" > <initEntryPoint method="init" /> <startEntryPoint method="start" /> <defaultReceiveEntryPoint method="receive" /> <defaultSendEntryPoint method="send" /> </implementation> <interfaces> <eventReceived service="flightPlanEvents" /> <requestSend service="computeFlightPlan"/> </interfaces> </module>
<applications xmlns:xi="http://www.w3.org/2001/XInclude"> <application name="Aircraft"> <deployment> <lib url="aircraft.jar" /> </deployment> <modules> <xi:include href="InertialNavSystem.xml" parse="xml"/> <xi:include href="FlightManagementSystem.xml" parse="xml"/> <xi:include href="GuidanceSystem.xml" parse="xml"/> <xi:include href="Cockpit.xml" parse="xml"/> </modules> </application> </applications>
<applications xmlns:xi="http://www.w3.org/2001/XInclude"> <application name="AircraftSystems:"> <deployment> <lib url="AircraftSystems.jar" /> </deployment> <modules> <xi:include href="InertialNavSystem.xml" parse="xml"/> <xi:include href="FlightManagementSystem.xml" parse="xml"/> <xi:include href="GuidanceSystem.xml" parse="xml"/> </modules> </application> </applications>For the Cockpit:
<applications xmlns:xi="http://www.w3.org/2001/XInclude"> <application name="Cockpit:"> <deployment> <lib url="Cockpit.jar" /> </deployment> <modules> <xi:include href="Cockpit.xml" parse="xml"/> </modules> </application> </applications>
Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence