Re: [All] domain data category section proposal, please review

Hi Felix, Dave, Declan, all,

Just a minor note:

While implementing Domain I ran into the interesting case of an its:domain limitation. I don't think we should do anything about it, but it may be worth noting.

When looking for an XML example I turn to DocBook, and looked for the elements equivalent to the DC:subject property. The first example I found used <subjectterm> for the domain value, and you could have several of them. So we end up with a possible case like this:

<article xmlns=''>
  <its:rules xmlns:its="" version="2.0"
   <its:translateRule selector="//d:subjectset" translate="no"/>
   <its:domainRule selector="/d:article"
    domainMapping="'Electronic Publishing' epub, 'SGML (Computer program language)' CompLang"
  <title>Example of subjectset</title>
  <subjectset scheme="libraryofcongress">
    <subjectterm>Electronic Publishing</subjectterm>
    <subjectterm>SGML (Computer program language)</subjectterm>
 <para>Text of the document</para>

No problem, we just implement the ITS processor so it handle the result as a list of domain values rather than a single per selected node. So I've done that.

Then I tried to implement Domain in XLIFF 1.2. We can use non-XLIFF attributes in the <trans-unit> element, so it is logical to just use its:domain to store the domain extracted from the original document there.

The problem: its:domain holds a single value and we have several values to pass on. So either we just pass on a single value, or we have to use a non-ITS element or attribute to hold a list. I choose to just pass on the first value.

<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file original="/EX-domain-docbook.xml" source-language="en-us" target-language="fr-fr" datatype="xml">
<trans-unit id="1" xmlns:its="" its:version="2.0" its:domain="epub">
<source xml:lang="en-us">Example of subjectset</source>
<target xml:lang="fr-fr">Example of subjectset</target>
<trans-unit id="2" xmlns:its="" its:version="2.0" its:domain="epub">
<source xml:lang="en-us">Text of the document</source>
<target xml:lang="fr-fr">Text of the document</target>

My guess is that multiple domain values for a single selected node will not be frequent enough to outweigh using directly the ITS attribute. Hopefully that will do.


Received on Sunday, 29 July 2012 03:31:00 UTC