-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbpmn-i18n.xsd
90 lines (83 loc) · 3.78 KB
/
bpmn-i18n.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema
xmlns="http://www.omg.org/spec/BPMN/non-normative/extensions/i18n/1.0"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
targetNamespace="http://www.omg.org/spec/BPMN/non-normative/extensions/i18n/1.0"
xmlns:i18n="http://www.omg.org/spec/BPMN/non-normative/extensions/i18n/1.0"
xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:cmmn="http://www.omg.org/spec/CMMN/20151109/MODEL"
xmlns:dmn="http://www.omg.org/spec/DMN/20151101/dmn.xsd">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/xml.xsd"/>
<xsd:annotation>
<xsd:documentation>
This XML schema defines an extension element for BPMN, CMMN and DMN
to interchange localized names, documentation and other attributes.
</xsd:documentation>
</xsd:annotation>
<xsd:element name="translation" type="tTranslation">
<xsd:annotation>
<xsd:documentation>
<![CDATA[
An extension element that can be used on any BPMN, CMMN or DMN element
that allows extensions.
i18n:translation allows to interchange localized attributes of a BPMN element using the xml:lang attribute to declare the value's language.
The xml:lang attribute should also be declared on the bpmn:definitions root element to declare the default language, i.e. the language of all standard attributes.
Example:
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" ... xml:lang="en">
...
<bpmn:startEvent id="StartEvent_1" name="Start Event" isInterrupting="true">
<bpmn:documentation>A start event.</bpmn:documentation>
<bpmn:extensionElements>
<i18n:translation xml:lang="de">Startereignis</i18n:translation>
<i18n:translation target="@isInterrupting" xml:lang="de">ja</i18n:translation>
<i18n:translation target="documentation" xml:lang="de">Ein Startereignis.</i18n:translation>
</bpmn:extensionElements>
</bpmn:startEvent>
...
]]>
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="tTranslation" mixed="true">
<xsd:sequence>
<xsd:any namespace="##any" processContents="lax" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:ID" use="optional">
<xsd:annotation>
<xsd:documentation>
Optional. Specifies a unique ID for the element.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="target" type="xsd:string" use="optional" default="@name">
<xsd:annotation>
<xsd:documentation>
Optional. Specifies a which attribute or child element is translated.
It MUST be an XPath expression relative to the parent element that
contains this extension element.
Default is '@name' i.e. the name attribute of the parent element.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="textFormat" type="xsd:string" use="optional" default="text/plain">
<xsd:annotation>
<xsd:documentation>
Optional. Specifies the format of the translation contents.
It MUST follow the MIME Media Type format.
Default is 'text/plain'.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute ref="xml:lang" use="optional">
<xsd:annotation>
<xsd:documentation>
Optional. Specifies the language used in the translation contents.
It MUST be a ISO 639 natural language code.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
</xsd:schema>