For example:
- Code: Select all
<system name="...">
<property value="0.0">/some/property</property>
...
would complain because "cvc-type.3.1.1: Element 'property' is a simple type, so it cannot have attributes.."
Another place was:
- Code: Select all
<channel name="Lights" execrate="5">
with a complaint "cvc-complex-type.3.2.2: Attribute 'execrate' is not allowed to appear in element 'channel'."
Next is probably just an error on model creator side and easy to fix:
- Code: Select all
<channel name="...">
<pure_gain>
which complains because: "Attribute 'name' is missing from element 'pure_gain'."
but this one not so much (unless programmer's error too):
- Code: Select all
<channel name="...">
<pure_gain>
<input>/some/property</input>
<gain>0.123</gain>
<clamp>
<min>0.0</min>
...
because: Element name 'clamp' is invalid. One of the following is expected: - clipto, - output. Error indicated by: {the schema}
Then there is:
- Code: Select all
...
<actuator>
<input>...</input>
<rate_limit>...</rate_limit>
<output>/first/property</output>
<output>/second/property</output>
</actuator>
which complains about second <output> statement as not allowed, but it seems to work nevertheless..
And more:
- Code: Select all
<aerosurface_scale name="...">
<input>/some/property</input>
<zero_centered>false</zero_centered>
which says: Element name 'zero_centered' is invalid. One of the following is expected: - domain - range - gain - clipto - output. Error indicated by: {the schema}
Also some math functions appear to be unknown:
- Code: Select all
<function>
<ln>
...
will complain about <ln> being not allowed by the schema (same goes for <exp>, <log10>).
The document references:
- Code: Select all
<fdm_config name="x" version="1.1" release="ALPHA"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd">
...
My question is, if perhaps there is an updated schema for JSBSim?
I found a thread, almost a decade old, which admits that the schema may lag behind the code a bit, but maybe things changed since then?
Ref: viewtopic.php?f=66&t=18622&p=173746&hilit=jsbsim+schema#p173676