You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by tiago galvao <ti...@yahoo.com.br> on 2010/02/02 19:46:35 UTC

XML Validation... XMLSchemaMessages.properties

once you have validate your XML against XSD...
 
and some erros are found... it returns somthing like...
cvc-elt.3.1: Attribute 'http://www.w3.org/2001/XMLSchema-instance,nil' must not appear on element 'dPrev', because the {nillable} property of 'dPrev' is false.

does anyone know how could i change the language of these messages?
i found the file XMLSchemaMessages.properties with all the messages inside the xercesImpl.jar at XMLSchemaMessages.properties

even after changing them still get the original ones
where should i make this change?
 
i've tried to create a package org.apache.xerces.impl.msg with the new .properties in the project 
but didn't work as well...
 
thanks a lot


      ____________________________________________________________________________________
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com

Re: XML Validation... XMLSchemaMessages.properties

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
Michael Ludwig <mi...@gmx.de> wrote on 02/02/2010 05:19:37 PM:

> tiago galvao schrieb am 02.02.2010 um 10:46:35 (-0800):
>
> > cvc-elt.3.1: Attribute 'http://www.w3.org/2001/XMLSchema-instance,nil'
> > must not appear on element 'dPrev', because the {nillable} property of
> > 'dPrev' is false.
> >
> > does anyone know how could i change the language of these messages?
>
> Looks like you have to translate them yourself, and then append your
> translated version of the file to the JAR. AFAICS, that should work.
> But it seems you're saying it doesn't?

Provided that you've named the file correctly for your locale (e.g.
XMLMessages_de.properties for German) it should work.:

> Note that the messages might change when there is an update. This
> six-year-old thread might still be relevant:
>
> http://marc.info/?l=xerces-j-user&m=108288837815450&w=2
>
> --
> Michael Ludwig
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-users-help@xerces.apache.org

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

Re: XML Validation... XMLSchemaMessages.properties

Posted by Michael Ludwig <mi...@gmx.de>.
tiago galvao schrieb am 02.02.2010 um 10:46:35 (-0800):

> cvc-elt.3.1: Attribute 'http://www.w3.org/2001/XMLSchema-instance,nil'
> must not appear on element 'dPrev', because the {nillable} property of
> 'dPrev' is false.
> 
> does anyone know how could i change the language of these messages?

Looks like you have to translate them yourself, and then append your
translated version of the file to the JAR. AFAICS, that should work.
But it seems you're saying it doesn't?

Note that the messages might change when there is an update. This
six-year-old thread might still be relevant:

http://marc.info/?l=xerces-j-user&m=108288837815450&w=2

-- 
Michael Ludwig

---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org