OASIS XML Localisation Interchange File Format (XLIFF) TC

  • 1.  Fwd: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules

    Posted 05-23-2015 14:48




    Hi Yves! 
    Actually NVDL handles modules. Extension points are defined and checked by the XSD schema, which is the first step of NVDL validation. Then NVDL applies appropriate Schematron rules to each module if they exist.
    So, in terms of "allowing" or "forbidding" extensions, XSD is in charge of this restrictions.

    ----- Forwarded message -----
    From: "Soroush.Saadatfar" <Soroush.Saadatfar@ul.ie>
    To: "Yves Savourel" <ysavourel@enlaso.com>
    Subject: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules
    Date: Sat, May 23, 2015 3:33 PM







    ----- Reply message -----
    From: "Yves Savourel" <ysavourel@enlaso.com>
    To: "XLIFF Main List" <xliff@lists.oasis-open.org>
    Subject: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules
    Date: Sat, May 23, 2015 2:25 PM




    Hi Soroush,

    What does the Schematron validation tool does about modules in the modules' extension points?
    And in the core's ones?

    Thanks,
    -ys





  • 2.  RE: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules

    Posted 05-23-2015 17:27
    Thanks for the explanation Soroush.   So is that means that if I put an element of the res module in the extension point of <group> it will be seen as valid? (the schema says ‘##other’ so it should accept it) Or invalid (the specification does not list <res:resourceData> for group)?   -ys   From: xliff@lists.oasis-open.org [mailto:xliff@lists.oasis-open.org] On Behalf Of Soroush.Saadatfar Sent: Saturday, May 23, 2015 8:48 AM To: xliff@lists.oasis-open.org Subject: Fwd: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules   Hi Yves!  Actually NVDL handles modules. Extension points are defined and checked by the XSD schema, which is the first step of NVDL validation. Then NVDL applies appropriate Schematron rules to each module if they exist. So, in terms of "allowing" or "forbidding" extensions, XSD is in charge of this restrictions.   ----- Forwarded message ----- From: "Soroush.Saadatfar" < Soroush.Saadatfar@ul.ie > To: "Yves Savourel" < ysavourel@enlaso.com > Subject: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules Date: Sat, May 23, 2015 3:33 PM     ----- Reply message ----- From: "Yves Savourel" < ysavourel@enlaso.com > To: "XLIFF Main List" < xliff@lists.oasis-open.org > Subject: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules Date: Sat, May 23, 2015 2:25 PM   Hi Soroush, What does the Schematron validation tool does about modules in the modules' extension points? And in the core's ones? Thanks, -ys


  • 3.  Re: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules

    Posted 05-23-2015 18:34
    As I did not contribute to XSD,  I don't know how the schema behaves. So what is the valid scenario in this case you mentioned? I can then check the schema and add this part to NVDL if missing.  Restrictions for the extension points are regulated only by XSD schema so far. Soroush. ----- Reply message ----- From: "Yves Savourel" <ysavourel@enlaso.com> To: "XLIFF Main List" <xliff@lists.oasis-open.org> Subject: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules Date: Sat, May 23, 2015 6:27 PM Thanks for the explanation Soroush.   So is that means that if I put an element of the res module in the extension point of <group> it will be seen as valid? (the schema says ‘##other’ so it should accept it) Or invalid (the specification does not list <res:resourceData> for group)?   -ys   From: xliff@lists.oasis-open.org [mailto:xliff@lists.oasis-open.org] On Behalf Of Soroush.Saadatfar Sent: Saturday, May 23, 2015 8:48 AM To: xliff@lists.oasis-open.org Subject: Fwd: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules   Hi Yves!  Actually NVDL handles modules. Extension points are defined and checked by the XSD schema, which is the first step of NVDL validation. Then NVDL applies appropriate Schematron rules to each module if they exist. So, in terms of "allowing" or "forbidding" extensions, XSD is in charge of this restrictions.   ----- Forwarded message ----- From: "Soroush.Saadatfar" < Soroush.Saadatfar@ul.ie > To: "Yves Savourel" < ysavourel@enlaso.com > Subject: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules Date: Sat, May 23, 2015 3:33 PM     ----- Reply message ----- From: "Yves Savourel" < ysavourel@enlaso.com > To: "XLIFF Main List" < xliff@lists.oasis-open.org > Subject: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules Date: Sat, May 23, 2015 2:25 PM   Hi Soroush, What does the Schematron validation tool does about modules in the modules' extension points? And in the core's ones? Thanks, -ys


  • 4.  Re: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules

    Posted 05-23-2015 21:10
    Yves, Ryan, Soroush, all saying that the modules are allowed explicitly means that they are protected as *modules* at the given extension points where they are intended. It does NOT mean that you cannot reuse module *namespaces* as *extensions* where they were not explicitly allowed. We had this misunderstanding before, you cannot conclude that something is forbidden if it's not explicitly allowed.  Any namespaces BUT XLIFF core (xlf) are allowed by the *other* wildcard but only explicitly allowed modules are considered modules.  Module namespaces that are not explicitly listed behave simply as extensions. The only practical distinction between module and extension being that modules MUST NOT be deleted and extensions SHOULD NOT be deleted. I hope this clarifies everything dF Dr. David Filip ======================= OASIS XLIFF TC Secretary, Editor, and Liaison Officer  LRC CNGL CSIS University of Limerick, Ireland telephone: +353-6120-2781 cellphone: +353-86-0222-158 facsimile: +353-6120-2734 http://www.cngl.ie/profile/?i=452 mailto:  david.filip@ul.ie On Sat, May 23, 2015 at 7:33 PM, Soroush.Saadatfar < Soroush.Saadatfar@ul.ie > wrote: As I did not contribute to XSD,  I don't know how the schema behaves. So what is the valid scenario in this case you mentioned? I can then check the schema and add this part to NVDL if missing.  Restrictions for the extension points are regulated only by XSD schema so far. Soroush. ----- Reply message ----- From: "Yves Savourel" < ysavourel@enlaso.com > To: "XLIFF Main List" < xliff@lists.oasis-open.org > Subject: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules Date: Sat, May 23, 2015 6:27 PM Thanks for the explanation Soroush.   So is that means that if I put an element of the res module in the extension point of <group> it will be seen as valid? (the schema says ‘##other’ so it should accept it) Or invalid (the specification does not list <res:resourceData> for group)?   -ys   From: xliff@lists.oasis-open.org [mailto: xliff@lists.oasis-open.org ] On Behalf Of Soroush.Saadatfar Sent: Saturday, May 23, 2015 8:48 AM To: xliff@lists.oasis-open.org Subject: Fwd: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules   Hi Yves!  Actually NVDL handles modules. Extension points are defined and checked by the XSD schema, which is the first step of NVDL validation. Then NVDL applies appropriate Schematron rules to each module if they exist. So, in terms of "allowing" or "forbidding" extensions, XSD is in charge of this restrictions.   ----- Forwarded message ----- From: "Soroush.Saadatfar" < Soroush.Saadatfar@ul.ie > To: "Yves Savourel" < ysavourel@enlaso.com > Subject: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules Date: Sat, May 23, 2015 3:33 PM     ----- Reply message ----- From: "Yves Savourel" < ysavourel@enlaso.com > To: "XLIFF Main List" < xliff@lists.oasis-open.org > Subject: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules Date: Sat, May 23, 2015 2:25 PM   Hi Soroush, What does the Schematron validation tool does about modules in the modules' extension points? And in the core's ones? Thanks, -ys


  • 5.  RE: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules

    Posted 05-23-2015 23:00
    Thanks, Yves, David, and Soroush. So, to check my understanding: Any element from another namespace is allowed at the extension points indicated by *other* and those elements are only considered modules (PR MUST NOT be removed) if they are explicitly called out as they are in sections 4.2.2.2, 4.2.2.4, and 4.2.2.5 in the core spec. This also means that the only one considered a module inside a module is mda in mtc. All other instances are extensions. Is that all correct? If that is correct, and the only true distinction is in PR, then I think both schema validation and OM should to treat modules and extensions the same and it is up to the Agent consuming them to enforce the restriction. Thanks, Ryan From: Dr. David Filip Sent: ?5/?23/?2015 2:10 PM To: Soroush.Saadatfar Cc: xliff@lists.oasis-open.org Subject: Re: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules Yves, Ryan, Soroush, all saying that the modules are allowed explicitly means that they are protected as *modules* at the given extension points where they are intended. It does NOT mean that you cannot reuse module *namespaces* as *extensions* where they were not explicitly allowed. We had this misunderstanding before, you cannot conclude that something is forbidden if it's not explicitly allowed.  Any namespaces BUT XLIFF core (xlf) are allowed by the *other* wildcard but only explicitly allowed modules are considered modules.  Module namespaces that are not explicitly listed behave simply as extensions. The only practical distinction between module and extension being that modules MUST NOT be deleted and extensions SHOULD NOT be deleted. I hope this clarifies everything dF Dr. David Filip ======================= OASIS XLIFF TC Secretary, Editor, and Liaison Officer  LRC CNGL CSIS University of Limerick, Ireland telephone: +353-6120-2781 cellphone: +353-86-0222-158 facsimile: +353-6120-2734 http://www.cngl.ie/profile/?i=452 mailto:  david.filip@ul.ie On Sat, May 23, 2015 at 7:33 PM, Soroush.Saadatfar < Soroush.Saadatfar@ul.ie > wrote: As I did not contribute to XSD,  I don't know how the schema behaves. So what is the valid scenario in this case you mentioned? I can then check the schema and add this part to NVDL if missing.  Restrictions for the extension points are regulated only by XSD schema so far. Soroush. ----- Reply message ----- From: "Yves Savourel" < ysavourel@enlaso.com > To: "XLIFF Main List" < xliff@lists.oasis-open.org > Subject: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules Date: Sat, May 23, 2015 6:27 PM Thanks for the explanation Soroush.   So is that means that if I put an element of the res module in the extension point of <group> it will be seen as valid? (the schema says ‘##other’ so it should accept it) Or invalid (the specification does not list <res:resourceData> for group)?   -ys   From: xliff@lists.oasis-open.org [mailto: xliff@lists.oasis-open.org ] On Behalf Of Soroush.Saadatfar Sent: Saturday, May 23, 2015 8:48 AM To: xliff@lists.oasis-open.org Subject: Fwd: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules   Hi Yves!  Actually NVDL handles modules. Extension points are defined and checked by the XSD schema, which is the first step of NVDL validation. Then NVDL applies appropriate Schematron rules to each module if they exist. So, in terms of "allowing" or "forbidding" extensions, XSD is in charge of this restrictions.   ----- Forwarded message ----- From: "Soroush.Saadatfar" < Soroush.Saadatfar@ul.ie > To: "Yves Savourel" < ysavourel@enlaso.com > Subject: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules Date: Sat, May 23, 2015 3:33 PM     ----- Reply message ----- From: "Yves Savourel" < ysavourel@enlaso.com > To: "XLIFF Main List" < xliff@lists.oasis-open.org > Subject: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules Date: Sat, May 23, 2015 2:25 PM   Hi Soroush, What does the Schematron validation tool does about modules in the modules' extension points? And in the core's ones? Thanks, -ys


  • 6.  RE: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules

    Posted 05-24-2015 00:06
    Hi David, all, > saying that the modules are allowed explicitly means that they are > protected as *modules* at the given extension points where they are intended. I think this is not correct: Explicitly declaring the module somewhere does not protect them. What protect them is the PR that says: "An Agent processing a valid XLIFF Document that contains XLIFF-defined elements and attributes that it cannot handle MUST preserve those elements and attributes." A tool must preserve any un-supported XLIFF-defined element it finds, regardless where it finds it. > It does NOT mean that you cannot reuse module *namespaces* as > *extensions* where they were not explicitly allowed. Then I understand less and less the purpose of listing the modules in element's definition. It's not to mark them as 'protected'. Also why some modules are listing for some elements but not others? (like res in file but not in group). Also there the mailing list archive has a lot of discussion about this (like https://lists.oasis-open.org/archives/xliff/201312/msg00077.html ). It looks like we wanted to forbid some modules in some extension points, but could not do it with the schema. > Any namespaces BUT XLIFF core (xlf) are allowed by the *other* wildcard > but only explicitly allowed modules are considered modules. That is not correct either: ##other allows any namespace but the namespace of the parent. So, technically <xlf:source> can be used in <gls:glossEntry>. The bottom line I think is that the schema is not powerful enough to express what we wanted to declare. > Module namespaces that are not explicitly listed behave > simply as extensions. > The only practical distinction between module and extension being > that modules MUST NOT be deleted and extensions SHOULD NOT be deleted. You are saying that a <mda:metadata> in a glossary would be an 'extension' and would not be protected. I think that is not correct: As stated in the PR above, the protection is not about 'module' or 'extension' but about XLIFF-defined element. Let's call a set of XLIFF-defined elements a module, but placing that module in a place where it's not explicitly listed doesn't change its PR: it must be preserved. We really need to clarify all this in 2.1. Cheers, -yves Dr. David Filip ======================= OASIS XLIFF TC Secretary, Editor, and Liaison Officer LRC CNGL CSIS University of Limerick, Ireland telephone: +353-6120-2781 cellphone: +353-86-0222-158 facsimile: +353-6120-2734 http://www.cngl.ie/profile/?i=452 mailto: david.filip@ul.ie On Sat, May 23, 2015 at 7:33 PM, Soroush.Saadatfar <Soroush.Saadatfar@ul.ie> wrote: As I did not contribute to XSD, I don't know how the schema behaves. So what is the valid scenario in this case you mentioned? I can then check the schema and add this part to NVDL if missing. Restrictions for the extension points are regulated only by XSD schema so far. Soroush. ----- Reply message ----- From: "Yves Savourel" <ysavourel@enlaso.com> To: "XLIFF Main List" <xliff@lists.oasis-open.org> Subject: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules Date: Sat, May 23, 2015 6:27 PM Thanks for the explanation Soroush. So is that means that if I put an element of the res module in the extension point of <group> it will be seen as valid? (the schema says ‘##other’ so it should accept it) Or invalid (the specification does not list <res:resourceData> for group)? -ys From: xliff@lists.oasis-open.org [ mailto:xliff@lists.oasis-open.org ] On Behalf Of Soroush.Saadatfar Sent: Saturday, May 23, 2015 8:48 AM To: xliff@lists.oasis-open.org Subject: Fwd: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules Hi Yves! Actually NVDL handles modules. Extension points are defined and checked by the XSD schema, which is the first step of NVDL validation. Then NVDL applies appropriate Schematron rules to each module if they exist. So, in terms of "allowing" or "forbidding" extensions, XSD is in charge of this restrictions. ----- Forwarded message ----- From: "Soroush.Saadatfar" <Soroush.Saadatfar@ul.ie> To: "Yves Savourel" <ysavourel@enlaso.com> Subject: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules Date: Sat, May 23, 2015 3:33 PM ----- Reply message ----- From: "Yves Savourel" <ysavourel@enlaso.com> To: "XLIFF Main List" <xliff@lists.oasis-open.org> Subject: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules Date: Sat, May 23, 2015 2:25 PM Hi Soroush, What does the Schematron validation tool does about modules in the modules' extension points? And in the core's ones? Thanks, -ys


  • 7.  RE: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules

    Posted 05-24-2015 00:22
    Hi all, please disregard my earlier reply. I agree 100% with Yves' ending statement: "We really need to clarify all this in 2.1." And until we do that, the default behavior for our OM will be to allow any elements from any namespace at any extension point in core or a module and ALWAYS preserve it. Which is probably the correct behavior for an OM anyway. From: Yves Savourel Sent: ?5/?23/?2015 5:06 PM To: 'Dr. David Filip' ; 'Soroush.Saadatfar' Cc: xliff@lists.oasis-open.org Subject: RE: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules Hi David, all, > saying that the modules are allowed explicitly means that they are > protected as *modules* at the given extension points where they are intended. I think this is not correct: Explicitly declaring the module somewhere does not protect them. What protect them is the PR that says: "An Agent processing a valid XLIFF Document that contains XLIFF-defined elements and attributes that it cannot handle MUST preserve those elements and attributes." A tool must preserve any un-supported XLIFF-defined element it finds, regardless where it finds it. > It does NOT mean that you cannot reuse module *namespaces* as > *extensions* where they were not explicitly allowed. Then I understand less and less the purpose of listing the modules in element's definition. It's not to mark them as 'protected'. Also why some modules are listing for some elements but not others? (like res in file but not in group). Also there the mailing list archive has a lot of discussion about this (like https://lists.oasis-open.org/archives/xliff/201312/msg00077.html ). It looks like we wanted to forbid some modules in some extension points, but could not do it with the schema. > Any namespaces BUT XLIFF core (xlf) are allowed by the *other* wildcard > but only explicitly allowed modules are considered modules. That is not correct either: ##other allows any namespace but the namespace of the parent. So, technically <xlf:source> can be used in <gls:glossEntry>. The bottom line I think is that the schema is not powerful enough to express what we wanted to declare. > Module namespaces that are not explicitly listed behave > simply as extensions. > The only practical distinction between module and extension being > that modules MUST NOT be deleted and extensions SHOULD NOT be deleted. You are saying that a <mda:metadata> in a glossary would be an 'extension' and would not be protected. I think that is not correct: As stated in the PR above, the protection is not about 'module' or 'extension' but about XLIFF-defined element. Let's call a set of XLIFF-defined elements a module, but placing that module in a place where it's not explicitly listed doesn't change its PR: it must be preserved. We really need to clarify all this in 2.1. Cheers, -yves Dr. David Filip ======================= OASIS XLIFF TC Secretary, Editor, and Liaison Officer LRC CNGL CSIS University of Limerick, Ireland telephone: +353-6120-2781 cellphone: +353-86-0222-158 facsimile: +353-6120-2734 http://www.cngl.ie/profile/?i=452 mailto: david.filip@ul.ie On Sat, May 23, 2015 at 7:33 PM, Soroush.Saadatfar <Soroush.Saadatfar@ul.ie> wrote: As I did not contribute to XSD,  I don't know how the schema behaves. So what is the valid scenario in this case you mentioned? I can then check the schema and add this part to NVDL if missing. Restrictions for the extension points are regulated only by XSD schema so far. Soroush. ----- Reply message ----- From: "Yves Savourel" <ysavourel@enlaso.com> To: "XLIFF Main List" <xliff@lists.oasis-open.org> Subject: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules Date: Sat, May 23, 2015 6:27 PM Thanks for the explanation Soroush.   So is that means that if I put an element of the res module in the extension point of <group> it will be seen as valid? (the schema says ‘##other’ so it should accept it) Or invalid (the specification does not list <res:resourceData> for group)?   -ys   From: xliff@lists.oasis-open.org [ mailto:xliff@lists.oasis-open.org ] On Behalf Of Soroush.Saadatfar Sent: Saturday, May 23, 2015 8:48 AM To: xliff@lists.oasis-open.org Subject: Fwd: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules   Hi Yves! Actually NVDL handles modules. Extension points are defined and checked by the XSD schema, which is the first step of NVDL validation. Then NVDL applies appropriate Schematron rules to each module if they exist. So, in terms of "allowing" or "forbidding" extensions, XSD is in charge of this restrictions.   ----- Forwarded message ----- From: "Soroush.Saadatfar" <Soroush.Saadatfar@ul.ie> To: "Yves Savourel" <ysavourel@enlaso.com> Subject: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules Date: Sat, May 23, 2015 3:33 PM     ----- Reply message ----- From: "Yves Savourel" <ysavourel@enlaso.com> To: "XLIFF Main List" <xliff@lists.oasis-open.org> Subject: [xliff] RE: [QUAR] RE: [xliff] Extensibility in Modules Date: Sat, May 23, 2015 2:25 PM   Hi Soroush, What does the Schematron validation tool does about modules in the modules' extension points? And in the core's ones? Thanks, -ys