Hi all,
<br>we are developing a multilanguage site with Opencms 6.0.3, and we need to support the following locales: "es" and "ast" ( for Asturian language ). We had defined these locales under opencms-system.xml and start editing some news structured content. Even though both locales were available at language combo, filled-in values for "ast" locale fields won´t be saved , but for "es".
<br>When i try editing resource controlcode and pasting the corresponding element
<br>
<br> <NewsArticle language="ast">
<br> ...
<br> </NewsArticle>
<br>
<br>i get the following message
<br>
<br>org.opencms.xml.CmsXmlException: XML validation error :
<br><errors>
<br> <error column="31" line="21">cvc-pattern-valid: Value 'ast' is not facet-valid with respect to pattern '[a-z]{2}(_[A-Z]{2}(_[a-zA-Z0-9]+){0,1}){0,1}' for type 'OpenCmsLocale'.</error>
<br> <error column="31" line="21">cvc-attribute.3: The value 'ast' of attribute 'language' on element 'NewsArticle' is not valid with respect to its type, 'OpenCmsLocale'.</error>
<br></errors>
<br> ...
<br>
<br>Seems that three letter locale value won´t match some specific validation pattern.
<br>I have checked the news schema definition under /system/modules/org.opencms.frontend.templateone.modules/schemas/news.xsd which includes "opencms://opencms-xmlcontent.xsd", but as found in previous thread(<a href="http://article.gmane.org/gmane.comp.cms.opencms.devel/18043" target="_top" rel="nofollow">http://article.gmane.org/gmane.comp.cms.opencms.devel/18043</a>) opencms-xmlcontent.xsd doesn´t exists as a file.
<br>
<br>After some little research i´ve found the validation pattern at CmsXmlLocaleValue.TYPE_RULE field.
<br>Could you please tell me if it is possible to provide a different implementation for this type, or shouldl i patch the CmsXmlLocaleValue class to change the validation pattern?
<br>
<br>Thanks in advance,
<br>Patricio
<br><hr align="left" width="300">
Sent from the <a href="http://www.nabble.com/OpenCMS---Dev-f654.html">OpenCMS - Dev</a> forum at Nabble.com:<br>
<a href="http://www.nabble.com/three-letter-locale-value-not-valid%21%3A-%22ast%22-t730566.html#a1913457">three letter locale value not valid!: "ast"</a>