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

Pointing to stuff that's not there

From: Richard Ishida <ishida@w3.org>
Date: Fri, 27 Oct 2006 19:29:30 +0100
To: <public-i18n-its@w3.org>
Message-ID: <018f01c6f9f5$d81275b0$6501a8c0@w3cishida>

Suppose we have global rules such as 

<its:rules its:version="1.0">
		<its:translateRule selector="//msg/notes" translate="no"/>
		<its:locNoteRule locNoteType="description" selector="//msg/data" 
			locNotePointer="../notes"/>
		</its:rules>


And that the content looks like this:

<msg id="FileNotFound">
		<notes>Indicates that the resource file {0} could not be loaded.</notes>
		<data>Cannot find the file {0}.</data>
		</msg>
	<msg id="DivByZero">
		<data>Invalid parameter.</data>
		</msg>

There is no notes field in the second msg element.  Do we say somewhere in the spec what is supposed to happen in this case (since there *is* an element that matches the selector attribute)?

RI


============
Richard Ishida
Internationalization Lead
W3C (World Wide Web Consortium)

http://www.w3.org/People/Ishida/
http://www.w3.org/International/
http://people.w3.org/rishida/blog/
http://www.flickr.com/photos/ishida/
Received on Friday, 27 October 2006 18:29:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:12:48 GMT