Extensible 3D (X3D) encodings
Part 1: Extensible Markup Language (XML) encoding

7 Encoding of statements

--- X3D separator bar ---

cube 7.1  Introduction

7.1.1  Topics

This clause provides a detailed specification of the XML encoding for each structure statement defined in ISO/IEC 19775-1. The topics in this clause are listed in Table 7.1.

Table 7.1 — Topics in this clause

7.1 Introduction
  7.1.1 Topics
  7.1.2 XML encoding description

7.2 Statements
  7.2.1 EXPORT
  7.2.2 ExternProtoDeclare
  7.2.3 IMPORT
  7.2.4 IS
  7.2.5 ProtoBody
  7.2.6 ProtoDeclare
  7.2.7 ProtoInterface
  7.2.8 ROUTE
  7.2.9 Scene
  7.2.10 X3D
  7.2.11 component
  7.2.12 connect
  7.2.13 field
  7.2.14 fieldValue
  7.2.15 head
  7.2.16 meta
  7.2.17 unit

7.1.2  XML encoding description

This XML encoding is autogenerated using the XML Schema for the Extensible 3D (X3D) Graphics Specification tagset defined in Annex B Version 3. Schema.

Content models indicate the nodes or statements that can be contained by the given statement.

Notational conventions for this section are as follows.

  1. Each statement name is followed by a list of attributes (if any).
  2. Each attribute name is followed by the default value (if any) and type.
  3. After attributes, the content model (if any) is listed.
  4. Singleton tags or open/close tag pairs are used to complete each element, as appropriate.

NOTE 1  Type designations shown for each statement in this section are solely informational, and are not part of the valid XML encoding for an X3D scene.

Default attribute values and empty attributes are optional.

NOTE 2  <IS><connect/></IS> connections, which are only allowed inside a ProtoDeclare body, are defined prior to any contained nodes.

--- X3D separator bar ---

cube7.2  Statements

7.2.1  EXPORT

Statement, attributes, default values Type
<EXPORT  
AS="" 
localDEF=""  />
NMTOKEN 
IDREF 

--- X3D separator bar ---

7.2.2  ExternProtoDeclare

Statement, attributes, default values, content model Type
<ExternProtoDeclare  
appinfo="" 
documentation="" 
name="" 
url=' '  >
   <field />
</ExternProtoDeclare>
SFString 
SFString 
NMTOKEN 
MFString 

--- X3D separator bar ---

7.2.3  IMPORT

Statement, attributes, default values Type
<IMPORT  
AS="" 
importedDEF="" 
inlineDEF=""  />
ID 
NMTOKEN 
IDREF 

--- X3D separator bar ---

7.2.4  IS

Statement, attributes, default values, content model Type
<IS  
>
   <connect />
</IS>

--- X3D separator bar ---

7.2.5  ProtoBody

Statement, attributes, default values, content model Type
<ProtoBody  
>
   <!-- SceneGraphFragmentWithPrototypeDeclarationsContentModel -->
</ProtoBody>

--- X3D separator bar ---

7.2.6  ProtoDeclare

Statement, attributes, default values, content model Type
<ProtoDeclare  
appinfo="" 
documentation="" 
name=""  >
   <ProtoInterface />
   <ProtoBody />
</ProtoDeclare>
SFString 
SFString 
NMTOKEN 

--- X3D separator bar ---

7.2.7  ProtoInterface

Statement, attributes, default values, content model Type
<ProtoInterface  
>
   <field />
</ProtoInterface>

--- X3D separator bar ---

7.2.8  ROUTE

Statement, attributes, default values Type
<ROUTE  
fromField="" 
fromNode="" 
toField="" 
toNode=""  />
NMTOKEN 
IDREF 
NMTOKEN 
IDREF 

--- X3D separator bar ---

7.2.9  Scene

Statement, attributes, default values, content model Type
<Scene  
>
   <!-- ChildContentModelCore -->
   <!-- GroupingNodeChildContentModel -->
</Scene>

--- X3D separator bar ---

7.2.10  X3D

Statement, attributes, default values, content model Type
<X3D  
profile="" 
version=""  >
   <head />
   <Scene />
</X3D>
string 
string 

--- X3D separator bar ---

7.2.11  component

Statement, attributes, default values Type
<component  
level="" 
name=""  />
SFInt32 
string 

--- X3D separator bar ---

7.2.12  connect

Statement, attributes, default values Type
<connect  
nodeField="" 
protoField=""  />
NMTOKEN 
NMTOKEN 

--- X3D separator bar ---

7.2.13  field

Statement, attributes, default values, content model Type
<field  
accessType="" 
appinfo="" 
documentation="" 
name="" 
type="" 
value=""  >
   <!-- SceneGraphFragmentContentModel -->
</field>
string 
SFString 
SFString 
NMTOKEN 
string 
SFString 

--- X3D separator bar ---

7.2.14  fieldValue

Statement, attributes, default values, content model Type
<fieldValue  
name="" 
value=""  >
   <!-- SceneGraphFragmentContentModel -->
</fieldValue>
NMTOKEN 
SFString 

--- X3D separator bar ---

7.2.15  head

Statement, attributes, default values, content model Type
<head  
>
   <component />
   <unit />
   <meta />
</head>

--- X3D separator bar ---

7.2.16  meta

Statement, attributes, default values Type
<meta  
content="" 
dir="" 
http-equiv="" 
lang="" 
name="" 
scheme=""  />
SFString 
string 
SFString 
SFString 
SFString 
SFString 

--- X3D separator bar ---

7.2.17  unit

Statement, attributes, default values Type
<unit  
category="" 
conversionFactor="" 
name=""  />
SFString 
SFDouble 
NMTOKEN 

--- X3D separator bar ---