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


Help: OASIS Mailing Lists Help | MarkMail Help

xliff message

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

Subject: RE: [xliff] possible issue with URN prefixes used to define acceptable namespaces in XLIFF 2.1

Hi Felix,

> I assume by "start the mapping" you mean: creating example input and 
> output files? 

Not quite. I meant "start to write the rules file".
But starting the test files at the same time would be perfect too

Maybe things would be clearer for everyone with an example, so see the attached files:

- allowed-characters.xlf is an XLIFF 2 document with one of the ITS module feature.
Important note:
The namespace of the XLIFF core is still "urn:oasis:names:tc:xliff:document:2.0" but the version is version="2.1". This is likely to
confuse a lot of people, but there is no way around: It means the namespace of the core has not changed, but the version of the
document is 2.1 so it uses the new ITS module.
The ITS module is using "itx" as its prefix to try to make things clearer. But technically it should really be "its" as it is the
ITS module. We should never have true ITS elements or attributes in XLIFF (if we have, they would be seen as extensions).

- its-to-xliff.xml is a start of the ITS/XLIFF rules file. It tell ITS-processors a) the basic info about what to translate and
which elements are inline. And it has a rule that maps the ITS "Allowed Characters" data category to the attribute of the ITS module
in XLIFF that implement such feature (a brand new one as it does not exists currently)

Test results for ITS-only processors may be like this (same as for ITS tests):

/xliff/file[1]/unit[1]/segment[1]/source[1]/pc[1]/mrk[1]	allowedCharacters="[a-ZA-Z]"

While test results for XLIFF procssors amy be like this:

#/f=f1/u=u1/m1	allowedCharacters="[a-zA-Z]"

> I put some questions in the ITS IG wiki see 
> https://www.w3.org/International/its/wiki/XLIFF_2.0_Mapping#Testing_the_mapping
> once we have resolved them I'm happy to start with file creation.

I've tried to answer them:


Attachment: allowed-characters.xlf
Description: Binary data

<?xml version="1.0"?>
<its:rules xmlns:its="http://www.w3.org/2005/11/its"; version="2.0"
	<its:translateRule selector="/xlf:xliff" translate="no"/>
	<its:translateRule selector="//xlf:source" translate="yes"/>
	<its:targetPointerRule selector="//xlf:source" targetPointer="../xlf:target"/>
	<its:translateRule selector="//xlf:target" translate="yes"/>
	<its:withinTextRule withinText="yes" selector="//xlf:ph|//xlf:pc|//xlf:sc|//xlf:ec|//xlf:mrk|//xlf:sm|//xlf:em"/>

	<its:allowedCharactersRule selector="//xlf:mrk" allowedCharactersPointer="@itx:allowedCharacters"/>

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