Title: internalisation with schematron (XML-Form)

Hi!
I have a problem to translate the error-massages of the schematrons. I hope someone can give me a hint to solve my problem.

I want to translate the Error Message of my pattern in the Schematron file. But I donīt know exactly how. I tried the way I found in the Mail archives of cocoon, but it didnīt work in my case.

I hope someone can answer me how to include the internalisation in my schematron file.

In the xml file I have following:
<xf:form>
        <xf:password ref="/password">
                <xf:caption>
                        <i18n:text>password_field</i18n:text>
                </xf:caption>
                <xf:violation class="error"/>          
</xf:form>

The schematron file has following pattern:
<rule context="/password">
        <assert test="string-lenght...">
                Error_message that I want to translate!
        </assert>
</rule>

And the translation file has allready:
...
<message key="password_field">Password</message>
<message key="????????">The password is to long!</message>
...

sitemap:
...
<map:generate src=""....">
<map:transform type="i18n">
        <map:parameter name="locale" value="{./locale}"/>
</map:transform>
<map:transform type="xmlform" label="xml">
<map:transform src=""....">
...

I tried allready to switch the transformers...but it didnīt work.

Hopefully someone can help me with this problem.

Greetings

Michael

Reply via email to