OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

xliff-comment message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: RE: [xliff-comment] XLIFF 1.2 Errata: Schema glitch in <xliff> element definition

Hi Asgeir,

Thank you for your additional comments, and thank you for continuing to
help us to make XLIFF better.  I agree with the characterizations of
each of these as opportunities for errata (not substantive, requiring us
to restart the standard process).

I've collected your 4 observations here:
http://wiki.oasis-open.org/xliff/XLIFF2.0Goals, under the heading
"Issues collected from xliff-comment list (categorized by TC as
necessary for 1.2 errata, and 2.0 requirements)"

I think this is a good place to collect these issues for now.  I look
forward to your joining the TC so that we can (with your participation)
consider the best way to *fine-tune* the spec and schema into alignment.
Sometimes a simple edit to one or the other is clear; sometimes
alignment is subjective, and difficult to translate from words to schema
code (spoken as an occasionally bleary schema writer myself).

Thanks as always,

* sending to the xliff member mailing list as well

-----Original Message-----
From: Asgeir Frimannsson [mailto:asgeirf@Gmail.com] 
Sent: Thursday, November 01, 2007 4:26 AM
To: xliff-comment@lists.oasis-open.org
Subject: [xliff-comment] XLIFF 1.2 Errata: Schema glitch in <xliff>
element definition

Hi all,

First of all: Doug, Bryan, thank you for your comments. I will be
joining to TC soon, I'm simply waiting for some practical/"political"
issues relating to the Oasis membership to be resolved. Until then
there might be some further comments on this list...

Now on to an inconsistency between the schema and the specification:

The <xliff> element contents description is defined as:
     One or more <file>  elements, followed by
     Zero, one or more non-XLIFF elements.

This is represented in the schema as:

<xsd:element name="xliff">
    <xsd:sequence maxOccurs="unbounded">
      <xsd:any maxOccurs="unbounded" minOccurs="0" namespace="##other"
      <xsd:element ref="xlf:file"/>
    ... attributes ...

Notice two things:
1) The sequence is switched around, so you have to end with a <file>
element, hence invalidating the 'followed by zero, one or more
non-XLIFF elements" statement.
2) This definition allows for mixing any number of <file> and other-ns
elements, as long as you end with a <file> element... This
representation allows much more than the specification, for example
the following instance:

  <my:bogus ... />
  <file ...> ... </file>
  <my:bogus ... />
  <my:bogus ... />
  <my:bogus ... />
  <my:bogus ... />
  <file ...> ... </file>
  <my:bogus ... />
  <my:bogus ... />
  <file ...> ... </file>
  <!--- a file element must be the last element -->

To represent the intent of the specification, the <xliff> element
definition can be rewritten as:

<xsd:element name="xliff">
      <xsd:element ref="xlf:file" maxOccurs="unbounded" minOccurs="1" />
      <xsd:any maxOccurs="unbounded" minOccurs="0" namespace="##other"
    ... attributes ...


Asgeir Frimannsson
PhD Candidate
School of Software Engineering and Data Communications
Queensland University of Technology
126 Margaret Street, Level 3
Brisbane QLD 4001, Australia

Phone: (+61) 7 3138 9332 Mob: (+61) 405 412 696
Email: asgeirf@gmail.com

This publicly archived list offers a means to provide input to the
OASIS XML Localisation Interchange File Format (XLIFF) TC.

In order to verify user consent to the Feedback License terms and
to minimize spam in the list archive, subscription is required
before posting.

Subscribe: xliff-comment-subscribe@lists.oasis-open.org
Unsubscribe: xliff-comment-unsubscribe@lists.oasis-open.org
List help: xliff-comment-help@lists.oasis-open.org
List archive: http://lists.oasis-open.org/archives/xliff-comment/
Feedback License: http://www.oasis-open.org/who/ipr/feedback_license.pdf
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]