OASIS XML Localisation Interchange File Format (XLIFF) TC

 View Only

Re csprd01 comment 028 - Referencing in Modules and specifically

  • 1.  Re csprd01 comment 028 - Referencing in Modules and specifically

    Posted 07-03-2013 21:30
    Hi All, After looking closer at this, I really don’t think we need a complicated id/ref system everywhere. I have made proposals already for improving referencing in <gls:glossary>, <ctr:changeTrack>, and <res:resourceData> in separate mails:   ·         [xliff] RE: Call for dissent csprd01 comments 007, 008, and 027 - have internal/external option in resource data module AND csprd01 comment 028 referencing in modules ·         [xliff] Call for dissent: csprod01 comments 018, 024, 028, 036, 050 and F2F meeting - Extending the Glossary module ·         [xliff] Call for dissent: csprd01 comment 035, 037, and 056: changes to the Change Track module design   And PROPOSE IN THIS MAIL that we add the following to improve referencing in <mda:metadata> now that it has been removed from <segment> and <ignorable>   ·         Add an appliesTo attribute to <mda:metagroup> with the possible values of “source”, “target”, or “ignorable”.     For your reference only, below is an xliff 2.0 document that illustrates referencing if all of the above proposals are accepted. For convenience, elements aren’t necessarily in the order prescribed, or all attributes shown, and appliesTo=”source target” means appliesTo=”source” or appliesTo=”target”, for example.   <file>   <notes>     <note appliesTo=”source target”>…</note>                                                               <!-- Applies to all source or target segments contained in a file -->   </note>   <mda:metadata>     <metagroup appliesTo=”source target ignorable”>...</metagroup>                  <!--[Proposed here] Applies to all source or target or ignorable segments contained in a file -->   </mda:metadata>        <res:resourceData>     <res:resourceItem id=”r1”>…</res:resourceItem>                                                         <--[Proposed in separate mail] Referenced from specific units using resourceItemRef-->   </res:resourceData>   <val:validation>...</val:validation>                                                                                    <!-- Applies to all source or target segments contained in a file depending on rule logic -->   <ctr:changeTrack>     <revisons appliesTo="…" ref="…">...</revisions>                                                            <--[Proposed in separate mail] Applies to a specific sibling element, or its children, on a file level -->   </ctr:changeTack>                                                                                                                    <group>     <notes>       <note> appliesTo=”source target”>…</note>                                                           <!-- Applies to all source or target segments contained in a group -->     </note>     <mda:metadata>       <metagroup appliesTo=”source target ignorable”>...</metagroup>                <!--[Proposed here Applies to all source or target or ignorable segments contained in a group -->     </mda:metadata>          <val:validation>...</val:validation>                                                                                   <!-- Applies to all source or target segments contained in a group depending on rule logic -->     <ctr:changeTrack>       <revisons appliesTo="…" ref="…">...</revisions>                                                          <--[Proposed in separate mail] Applies to a specific sibling element, or its children, on a group level -->    </ctr:changeTack>     <unit id="1">       <segment>         <source>Hello <mrk id="1" type="comment" ref="#n1"><mrk id="1" type="term" ref="#g1">World</mrk></mrk>: <ph id=”1” dataRef=”d1” /></source>       </segment>      <notes>         <note id="n1" appliesTo="source target">...</note>              <!-- Applies to all source or target segments contained in a unit, unless referenced from a specific span of text using ref in <mrk> -->       </notes>       <gls:glossary>         <glossentry id="g1">...</glossentry>                                              <--[Proposed in separate mail] Applies to all target segments contained in a unit, unless referenced from a specific span of text using ref in <mrk> -->       </gls:glossary>       <originalData>         <data id=“d1”>%s</data>                                                                                                              <!-- Referenced from a specific inline tag using dataRef -->       </originalData>       <mtc:matches>         <xlf:source>…</xlf:source>                                                                                                           <!-- Applies to all source segments contained in a unit -->         <xlf:target>…</xlf:target>                                                                                                             <!-- Applies to all target segments contained in a unit -->       </mtc:matches>      <mda:metadata>       <metagroup appliesTo=”source target ignorable”>...</metagroup>                              <!--[Proposed here Applies to all source or target or ignorable segments contained in a unit -->       </mda:metadata>             <res:resourceData>         <res:resourceItem id=”1” resourceItemRef=”r1” />                                                               <--[Proposed in separate mail] Reference to a <res:resourceItem> located at <file> level-->        <res:resourceItem id=”2”>          <res:source>…</res:source>                                                                                                        <!-- Applies to all source segments contained in a unit -->          <res:target>…</res:target>                                                                                                          <!-- Applies to all target segments contained in a unit        </res:resourceItem id=”2”>       </res:resourceData>       <val:validation>...</val:validation>                                                                                                <!-- Applies to all source or target segments contained in a group depending on rule logic -->       <ctr:changeTrack appliesTo="*" ref="*">...</ctr:changeTack>                                               <!-- Applies to all source or target segments, or a specific sibling element, or its children, on a unit level --> </unit>   Thanks, Ryan