W3C home > Mailing lists > Public > public-i18n-its@w3.org > July to September 2006

Example 25

From: Yves Savourel <ysavourel@translate.com>
Date: Fri, 21 Jul 2006 11:50:45 -0600
To: <public-i18n-its@w3.org>
Message-ID: <006c01c6acee$318bb070$9b05a8c0@Breizh>

Hi all,

Looking at the locNote examples, I noticed that our example 25 is wrong. The syntax is fine, but it specifies the loc notes for the
string elements rather than the data elements.

<data>
 <prolog>
  <its:rules its:version="1.0">
   <its:locInfoRule
     locInfoType="description"
     selector="//string"
     locInfoRefPointer="@noteFile"/>
  </its:rules>
 </prolog>
 <body>
  <string id="FileNotFound" noteFile="Comments.html/#FileNotFound">
   <data>Cannot find the file {0}.</data>
  </string>
  <string id="DivByZero" noteFile="Comments.html/#DivByZero">
   <data>Invalid parameter.</data>
  </string>
 </body>
</data>

It should be:

  <its:rules its:version="1.0">
   <its:locInfoRule
     locInfoType="description"
     selector="//string/data"
     locInfoRefPointer="../@noteFile"/>
  </its:rules>

My bad: I wrote that one.
Felix: I'll send you a corrected file (along with the edited examples)
By the way: We also still have to fix the missing xmlns:its in the auto-generation.

Cheers,
-yves
Received on Friday, 21 July 2006 17:51:00 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:43:07 UTC