Add XML validity check #145

Closed
rhertzog opened this Issue Nov 12, 2012 · 1 comment

Projects

None yet

2 participants

@rhertzog

For the Debian Handbook, translators translate Docbook XML and they do many mistakes with the XML syntax (like mismatched tags or introducing spaces where there should be none) and it would be nice if Weblate could caught those early on.

One thing to note is that each msgid is not a valid XML tree since the englobing tag is implicit. You get "Hello <emphasis>World</emphasis>" and not "<para>Hello <emphasis>World</emphasis></para>".

And Weblate should complain if the user submits:

Hello <emphasis>World</ emphasis>
Hello <emphasis role = "foo">World</emphasis>
Hello <emphasis>World</emph>

etc...

@nijel nijel was assigned Nov 13, 2012
@nijel
Owner

Check implemented, thanks for suggestion.

@nijel nijel closed this Nov 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment