ICU-3186 calculate 'x' for draft locales properly

X-SVN-Rev: 16364
This commit is contained in:
Steven R. Loomis 2004-09-28 20:14:03 +00:00
parent 907c598ac5
commit e8563c3d34

View file

@ -700,7 +700,7 @@ public class LDML2ICUConverter {
ICUResourceWriter.ResourceString str = new ICUResourceWriter.ResourceString();
str.val = LDMLUtilities.getAttributeValue(node, LDMLConstants.NUMBER);
str.name = (String)keyNameMap.get(LDMLConstants.VERSION);
if(LDMLUtilities.isNodeDraft(root)) { // x for experimental
if(LDMLUtilities.isDraft(root,new StringBuffer("//ldml"))) { // x for experimental
str.val = "x" + str.val;
}
res = str;