Dear Admilson,
You can use one of the following date formats in an Europass CV XML:
- text/short
- text/long
- numeric/short
- numeric/medium
- numeric/long
If you don't specify any date format in the XML, the text/short one (#1 above) applies by default.
However, the text/short format has a slightly different representation in the generated document (doc, pdf, odt), depending on the language of the document. So, if you use text/short in an English document, the date will appear as "14 Apr 2015". If you use the same format in a Spanish document the date will appear as "14 abr. 15", if you use it in a Portuguese document it will appear as "14 ab 15" and so on.
So, to answer your first question, if the desired format is text/short, it is not possible to make the dates in the Portuguese and Spanish versions of your document appear like the ones in the English document. Nevertheless, you could use a format other than text/short such as numeric/long ("14/04/2015") which you already use in your XMLs or even text/long ("14 April 2015") where the year always displays with 4 digits, regardless of the language.
Concerning your second issue, this is because you only override the default date format in the first item of your Work Experience and Education lists. Let's take "001XML.xml" for example, where there are two <WorkExperience> entries and two <Education> entries as well as the following printing preferences:
<Field name="LearnerInfo.WorkExperience[0].Period" show="false" format="numeric/long"/>
<Field name="LearnerInfo.Education[0].Period" show="false" format="numeric/long"/>
The "WorkExperience[0]" and "Education[0]" parts above refer to the first item in the list of work experiences and to the first item in the list of the education entries respectively (imagine that it's an array/list with zero-based indexing). So, you set to numeric/long the date format for the first work experience and the first education entry, but since you don't touch any other items in the lists, the default format applies, which as explained above is text/short.
In order to use the same format in all of your list items, you have to repeat the same printing preference for each one of the list items. So, if you have two work experiences and two education entries, the printing preferences should look something like this:
<Field name="LearnerInfo.WorkExperience[0].Period" show="false" format="numeric/long"/>
<Field name="LearnerInfo.WorkExperience[1].Period" show="false" format="numeric/long"/>
<Field name="LearnerInfo.Education[0].Period" show="false" format="numeric/long"/>
<Field name="LearnerInfo.Education[1].Period" show="false" format="numeric/long"/>
As you can understand, [0] refers to the first item in the list, [1] to the second item in the list, etc. Please also check the attached 001XML-FIXED.xml and 001XML-FIXED.doc for the end result.
As a sidenote, it is strongly suggested to validate your XML instances against the Europass XML Schema because currently I can see a lot of problems with them (missing elements that are required, etc.). The REST API doesn't currently complain and accepts your XML, but this might change in the future.
Please let us know if you need anything else.
Best regards,
Dimitris Zavaliadis
Team Europass