Sylvain Juge wrote:
I'm working on an application that must be translated in korean, and I have to check text input values
I tried :
constraint="matches(.,'[ᄀ-ᇿ]+')"
and
constraint="matches(.,'^\p{IsHangulJamo}+$')"
but both of them doesn't allow korean characters, however constraint="matches(.,'^\P{IsHangulJamo}+$')" seems to allow all caracters, even not korean !


Do you have an idea about somethnig I'm wrong ?

Sylvain,

I created a test case to reproduce this, but the test case runs fine (it is attached to this email, and is now included in the XForms units test in tests-xforms.xml). Can you send me some files that I can run here to reproduce the issue you are experimenting?

Alex

<test description="Constraint with Korean character" name="oxf:xforms-annotate" only="true">
    <input name="instance">
        <instance>
            <a>&#x1105;</a>
            <b>&#x1200;</b>
        </instance>
    </input>
    <input name="model">
        <xforms:model>
            <xforms:bind nodeset="/instance/*" constraint="matches(.,'[&#x1100;-&#x11FF;]+')"/>
        </xforms:model>
    </input>
    <output name="instance">
        <instance>
            <a xxforms:valid="true">&#x1105;</a>
            <b xxforms:valid="false">&#x1200;</b>
        </instance>
    </output>
</test>

Reply via email to