RC-WinTrans Instruction Attributes

 

RC-WinTrans instruction attributes are used in an XML parser (XSL file) to designate an XML element or attribute as translatable.  Instruction attributes are added to an XML element to provide RC-WinTrans with instructions on what to do during processing.

 

See also:  "XML Parser."

 

 

Primary Instruction Attributes

Primary instruction attributes specify that an XML element or attribute is translatable and/or indicate a group for structuring data.

 

In principle, only two instruction attributes are required to specify translatable items in an XML file. These are the "rwt:elementTU" attribute used to specify that an XML element is translatable and the "rwt:attributeTU <attrName>" attribute used to specify that an attribute of an XML element is translatable.  A third attribute, "rwt:group," is used to specify a parent group for the child elements that follow it.

 

ATTRIBUTE

DESCRIPTION

rwt:elementTU

Specifies that an XML element (the value text) is translatable.

Details and example...

rwt:attributeTU_<attrName>

Specifies that an XML attribute is translatable.

Details and example...

rwt:group

Creates a group for the XML element in RC-WinTrans' data structure.

Details and example...

 

 

Secondary Instruction Attributes

 

ATTRIBUTE

DESCRIPTION

rwt:id

Adds an attribute ID to the translation unit created for an XML element or attribute.

A given ID is not used to identify an element.  An ID's value can be accessed via an RC-winTrans "TransUnit" object.

Attribute value: any text.

rwt:elementTU-type

Specifies the resource type of the element's text.  The default type is "string," indicating a (standard) text.

The resources types (that are known by RC-WinTrans) are defined in the XML standard "XLIFF."

Attribute value: the resource type (default: "string").

rwt:attributeTU-type_<attrName>

Specifies the resource type of the attribute's text.  The default type is "string," indicating a (standard) text.

See also "rwt:elementTU-type" attribute, above.

Attribute value: the resource type (default: "string").

rwt:elementTU-note

Adds a note to the translation unit created for the element (with the attribute "rwt:elementTU").

Attribute value: any text to be used as a note or description.

rwt:attributeTU-note_<attrName>

Adds a note to the translation unit created for the attribute (with the attribute "rwt:attribute_<attrName>").

Attribute value: any text to be used as a note or description.

 

^ Top ^