atom feed7 messages in org.oasis-open.lists.xliff-commentSchema issues with extensible attributes
FromSent OnAttachments
Asgeir FrimannssonOct 17, 2006 5:13 pm 
Asgeir FrimannssonOct 19, 2006 5:35 pm 
Doug DomenyOct 20, 2006 2:02 pm 
Asgeir FrimannssonOct 22, 2006 5:12 pm 
Asgeir FrimannssonOct 23, 2006 1:38 am 
Doug DomenyOct 23, 2006 5:50 am 
Doug DomenyOct 23, 2006 5:53 am 
Subject:Schema issues with extensible attributes
From:Asgeir Frimannsson (asge@gmail.com)
Date:Oct 17, 2006 5:13:09 pm
List:org.oasis-open.lists.xliff-comment

Hi all,

I just noticed that the deprecated attributes from 1.1 (eg. ts, tool) are still being accepted in 1.2 using the strict schema. They are defined with use="prohibited" in the strict schema. A good example of this is the example XLIFF file provided with the specification (Sample_AlmostEverything_1.2_strict.xlf) - the file still includes all prohibited attributes, and validates fine with schema validators.

At first I thought this was a bug in the validator I'm using, but then i noticed how the attribute extension points are defined in the XLIFF schema (transitional and strict):

<xsd:anyAttribute namespace="##any" processContents="lax"/>

The XLIFF specification states that "Attributes of a namespace different than XLIFF can be included in several XLIFF elements". The schema allows for attributes of any namespace to be included, including xliff-namespace attributes not defined in the specification. The schema and specification are inconsistent here, and it seems the right thing to do would be to change all anyAttribute elements to:

<xsd:anyAttribute namespace="##other" processContents="lax"/>

In addition, some issues with the strict sample XLIFF file provided with the specification: - schemaLocation points to xliff-core-1.2-strict-20060512.xsd (should point to xliff-core-1.2-strict.xsd) - As noted, It still includes the prohibited attributes (eg. tool, ts)

And similar with the transitional sample XLIFF file: - schemaLocation points to xliff-core-1.2-transitional-20060512.xsd (should point to xliff-core-1.2-transitional.xsd)

cheers, asgeir

Phone: (+61) 7 3138 9332 Mob: (+61) 405 412 696 Email: a.fr@qut.edu.au