OASIS XML Localisation Interchange File Format (XLIFF) TC

  • 1.  Attributes for XLIFF 2.0

    Posted 04-22-2011 14:24
    Hi, One of the most common problems in XLIFF is the difficulty to validate attributes. This is something we can improve a bit in 2.0. Attributes that contain a file location, like "original" in <file> or "href" in <external-file> are supposed to contain the location of a file. We cannot check whether the file exists, but we can make sure that the location is written in a standard way. I propose to enforce the use of URLs in XLIFF 2.0 for attributes that point to files; URL validation can be included in the schema using regular expressions. Opinions? Regards, Rodolfo -- Rodolfo M. Raya <rmraya@maxprograms.com> Maxprograms http://www.maxprograms.com


  • 2.  RE: [xliff] Attributes for XLIFF 2.0

    Posted 04-22-2011 15:11
    > I propose to enforce the use of URLs in XLIFF 2.0 > for attributes that point to files; I think it's a very good idea. -ys


  • 3.  RE: [xliff] Attributes for XLIFF 2.0

    Posted 04-22-2011 17:16
    I think this is a good goal. It might also be an ambitious goal (assuming we' want to accommodate the not just http://, but also file:// - and accommodate the various *flavors* of URL formatting between OS', browsers, etc.). It's certainly do-able to write a durable regex. Just need to try to think of all the ways the URLs could be expressed, file://localhost/etc/mydir/myfile.xml file:///etc/mydir/myfile.xml file://localhost/c /mydir/myfile.xml file:///c /mydir/myfile.xml file://localhost/c:/mydir/myfile.xml file:///c:/mydir/myfile.xml file://localhost///remotehost/mydir/myfile.xml file://///remotehost/mydir/myfile.xml . . .to name a few. - Bryan


  • 4.  RE: [xliff] Attributes for XLIFF 2.0

    Posted 04-22-2011 17:56
    Hi Bryan, In a URL you have to specify the protocol, which could be "file", "http", "https", "ftp", etc. The idea is to check that the attribute value actually refers to something that could be a document stored somewhere and not just meaningless plain text. URLs have a well-defined format that could be validated using different regular expressions. I just did a quick check on Google before posting the idea and found that this is something doable. Regards, Rodolfo -- Rodolfo M. Raya <rmraya@maxprograms.com> Maxprograms http://www.maxprograms.com >


  • 5.  RE: [xliff] Attributes for XLIFF 2.0

    Posted 04-26-2011 06:56
    Hi Rodolfo, all, I guess I am looking at this in the same way as Bryan: I am under the impression that we may have to look into this. I am tempted to extend Bryan's remarks as follows: 1. We may have to go for URIs (not just URLs) 2. If we go for URIs we may even have to go for IRIs Cheers, Christian


  • 6.  RE: [xliff] Attributes for XLIFF 2.0

    Posted 04-26-2011 14:40
    > 1. We may have to go for URIs (not just URLs) > 2. If we go for URIs we may even have to go for IRIs Good point. -ys