This complexType can be used to represent any text. In the
element content contains the multilingualism.
<xs:complexType name="textType">
<xs:sequence>
<xs:element name="content" type="dcc:stringWithLangType" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="optional"/>
</xs:complexType>
See the list of abbreviations here
Element Element type |
Use | Description |
---|---|---|
dcc:content | [O] | The element is used to enter any text. The attribute "lang" is implemented for multilingualism via the data type. |
Attribute Attribute type |
Use | Description |
---|---|---|
xs:ID xs:ID |
[O] | This standard dataType of XML is used to represent a unique ID. It is used to uniquely identify the object in the DCC. The data type xs:ID is deliberately used here because it enables validation without any add-ons in various tools. |
The examples are excerpts from DCC's.
Here is a simple example without multilingualism:
<dcc:textBlock>
<dcc:content>This is an example of the element textBlock.</dcc:content>
</dcc:textBlock>
Example 1 in the multilingual variant:
<dcc:textBlock>
<dcc:content lang="en">This is an example of the textBlock element.</dcc:content>
<dcc:content lang="en">This is an example of the textBlock element.</dcc:content>
</dcc:textBlock>
The multilingualism of text input is not handled in this element but in the child element
content of type dcc:stringWithLangType.