Re: internalisation with schematron (XML-Form)

2002-10-31 Thread Ivelin Ivanov

Thank you Dianna for handling the patch.



- Original Message -
From: Ivelin Ivanov [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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:captioni18n:textPassword/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=PasswordPassword/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:textpassword_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_fieldPassword/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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]



-
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]








-
Please check that your question  has not already been answered

Re: internalisation with schematron (XML-Form)

2002-10-28 Thread Mohamed El-Refaey
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 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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:captioni18n:textPassword/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=PasswordPassword/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:textpassword_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_fieldPassword/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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]



-
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]


 





-
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: internalisation with schematron (XML-Form)

2002-10-28 Thread Ivelin Ivanov

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 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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:captioni18n:textPassword/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=PasswordPassword/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:textpassword_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_fieldPassword/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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]



-
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]








-
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED

Re: internalisation with schematron (XML-Form)

2002-10-27 Thread Mohamed El-Refaey
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:captioni18n:textPassword/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=PasswordPassword/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:textpassword_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_fieldPassword/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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: internalisation with schematron (XML-Form)

2002-10-27 Thread Ivelin Ivanov

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 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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:captioni18n:textPassword/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=PasswordPassword/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:textpassword_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_fieldPassword/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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]



-
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




internalisation with schematron (XML-Form)

2002-10-24 Thread Michael Bald
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:textpassword_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_fieldPassword/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