[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xml-cocoon-users
Subject:    Re: internalisation with schematron (XML-Form)
From:       "Ivelin Ivanov" <ivelin () apache ! org>
Date:       2002-10-31 14:15:52
[Download RAW message or body]


Thank you Dianna for handling the patch.



----- Original Message -----
From: "Ivelin Ivanov" <ivelin@apache.org>
To: <cocoon-users@xml.apache.org>
Sent: Monday, October 28, 2002 11:25 PM
Subject: Re: internalisation with schematron (XML-Form)



Many thanks !

I will review and apply the patch.


... now only if someone would be interested to write a HOWTO on using JAAS
with Cocoon.


Best,

Ivelin


----- Original Message -----
From: "Mohamed El-Refaey" <m.refaey@imkenberg.de>
To: <cocoon-users@xml.apache.org>
Sent: Monday, October 28, 2002 7:35 PM
Subject: Re: internalisation with schematron (XML-Form)


Hallo Ivelin,

I already  wrote a How To Document for this and uploaded it using
Bugzilla . I hope it will be clear and easy to follow.

and its  Bug#14015.


Thanx in advance

Mohamed El-Refaey


Ivelin Ivanov wrote:

>Mohamed,
>
>would you consider submitting your email as a how-to document in bugzilla.
>The question about i18n with XMLForm is popping constantly.
>
>Ivelin
>
>
>----- Original Message -----
>From: "Mohamed El-Refaey" <m.refaey@imkenberg.de>
>To: <cocoon-users@xml.apache.org>
>Sent: Sunday, October 27, 2002 4:08 PM
>Subject: Re: internalisation with schematron (XML-Form)
>
>
>Hi Michael ,
>
>I faced the same problem and here is what I did when I read the mailing
>list regarding the i18n with Schematron validation error :
>
>1- the XMLForm file is :
><xf:password ref="/password">
>        <xf:caption><i18n:text>Password</i18n:text></xf:caption>
>        <xf:violations class="error"/>
>    </xf:password>
>2- the Schematron file :
> <rule context="/password">
>            <assert test="string-length(.) &gt; 7">
>                The Password Should be @ least 8 character.
>            </assert>
>        </rule>
>    </pattern>
>
>3-the sitemap :
>  <map:transform type="xmlform" label="xml"/>
>                    <map:transform src="xforms/stylesheets/translate.xsl"/>
>                        <map:act type="locale">
>                            <map:transform type="i18n">
>                            <map:parameter name="locale" value="{locale}"/>
>                            </map:transform>
>                      </map:act>
>
>in which the translate.xsl file is the that what they r talking about in
>the mailing list :
>
><?xml version="1.0"?>
><xsl:stylesheet version="1.0"
>                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>                xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002"
>                xmlns:i18n="http://apache.org/cocoon/i18n/2.0">
>
><xsl:template match="document">
>      <document>
>            <xsl:apply-templates/>
>      </document>
></xsl:template>
>
><xsl:template match="xf:violation">
>      <xf:violation>
>            <i18n:text>
>                  <xsl:value-of select="."/>
>            </i18n:text>
>      </xf:violation>
></xsl:template>
>
><xsl:template match="node()" priority="-1">
>      <xsl:copy>
>            <xsl:copy-of select="@*"/>
>            <xsl:apply-templates/>
>      </xsl:copy>
></xsl:template>
></xsl:stylesheet>
>
>and the Catalog file :
>
><message key="Password">Password</message>
>
>
>I wish this will help u
>
>
>Mohamed
>
>
>Michael Bald wrote:
>
>
>
>>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
>>
>>
>>
>
>
>
>
>---------------------------------------------------------------------
>Please check that your question  has not already been answered in the
>FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
>To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
>For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
>
>
>
>---------------------------------------------------------------------
>Please check that your question  has not already been answered in the
>FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
>To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
>For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
>
>
>
>




---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic