Template Builder User Guide
Version 3.1 | Published June 26, 2024 ©
Overview of Media Types
The following media types are available for single value fields in Template Builder (click the links for W3C definitions):
Type |
|
Media Type (XSD type) |
Content of field/value element |
Multi-line text |
|
text/plain (string) |
text |
Single-line text |
|
text/plain (normalizedString) |
text |
Formatted text |
|
application/vnd.vizrt.richtext+xml |
XML (accepts plain text if unformatted) |
Boolean |
|
text/plain (boolean) |
text (true or false) |
Integer |
|
text/plain (integer) |
text (for example, -42) |
Decimal |
|
text/plain (decimal) |
text using period as decimal point (for example, 123.456) |
Date and time |
|
text/plain (dateTime) |
text (for example, 2021-04-06T13:35:00Z) |
Date |
|
text/plain (date) |
text (for example, 2021-04-14) |
Two numbers (duplet) |
|
application/vnd.vizrt.duplet |
text containing two decimal numbers separated by a space (for example, 0.6 0.8) |
Three numbers (triplet) |
|
application/vnd.vizrt.triplet |
text containing three decimal numbers separated by spaces (for example, 3 4.5 5) |
Image |
|
application/atom+xml; |
The image path on GH (for example, IMAGE*images/flags/denmark) |
Geometry |
|
application/vnd.vizrt.viz.geom |
The geometry path on GH (for example, GEOM*objects/my-geom) |
Material |
|
application/vnd.vizrt.viz.material |
The material path on GH (for example, MATERIAL*objects/my-material) |
Map |
|
application/vnd.vizrt.curious.map |
Proprietary format |
Color |
|
text/vnd.vizrt.color |
text (for example, #140E7E or rgba(255, 0, 0, 1)). |