> AJ MacLeod wrote: > > On Monday 23 January 2006 13:46, Jon S. Berndt wrote: > > I've created a schema for the JSBSim aircraft configuration file. The > > XMLStarlet utility, xml, validates an aircraft flight model in less > > than a second. > > Sounds nice... and since I'm currently working on a JSBSim config for > my model it also sounds very useful! Is your schema publicly > available yet? > > AJ
Yes. If you look at the top of some of the JSBSim aircraft models (the ones that were gotten from the JSBSim web site, were created with a current version of Aeromatic, or have been translated using the latest translation utility) you will see this at the top of the file: --- start --- <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="http://jsbsim.sourceforge.net/JSBSim.xsl"?> <fdm_config name="Cessna 310 Light Twin General Aviation Aircraft" version="2.0" release="BETA" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://jsbsim.sourceforge.net/JSBSim.xsd" > --- end --- The stylesheet to be used in transforming the file and the schema to validate it are both listed. Try brining up one of these files in a browser and the stylesheet should be downloaded from the web site and used to change the appearance of the .xml file. Note that the stylesheet is still being refined, as is the schema file. The command line XMLStarlet utility that I mentioned is not quite ready, apparently, for proper validation. It will catch blatant XML errors, but missed some obvious JSBSim config file errors that I threw in there which were legal XML, but illegal for JSBSim as defined by the schema. There is also msxsl - a Microsoft command line tool that seems to be a bit better. You can download that from their web site somewhere. I am sure there are other utilities for various platforms, but I don't have that information at the moment. There are also online utilities that can validate a file - those do seem to work well. Here's one: http://tools.decisionsoft.com/schemaValidate.html Jon ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel