[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Proposal For Change Tracking in XLIFF 2.1
All Please find our proposal for modifications to Change Tracking for XLIFF 2.1. Attached are modified *.xsd, a sample *.xlf with serialzed changes and proposed changes to the specification text. We forked the Okapi library and our Pull Request can be viewed here: https://bitbucket.org/okapiframework/xliff-toolkit/pull-requests/1/chane-trackin-module-implementation/diff Phil Phil Ritchie | Chief Technology Officer | VistaTEC VistaTEC House, 700 South Circular Road, Kilmainham, Dublin 8, Ireland. Tel: +353 1 416 8000 | Direct: +353 1 416 8024 Email: Phil.Ritchie@vistatec.com | www.vistatec.com | ISO 9001 | EN 15038 Expert Leadership in Global Content Solutions VistaTEC Ltd. Registered in Ireland 268483. Registered Office, VistaTEC House, 700, South Circular Road, Kilmainham. Dublin 8. Ireland. The information contained in this message, including any accompanying documents, is confidential and is intended only for the addressee(s). The unauthorized use, disclosure, copying, or alteration of this message is strictly forbidden. If you have received this message in error please notify the sender immediately. |
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns:ctr="urn:oasis:names:tc:xliff:changetracking:2.0" xmlns:xlf="urn:oasis:names:tc:xliff:document:2.0" targetNamespace="urn:oasis:names:tc:xliff:changetracking:2.0"> <!-- Import --> <xs:import namespace="urn:oasis:names:tc:xliff:document:2.0" schemaLocation="../xliff_core_2.0.xsd"/> <!-- Elements for change tracking --> <xs:element name="changeTrack"> <xs:complexType> <xs:sequence> <xs:element minOccurs="1" maxOccurs="unbounded" ref="ctr:revisions"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="revisions"> <xs:complexType> <xs:sequence> <xs:element minOccurs="1" maxOccurs="unbounded" ref="ctr:revision"/> </xs:sequence> <xs:attribute name="appliesTo" use="required" type="xs:NMTOKEN"/> <xs:attribute name="ref" use="optional" type="xs:NMTOKEN"/> <xs:attribute name="currentVersion" use="optional" type="xs:NMTOKEN"/> <xs:anyAttribute namespace="##other" processContents="lax"/> </xs:complexType> </xs:element> <xs:element name="revision"> <xs:complexType> <xs:sequence> <xs:element minOccurs="1" maxOccurs="unbounded" ref="ctr:item"/> </xs:sequence> <xs:attribute name="author" use="optional"/> <xs:attribute name="datetime" use="optional"/> <xs:attribute name="version" use="optional" type="xs:NMTOKEN"/> <xs:anyAttribute namespace="##other" processContents="lax"/> </xs:complexType> </xs:element> <xs:element name="item"> <xs:complexType mixed="true"> <!-- Added the following line for allowing inline annotations in item element --> <xs:group ref="xlf:inline" minOccurs="0" maxOccurs="unbounded"/> <xs:attribute name="property" use="required"/> <xs:anyAttribute namespace="##other" processContents="lax"/> </xs:complexType> </xs:element> </xs:schema>
item Container for a specific revision associated with a sibling element, or a child of a sibling element, to the change track module within the scope of the enclosing element. Contains: - Text - Zero, one or more <cp> elements - Zero, one or more <ph> elements - Zero, one or more <pc> elements - Zero, one or more <sc> elements - Zero, one or more <ec> elements - Zero, one or more <mrk> elements - Zero, one or more <sm> elements - Zero, one or more <em> elements Constraints: - It can contain any of <cp>, <ph>, <pc>, <sc>, <ec>, <mrk, <sm>, <em> elements if and only if the following are true: - The value of the attribute "appliesTo" of the parent <revisions> element is either "source" or "target". - The "property" attribute of the <item> element is set to "content" If the above conditions are not met, then only plain text is allowed. Attributes: - property, REQUIRED - attributes from other namespaces, OPTIONAL
Attachment:
ctrsample.xlf
Description: ctrsample.xlf
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]