cancel
Showing results for 
Search instead for 
Did you mean: 

Language in XSD Patterns

Former Member
0 Kudos

Hi All,

I am working for some Japanese files. I wanted to check for the validity of data for which i have choosen Patterns in Datatypes. here everything works fine for fields in english language.What is the pattern that I have to Specify to recognise Japanese fields.

Thanks and Regards,

Kalpana.

Accepted Solutions (0)

Answers (1)

Answers (1)

aashish_sinha
Active Contributor
0 Kudos

This may help you.

<xsd:simpleType name="language" id="language">

<xsd:restriction base="xsd:token">

<xsd:pattern

value="([a-zA-Z]|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{1,8})*"

/>

</xsd:restriction>

</xsd:simpleType>

and check the RFC 1766 .

also check this link it may help http://www.cafeconleche.org/slides/xmlone/london2002/advancedxml/240.html

regards

Aashish Sinha

PS : reward points if helpful

Former Member
0 Kudos

Hi Sinha,

Thank you for your reply.

Can you tell me how to give conditions in Pattern.For example in English if we need alphabets in lower case we give pattern value to be[a-z] know,in the same way how can we specify characters in Japanese.

Can you help me.

Thanks and Regards,

Kalpana.

Former Member
0 Kudos

Hi All,

Does anybody have idea on Japanese Patterns.