Definition Type: Element
Name: file
Namespace: urn:oasis:names:tc:xliff:document:1.2
Containing Schema: xliff-core-1.2-strict.xsd
Abstract
Collapse XSD Schema Diagram:
Drilldown into body in schema xliff-core-1_2-strict_xsd Drilldown into header in schema xliff-core-1_2-strict_xsd Drilldown into build-num in schema xliff-core-1_2-strict_xsd Drilldown into product-version in schema xliff-core-1_2-strict_xsd Drilldown into product-name in schema xliff-core-1_2-strict_xsd Drilldown into target-language in schema xliff-core-1_2-strict_xsd Drilldown into category in schema xliff-core-1_2-strict_xsd Drilldown into space in schema xml_xsd Drilldown into date in schema xliff-core-1_2-strict_xsd Drilldown into tool-id in schema xliff-core-1_2-strict_xsd Drilldown into datatype in schema xliff-core-1_2-strict_xsd Drilldown into source-language in schema xliff-core-1_2-strict_xsd Drilldown into original in schema xliff-core-1_2-strict_xsdXSD Diagram of file in schema xliff-core-1_2-strict_xsd (OASIS XML Localisation Interchange File Format (XLIFF) TC)
Collapse XSD Schema Code:
<xsd:element name="file">
    <xsd:complexType>
        <xsd:sequence>
            <xsd:element minOccurs="0" ref="xlf:header" />
            <xsd:element ref="xlf:body" />
        </xsd:sequence>
        <xsd:attribute name="original" type="xsd:string" use="required" />
        <xsd:attribute name="source-language" type="xsd:language" use="required" />
        <xsd:attribute name="datatype" type="xlf:AttrType_datatype" use="required" />
        <xsd:attribute name="tool-id" type="xsd:string" use="optional" />
        <xsd:attribute name="date" type="xsd:dateTime" use="optional" />
        <xsd:attribute ref="xml:space" use="optional" />
        <xsd:attribute name="category" type="xsd:string" use="optional" />
        <xsd:attribute name="target-language" type="xsd:language" use="optional" />
        <xsd:attribute name="product-name" type="xsd:string" use="optional" />
        <xsd:attribute name="product-version" type="xsd:string" use="optional" />
        <xsd:attribute name="build-num" type="xsd:string" use="optional" />
        <xsd:anyAttribute namespace="##other" processContents="strict" />
    </xsd:complexType>
    <xsd:unique name="U_group_id">
        <xsd:selector xpath=".//xlf:group" />
        <xsd:field xpath="@id" />
    </xsd:unique>
    <xsd:key name="K_unit_id">
        <xsd:selector xpath=".//xlf:trans-unit|.//xlf:bin-unit" />
        <xsd:field xpath="@id" />
    </xsd:key>
    <xsd:keyref name="KR_unit_id" refer="xlf:K_unit_id">
        <xsd:selector xpath=".//bpt|.//ept|.//it|.//ph|.//g|.//x|.//bx|.//ex|.//sub" />
        <xsd:field xpath="@xid" />
    </xsd:keyref>
    <xsd:key name="K_tool-id">
        <xsd:selector xpath="xlf:header/xlf:tool" />
        <xsd:field xpath="@tool-id" />
    </xsd:key>
    <xsd:keyref name="KR_file_tool-id" refer="xlf:K_tool-id">
        <xsd:selector xpath="." />
        <xsd:field xpath="@tool-id" />
    </xsd:keyref>
    <xsd:keyref name="KR_phase_tool-id" refer="xlf:K_tool-id">
        <xsd:selector xpath="xlf:header/xlf:phase-group/xlf:phase" />
        <xsd:field xpath="@tool-id" />
    </xsd:keyref>
    <xsd:keyref name="KR_alt-trans_tool-id" refer="xlf:K_tool-id">
        <xsd:selector xpath=".//xlf:trans-unit/xlf:alt-trans" />
        <xsd:field xpath="@tool-id" />
    </xsd:keyref>
    <xsd:key name="K_count-group_name">
        <xsd:selector xpath=".//xlf:count-group" />
        <xsd:field xpath="@name" />
    </xsd:key>
    <xsd:unique name="U_context-group_name">
        <xsd:selector xpath=".//xlf:context-group" />
        <xsd:field xpath="@name" />
    </xsd:unique>
    <xsd:key name="K_phase-name">
        <xsd:selector xpath="xlf:header/xlf:phase-group/xlf:phase" />
        <xsd:field xpath="@phase-name" />
    </xsd:key>
    <xsd:keyref name="KR_phase-name" refer="xlf:K_phase-name">
        <xsd:selector xpath=".//xlf:count|.//xlf:trans-unit|.//xlf:target|.//bin-unit|.//bin-target" />
        <xsd:field xpath="@phase-name" />
    </xsd:keyref>
    <xsd:unique name="U_uid">
        <xsd:selector xpath=".//xlf:external-file" />
        <xsd:field xpath="@uid" />
    </xsd:unique>
</xsd:element>
Collapse Child Elements:
Name Type Min Occurs Max Occurs
header xlf:header 0 (1)
body xlf:body (1) (1)
Collapse Child Attributes:
Name Type Default Value Use
original xlf:original Required
source-language xlf:source-language Required
datatype xlf:datatype Required
tool-id xlf:tool-id Optional
date xlf:date Optional
space nsA:space Optional
category xlf:category Optional
target-language xlf:target-language Optional
product-name xlf:product-name Optional
product-version xlf:product-version Optional
build-num xlf:build-num Optional
<anyAttribute> Allowed namespace: '##other'