Definition Type: Element
Name: trans-unit
Namespace: urn:oasis:names:tc:xliff:document:1.2
Containing Schema: xliff-core-1.2-strict.xsd
Abstract
Collapse XSD Schema Diagram:
Drilldown into alt-trans in schema xliff-core-1_2-strict_xsd Drilldown into note in schema xliff-core-1_2-strict_xsd Drilldown into count-group in schema xliff-core-1_2-strict_xsd Drilldown into context-group in schema xliff-core-1_2-strict_xsd Drilldown into target in schema xliff-core-1_2-strict_xsd Drilldown into seg-source in schema xliff-core-1_2-strict_xsd Drilldown into source in schema xliff-core-1_2-strict_xsd Drilldown into merged-trans in schema xliff-core-1_2-strict_xsd Drilldown into charclass in schema xliff-core-1_2-strict_xsd Drilldown into minbytes in schema xliff-core-1_2-strict_xsd Drilldown into maxbytes in schema xliff-core-1_2-strict_xsd Drilldown into minheight in schema xliff-core-1_2-strict_xsd Drilldown into maxheight in schema xliff-core-1_2-strict_xsd Drilldown into minwidth in schema xliff-core-1_2-strict_xsd Drilldown into maxwidth in schema xliff-core-1_2-strict_xsd Drilldown into size-unit in schema xliff-core-1_2-strict_xsd Drilldown into exstyle in schema xliff-core-1_2-strict_xsd Drilldown into style in schema xliff-core-1_2-strict_xsd Drilldown into css-style in schema xliff-core-1_2-strict_xsd Drilldown into font in schema xliff-core-1_2-strict_xsd Drilldown into coord in schema xliff-core-1_2-strict_xsd Drilldown into menu-name in schema xliff-core-1_2-strict_xsd Drilldown into menu-option in schema xliff-core-1_2-strict_xsd Drilldown into menu in schema xliff-core-1_2-strict_xsd Drilldown into help-id in schema xliff-core-1_2-strict_xsd Drilldown into extype in schema xliff-core-1_2-strict_xsd Drilldown into extradata in schema xliff-core-1_2-strict_xsd Drilldown into resname in schema xliff-core-1_2-strict_xsd Drilldown into restype in schema xliff-core-1_2-strict_xsd Drilldown into phase-name in schema xliff-core-1_2-strict_xsd Drilldown into datatype in schema xliff-core-1_2-strict_xsd Drilldown into space in schema xml_xsd Drilldown into reformat in schema xliff-core-1_2-strict_xsd Drilldown into translate in schema xliff-core-1_2-strict_xsd Drilldown into approved in schema xliff-core-1_2-strict_xsd Drilldown into id in schema xliff-core-1_2-strict_xsdXSD Diagram of trans-unit in schema xliff-core-1_2-strict_xsd (OASIS XML Localisation Interchange File Format (XLIFF) TC)
Collapse XSD Schema Code:
<xsd:element name="trans-unit">
    <xsd:complexType>
        <xsd:sequence>
            <xsd:element ref="xlf:source" />
            <xsd:element minOccurs="0" ref="xlf:seg-source" />
            <xsd:element minOccurs="0" ref="xlf:target" />
            <xsd:choice maxOccurs="unbounded" minOccurs="0">
                <xsd:element ref="xlf:context-group" />
                <xsd:element ref="xlf:count-group" />
                <xsd:element ref="xlf:note" />
                <xsd:element ref="xlf:alt-trans" />
            </xsd:choice>
            <xsd:any maxOccurs="unbounded" minOccurs="0" namespace="##other" processContents="strict" />
        </xsd:sequence>
        <xsd:attribute name="id" type="xsd:string" use="required" />
        <xsd:attribute name="approved" type="xlf:AttrType_YesNo" use="optional" />
        <xsd:attribute default="yes" name="translate" type="xlf:AttrType_YesNo" use="optional" />
        <xsd:attribute default="yes" name="reformat" type="xlf:AttrType_reformat" use="optional" />
        <xsd:attribute default="default" ref="xml:space" use="optional" />
        <xsd:attribute name="datatype" type="xlf:AttrType_datatype" use="optional" />
        <xsd:attribute name="phase-name" type="xsd:string" use="optional" />
        <xsd:attribute name="restype" type="xlf:AttrType_restype" use="optional" />
        <xsd:attribute name="resname" type="xsd:string" use="optional" />
        <xsd:attribute name="extradata" type="xsd:string" use="optional" />
        <xsd:attribute name="extype" type="xsd:string" use="optional" />
        <xsd:attribute name="help-id" type="xsd:NMTOKEN" use="optional" />
        <xsd:attribute name="menu" type="xsd:string" use="optional" />
        <xsd:attribute name="menu-option" type="xsd:string" use="optional" />
        <xsd:attribute name="menu-name" type="xsd:string" use="optional" />
        <xsd:attribute name="coord" type="xlf:AttrType_Coordinates" use="optional" />
        <xsd:attribute name="font" type="xsd:string" use="optional" />
        <xsd:attribute name="css-style" type="xsd:string" use="optional" />
        <xsd:attribute name="style" type="xsd:NMTOKEN" use="optional" />
        <xsd:attribute name="exstyle" type="xsd:NMTOKEN" use="optional" />
        <xsd:attribute default="pixel" name="size-unit" type="xlf:AttrType_size-unit" use="optional" />
        <xsd:attribute name="maxwidth" type="xsd:NMTOKEN" use="optional" />
        <xsd:attribute name="minwidth" type="xsd:NMTOKEN" use="optional" />
        <xsd:attribute name="maxheight" type="xsd:NMTOKEN" use="optional" />
        <xsd:attribute name="minheight" type="xsd:NMTOKEN" use="optional" />
        <xsd:attribute name="maxbytes" type="xsd:NMTOKEN" use="optional" />
        <xsd:attribute name="minbytes" type="xsd:NMTOKEN" use="optional" />
        <xsd:attribute name="charclass" type="xsd:string" use="optional" />
        <xsd:attribute default="yes" name="merged-trans" type="xlf:AttrType_YesNo" use="optional" />
        <xsd:anyAttribute namespace="##other" processContents="strict" />
    </xsd:complexType>
    <xsd:unique name="U_tu_segsrc_mid">
        <xsd:selector xpath="./xlf:seg-source/xlf:mrk" />
        <xsd:field xpath="@mid" />
    </xsd:unique>
    <xsd:keyref name="KR_tu_segsrc_mid" refer="xlf:U_tu_segsrc_mid">
        <xsd:selector xpath="./xlf:target/xlf:mrk|./xlf:alt-trans" />
        <xsd:field xpath="@mid" />
    </xsd:keyref>
