Paul Gustavson pgustavson@simventions.com SISO XML Namespaces Paul Gustavson pgustavson@simventions.com
SISO XML Schema Style (XSS) Guide technical SISO specification Describes and specifies the rules and guidelines to be applied by SISO Product Development Groups (PDGs) when developing and maintaining an XML schema. provides a way to identify, capture and maximize the re-use of SISO simulation standards expressed as XML schema components Intended to support and enhance simulation interoperability across multiple M&S domains and disciplines. Back on the clock. Expected first draft – May 4, 2011
What’s an XML namespace? XML Namespaces provide a method to avoid element name conflicts. Look for the prefix in an XML document <h:table xmlns:h="http://www.w3.org/TR/html4/"> <h:tr> <h:td>Apples</h:td> <h:td>Bananas</h:td> </h:tr> </h:table> <f:table xmlns:f="http://www.w3schools.com/furniture"> <f:name>African Coffee Table</f:name> <f:width>80</f:width> <f:length>120</f:length> </f:table> NOTE: The namespace URI is not used by the parser to look up information.
What’s a URI? Uniform Resource Identifier (URI) identifies an Internet Resource. Uniform Resource Locator (URL) the most common URI Identifies an internet domain location / address Uniform Resource Name (URN) Another type of URI, not as common NOTE: As a general rule – it’s good practice to put the XSD in a serviceable address…
How SISO Namespaces / Schemas are identified? (1/2) Schema using another schema <xs:schema xmlns="http://www.sisostds.org/schemas/bom" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:omt="http://www.sisostds.org/schemas/IEEE1516.2-2006" xmlns:modelID="http://www.sisostds.org/schemas/modelID" targetNamespace="http://www.sisostds.org/schemas/bom" elementFormDefault="qualified"> <xs:import namespace="http://www.sisostds.org/schemas/IEEE1516.2-2006" schemaLocation="IEEE1516.2-2006-D2v0.83.xsd"/> <xs:import namespace="http://www.sisostds.org/schemas/modelID" schemaLocation="ModelID_v2006_FINAL.xsd"/> http://www.sisostds.org/schemas/IEEE1516.2-2006-D2v0.83.xsd http://www.sisostds.org/schemas/ModelID_v2006_FINAL.xsd
How SISO Namespaces / Schemas are identified? (2/2) XML document identifying a SISO schema <BOM xmlns="http://www.sisostds.org/schemas/bom-2010" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:modelID="http://www.sisostds.org/schemas/modelID-2010" xmlns:omt="http://www.sisostds.org/schemas/IEEE1516-2010" xsi:schemaLocation="http://www.sisostds.org/schemas/bom-2010 BOM_v2010_9_17.xsd">
Where should SISO schema live? Schemas are to be located at http://www.sisostds.org/schemas/ Present status http://www.sisostds.org/Schemas.aspx Concerns?