Rules and Standards |
CAA V5 XML Naming RulesStandard names for public CAA V5 XML entities |
Technical Article |
AbstractAs CAA V5 introduces a number of different programming entities, naming conventions have been developed in order to avoid name collisions inside and outside the CAA environment, and to make things clearer for its developers. This article describes these naming conventions for XML entities. |
The following general principles have been established when choosing rules for CAA V5 names:
[Top]
Entity Name | Entity Nature | Naming Rule | Metrics |
---|---|---|---|
1-All | All | V5<EntityName>
|
Nb of deviations / Nb of entities |
[Top]
The entity and the directory that contain it must have the same name.
Note: V5 can be replaced by other valid prefixes (such as CAA, CAT, ENOV, and DELM) in the patterns below.
Entity Name | Entity Nature | Directory Naming Rule | Notes | Metrics |
---|---|---|---|---|
1-XML Schema repository | Physical grouping of XML Schema. | V5<FWName>/CNext/resources/xsd/ | If the naming rule based on the framework name is not used for file name in this directory, then a subdirectory unique to the particular application should be used. | Nb of deviations / Nb of entities |
2-XML instance documents repository | Physical grouping of XML document instances. | V5<FWName>/CNext/resources/xml/ | If the naming rule based on the framework name
is not used for file name in this directory, then a subdirectory unique to
the particular application should be used. This directory should be used to store pre-defined XML instance documents, like examples of XML files complying to a specific XML schema. This directory must not be used to generate XML files. |
Nb of deviations / Nb of entities |
3-XML transform scripts repository | Physical grouping of XML transform scripts. | V5<FWName>/CNext/resources/xsl/ | If the naming rule based on the framework name is not used for file name in this directory, then a subdirectory unique to the particular application should be used. | Nb of deviations / Nb of entities |
4 - WSDL declaration files repository | Physical grouping of WSDL declaration files. | V5<FWName>/CNext/resources/wsdl/ | If the naming rule based on the framework name is not used for file name in this directory, then a subdirectory unique to the particular application should be used. |
Examples of such directories:
CATMathematics/CNext/resources/xsd/ CATMathematics/CNext/resources/xml/ CATMathematics/CNext/resources/xsl/ CATMathematics/CNext/resources/wsdl/ |
Entity Name | Entity Nature | Directory Naming Rule | Notes | Metrics |
---|---|---|---|---|
5-XML Namespaces | Physical and logical grouping of XML Schemas, WSDL declarations, etc. in a naming structure. | http://dassaultsystemes.com/<fwkname>[/<suffix>] | <fwkname> is the name of the framework in
lowercase letters. The optional <suffix> is an extra name, a descriptive noun or noun phrase, in mixed case with the first letter of each word capitalized. A namespace is a logical identifier, used as an hint by the XML processor to locate actual resources. The URL notation recommended here helps to assign unique names to namespaces. The URL does not have to be an actual Internet URL: copy-pasting such an URL in an Internet browser is not likely to lead to actual pages. For a use by another company than Dassault Systèmes, the http://dassaultsystemes.com/
prefix must be replaced by another one, for example one reflecting the
author's company. |
Nb of deviations / Nb of entities |
For example, the following element declaration show the use of an XML schema namespace in a framework called CATMathematics, with the '/Matrices' suffix to group matrix-related type and element definitions.
<xsd:schema targetNamespace="http://dassaultsystemes.com/catmathematics/Matrices" xmlns="http://dassaultsystemes.com/catmathematics/Matrices" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> |
[Top]
One of the main purposes of the naming rules is to insure the uniqueness of the files. As regards the XML document files, uniqueness of XML instances, schemas, transform scripts, must be done at the framework scope.
Entity Name | Entity Nature | Entity and File Naming Rule | Notes | Metrics |
---|---|---|---|---|
6-XML Schema | Standard XML Schema declaration | <fwkname><Name>.xsd | The name should be a descriptive noun or noun phrase, in
mixed case with the first letter of each word capitalized. <fwkname> is the name of the framework in lowercase letters. |
Nb of deviations / Nb of entities |
Example:
Entity Name | Entity Nature | Entity and File Naming Rule | Notes | Metrics |
---|---|---|---|---|
7-XMLinstance document | Standard XML document | <fwkname><Name>.xml | The name should be a descriptive noun or noun phrase, in
mixed case with the first letter of each word capitalized. <fwkname> is the name of the framework in lowercase letters. |
Nb of deviations / Nb of entities |
Example:
Entity Name | Entity Nature | Entity and File Naming Rule | Notes | Metrics |
---|---|---|---|---|
8-XMLtransform script | Standard XML transform script | <fwkname><Name>.xsl | The name should be a descriptive noun or noun phrase, in
mixed case with the first letter of each word capitalized. <fwkname> is the name of the framework in lowercase letters. |
Nb of deviations / Nb of entities |
Example:
Entity Name | Entity Nature | Entity and File Naming Rule | Notes | Metrics |
---|---|---|---|---|
7-XMLinstance document | Standard XML document | <fwkname><Name>.xml | The name should be a descriptive noun or noun phrase, in
mixed case with the first letter of each word capitalized. <fwkname> is the name of the framework in lowercase letters. |
Nb of deviations / Nb of entities |
8-XMLtransform script | Standard XML transform script | <fwkname><Name>.xsl | The name should be a descriptive noun or noun phrase, in
mixed case with the first letter of each word capitalized. <fwkname> is the name of the framework in lowercase letters. |
Nb of deviations / Nb of entities |
9- Web Services messages and portTypes declarations | Standard WSDL declaration file | <fwkname><Name>Declarations.wsdl | The name should be a descriptive noun or noun phrase, in
mixed case with the first letter of each word capitalized except for the
first letter (to keep elements named by a simple noon in lower case). WSDL declaration files must import XML schemas declaration files they depend on. <fwkname> is the name of the framework in lowercase letters. |
Nb of deviations / Nb of entities |
10- Web Services bindings and services declarations | Standard WSDL service file | <fwkname><Name>Services.wsdl | The name should be a descriptive noun or noun phrase, in
mixed case with the first letter of each word capitalized except for the
first letter (to keep elements named by a simple noon in lower case). WSDL services files must import WSDL declaration files they depend on. <fwkname> is the name of the framework in lowercase letters. |
Nb of deviations / Nb of entities |
[Top]
[1] | CAA V5 Naming Rules |
[2] | Trigrams for Frameworks |
[3] | CAA V5 XML Coding Rules |
[Top] |
Version: 1.0 [Sep 2001] | Document created |
[Top] |
Copyright © 2001, Dassault Systèmes. All rights reserved.