</xsd:element>
Collapse Child Elements:
Name Type Min Occurs Max Occurs
source xlf:source (1) (1)
seg-source xlf:seg-source 0 (1)
target xlf:target 0 (1)
context-group xlf:context-group (1) (1)
count-group xlf:count-group (1) (1)
note xlf:note (1) (1)
alt-trans xlf:alt-trans (1) (1)
<xs:any> Allowed namespace: '##other' 0 unbounded
Collapse Child Attributes:
Name Type Default Value Use
id xlf:id Required
approved xlf:approved Optional
translate xlf:translate yes Optional
reformat xlf:reformat yes Optional
space nsA:space Optional
datatype xlf:datatype Optional
phase-name xlf:phase-name Optional
restype xlf:restype Optional
resname xlf:resname Optional
extradata xlf:extradata Optional
extype xlf:extype Optional
help-id xlf:help-id Optional
menu xlf:menu Optional
menu-option xlf:menu-option Optional
menu-name xlf:menu-name Optional
coord xlf:coord Optional
font xlf:font Optional
css-style xlf:css-style Optional
style xlf:style Optional
exstyle xlf:exstyle Optional
size-unit xlf:size-unit pixel Optional
maxwidth xlf:maxwidth Optional
minwidth xlf:minwidth Optional
maxheight xlf:maxheight Optional
minheight xlf:minheight Optional
maxbytes xlf:maxbytes Optional
minbytes xlf:minbytes Optional
charclass xlf:charclass Optional
merged-trans xlf:merged-trans yes Optional
<anyAttribute> Allowed namespace: '##other'