From 27caf863d4dc06dd8cc09f5e4836d40f59ee9faf Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Fri, 19 May 2017 22:11:15 +0200 Subject: Mention validation with xmllint Change-Id: I03af05e51084a438109c2e200faa8d5e5b4f2c74 --- i18npool/source/localedata/data/locale.dtd | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'i18npool') diff --git a/i18npool/source/localedata/data/locale.dtd b/i18npool/source/localedata/data/locale.dtd index 2898ee4bb04e..377df12b9bb8 100644 --- a/i18npool/source/localedata/data/locale.dtd +++ b/i18npool/source/localedata/data/locale.dtd @@ -26,15 +26,23 @@ ATTENTION! PLEASE! HEADS UP! IMPORTANT! =========================================================================== - Please validate your locale data contribution using a validating parser. A - validating parser, for example, may be found at + Please validate your locale data contribution. + + A quick validation check can be done if you have xmllint installed and the + current locale.dtd file at hand, you can download the locale.dtd file from + https://cgit.freedesktop.org/libreoffice/core/plain/i18npool/source/localedata/data/locale.dtd + + xmllint --dtdvalid locale.dtd --noout your_data.xml + + + Second, using a validating parser. A validating parser, for example, may be found at http://unicode.org/cldr/data/tools/java/org/unicode/cldr/util/XMLValidator.java Compile it into a class-jar and call it in the i18npool/source/localedata/data/ directory: java -cp /XMLValidator.jar org.unicode.cldr.util.XMLValidator your_data.xml - A second possibility is: + A third possibility is: - temporarily (!) change the DOCTYPE of your file to read (all on one line) -- cgit