Re: correct use of umlauts

2002-11-17 Thread Robert Sösemann
 I use MYSQL and I guess when I extract an attributes content, Cocoons ESQL
converts german umlauts into escaped entities.
I have this problem while generating a site keyword index.

I extract all keywords from my articles in the db, and then sort them
alphabetically. But the Problem is that I don't get the Umlauts sorted
correctly. What I mean is that the german O Umlaut which should be listed
with the normal O words appears after Z.

Thats why I want to filter those special characters with an XSP and tell the
following XSL to sort an umlaut O like Oe.

But that doesn't work.


- Original Message -
From: Joerg Heinicke [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, November 17, 2002 1:49 AM
Subject: Re: correct use of umlauts


 Hello Robert,

 you are coding XML and not HTML. The German umlauts are only declared in
 HTML as entities. In XML only lt;, gt;, apos;, quot; and ..; (which
 one was the 5th) are known?

 Why do you have Ouml; in your database? This would be really bad: a
 database should store a character in it, not an entity, which will be
 later interpreted as a character.

 Joerg

 Robert Sösemann wrote:
  Hello, who can help,
 
 
  I have the following code fragment in my xsp page, but I always get an
error
  because of the use of german umlaut entities like Ouml;.
 
xsp:logic
  String keyword = esql:get-string
  column=k.word/;
  String firstletter =
keyword.substring(0,6);
  String sortable = keyword;
 
 
  if( firstletter == Ouml; ||
  firstletter == ouml;
  ||  firstletter == Auml; ||
  firstletter == auml;
  ||  firstletter == Uuml; ||
  firstletter == uuml;) {
  firstletter =
  firstletter.substring(1,1).toUpperCase();
  sortable = firstletter + e +
  keyword.substring(1);
  }
  /xsp:logic
 
  That's how I get it from my database. How can I escape this?
  I also experience that cocoon has a problem to resolve ... entites in
  general. I allways get the error The entity * was referenced, but not
  declared.
 
  What is wrong?
 
  Robert


 -
 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: correct use of umlauts

2002-11-17 Thread Joerg Heinicke
I would try to solve the problem at another point: The escaped entities 
should not be stored in the database. Are you sure they are in it? And 
do they get in it?

Joerg

Robert Sösemann wrote:
 I use MYSQL and I guess when I extract an attributes content, Cocoons ESQL
converts german umlauts into escaped entities.
I have this problem while generating a site keyword index.

I extract all keywords from my articles in the db, and then sort them
alphabetically. But the Problem is that I don't get the Umlauts sorted
correctly. What I mean is that the german O Umlaut which should be listed
with the normal O words appears after Z.

Thats why I want to filter those special characters with an XSP and tell the
following XSL to sort an umlaut O like Oe.

But that doesn't work.


- Original Message -
From: Joerg Heinicke [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, November 17, 2002 1:49 AM
Subject: Re: correct use of umlauts




Hello Robert,

you are coding XML and not HTML. The German umlauts are only declared in
HTML as entities. In XML only lt;, gt;, apos;, quot; and ..; (which
one was the 5th) are known?

Why do you have Ouml; in your database? This would be really bad: a
database should store a character in it, not an entity, which will be
later interpreted as a character.

Joerg

Robert Sösemann wrote:


Hello, who can help,


I have the following code fragment in my xsp page, but I always get an



error


because of the use of german umlaut entities like Ouml;.

 xsp:logic
   String keyword = esql:get-string
column=k.word/;
   String firstletter =



keyword.substring(0,6);


   String sortable = keyword;


   if( firstletter == Ouml; ||
firstletter == ouml;
   ||  firstletter == Auml; ||
firstletter == auml;
   ||  firstletter == Uuml; ||
firstletter == uuml;) {
   firstletter =
firstletter.substring(1,1).toUpperCase();
   sortable = firstletter + e +
keyword.substring(1);
   }
   /xsp:logic

That's how I get it from my database. How can I escape this?
I also experience that cocoon has a problem to resolve ... entites in
general. I allways get the error The entity * was referenced, but not
declared.

What is wrong?

Robert



-
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: correct use of umlauts

2002-11-17 Thread Joerg Heinicke
Last question should mean: *How* do they get in it?

Joerg

Joerg Heinicke wrote:

I would try to solve the problem at another point: The escaped entities 
should not be stored in the database. Are you sure they are in it? And 
do they get in it?

Joerg

Robert Sösemann wrote:

 I use MYSQL and I guess when I extract an attributes content, Cocoons 
ESQL
converts german umlauts into escaped entities.
I have this problem while generating a site keyword index.

I extract all keywords from my articles in the db, and then sort them
alphabetically. But the Problem is that I don't get the Umlauts sorted
correctly. What I mean is that the german O Umlaut which should be listed
with the normal O words appears after Z.

Thats why I want to filter those special characters with an XSP and 
tell the
following XSL to sort an umlaut O like Oe.

But that doesn't work.


- Original Message -
From: Joerg Heinicke [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, November 17, 2002 1:49 AM
Subject: Re: correct use of umlauts



Hello Robert,

you are coding XML and not HTML. The German umlauts are only declared in
HTML as entities. In XML only lt;, gt;, apos;, quot; and ..; (which
one was the 5th) are known?

Why do you have Ouml; in your database? This would be really bad: a
database should store a character in it, not an entity, which will be
later interpreted as a character.

Joerg

Robert Sösemann wrote:


Hello, who can help,


I have the following code fragment in my xsp page, but I always get an




error


because of the use of german umlaut entities like Ouml;.

 xsp:logic
   String keyword = esql:get-string
column=k.word/;
   String firstletter =




keyword.substring(0,6);


   String sortable = keyword;


   if( firstletter == Ouml; ||
firstletter == ouml;
   ||  firstletter == Auml; ||
firstletter == auml;
   ||  firstletter == Uuml; ||
firstletter == uuml;) {
   firstletter =
firstletter.substring(1,1).toUpperCase();
   sortable = firstletter + e +
keyword.substring(1);
   }
   /xsp:logic

That's how I get it from my database. How can I escape this?
I also experience that cocoon has a problem to resolve ... entites in
general. I allways get the error The entity * was referenced, but not
declared.

What is wrong?

Robert



-
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]




XMLForm UI Builder

2002-11-17 Thread Senhaji
Hello,

I've just finished playing with the XMLForm wizard example. I've learned a
lot of good concepts such as the separation between the content, the
presentation and the validation in the form building process. After that, I
started looking for an XMLForm builder that would help me speed up the form
building process. But without success! How can I explain to the management
that even building a simple Form with C2 will take ~3 days of development?
not easy -).

It could be very nice if from a form builder one can generate all the
necessary files for C2 (JavaBeans, XSL for transforming XMLForm widget to
HTML or whatever widget, XSL for the form layout, XML schema for
validation,...).

Are there any works in this area ?

Thanks in advance,

Senhaji


-
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: XMLForm UI Builder

2002-11-17 Thread Ivelin Ivanov
There is no current work on a XMLForm builder, to my knowledge.

But you are welcome to pitch in if you want.


Ivelin


- Original Message -
From: Senhaji [EMAIL PROTECTED]
To: Cocoon-Users [EMAIL PROTECTED]
Sent: Sunday, November 17, 2002 10:12 AM
Subject: XMLForm UI Builder


 Hello,

 I've just finished playing with the XMLForm wizard example. I've learned a
 lot of good concepts such as the separation between the content, the
 presentation and the validation in the form building process. After that,
I
 started looking for an XMLForm builder that would help me speed up the
form
 building process. But without success! How can I explain to the management
 that even building a simple Form with C2 will take ~3 days of development?
 not easy -).

 It could be very nice if from a form builder one can generate all the
 necessary files for C2 (JavaBeans, XSL for transforming XMLForm widget to
 HTML or whatever widget, XSL for the form layout, XML schema for
 validation,...).

 Are there any works in this area ?

 Thanks in advance,

 Senhaji


 -
 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: Problem running the Xform wizard-Howto tutorial

2002-11-17 Thread Ivelin Ivanov
You will probably save yourself some time if you start with the XMLForm
demo.
http://localhost:8080/cocoon/samples/welcome

The files are under webapp/samples/xmlform



Ivelin


- Original Message -
From: poornima ponnuswamy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, November 16, 2002 10:08 PM
Subject: Problem running the Xform wizard-Howto tutorial


 I am trying to run the Xform wizard-How to tutorial in

http://xml.apache.org/cocoon/howto/xmlform-wizard/howto-xmlform-wizard.html
 I get the resource not found error message. I copied
 the sitemap.xmap file and pasted in the location
 \src\webapp\samples\xmlform replacing the one initally
 that came with the cocoon package. Am I right? Can
 anyone help me with it
 Thanks for the time

 poorni

 __
 Do you Yahoo!?
 Yahoo! Web Hosting - Let the expert host your site
 http://webhosting.yahoo.com

 -
 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: XMLForm UI Builder

2002-11-17 Thread Senhaji
Thanks Ivelin.

-Message d'origine-
De : Ivelin Ivanov [mailto:[EMAIL PROTECTED]]
Envoyé : dimanche 17 novembre 2002 17:49
À : [EMAIL PROTECTED]
Objet : Re: XMLForm UI Builder


There is no current work on a XMLForm builder, to my knowledge.

But you are welcome to pitch in if you want.


Ivelin


- Original Message -
From: Senhaji [EMAIL PROTECTED]
To: Cocoon-Users [EMAIL PROTECTED]
Sent: Sunday, November 17, 2002 10:12 AM
Subject: XMLForm UI Builder


 Hello,

 I've just finished playing with the XMLForm wizard example. I've learned a
 lot of good concepts such as the separation between the content, the
 presentation and the validation in the form building process. After that,
I
 started looking for an XMLForm builder that would help me speed up the
form
 building process. But without success! How can I explain to the management
 that even building a simple Form with C2 will take ~3 days of development?
 not easy -).

 It could be very nice if from a form builder one can generate all the
 necessary files for C2 (JavaBeans, XSL for transforming XMLForm widget to
 HTML or whatever widget, XSL for the form layout, XML schema for
 validation,...).

 Are there any works in this area ?

 Thanks in advance,

 Senhaji


 -
 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: XMLForm UI Builder

2002-11-17 Thread Scott Warren
Senhaji,

An easy way that I have achieved this is to generate an XML document 
that has all the information (Java Bean properties + code, Form Elements 
etc) then I created a number of XSL Documents that take the XML doc and 
produce the JavaBean code, XMLForm.XSP, Validation Descriptor.XML etc. 
Then all you need to do is change the layout of the XMLForm as 
needed.. I use Ant to generate the files from the XML but you can 
use a Cocoon pipleine to generate the files.

Hope this helps

Scott Warren

Senhaji wrote:

Hello,

I've just finished playing with the XMLForm wizard example. I've learned a
lot of good concepts such as the separation between the content, the
presentation and the validation in the form building process. After that, I
started looking for an XMLForm builder that would help me speed up the form
building process. But without success! How can I explain to the management
that even building a simple Form with C2 will take ~3 days of development?
not easy -).

It could be very nice if from a form builder one can generate all the
necessary files for C2 (JavaBeans, XSL for transforming XMLForm widget to
HTML or whatever widget, XSL for the form layout, XML schema for
validation,...).

Are there any works in this area ?

Thanks in advance,

Senhaji


-
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: XMLForm UI Builder

2002-11-17 Thread Nicola Ken Barozzi

I've been using XYbrix (http://www.jbrix.org/kits/xybrix/overview.html) 
to edit xml files for some time and find it quite easy to use.
IIUC it uses xforms stuff to make the forms, and it's all GUI.
The license is apache compatible, so maybe it could help.

my 2c

Scott Warren wrote:
Senhaji,

An easy way that I have achieved this is to generate an XML document 
that has all the information (Java Bean properties + code, Form Elements 
etc) then I created a number of XSL Documents that take the XML doc and 
produce the JavaBean code, XMLForm.XSP, Validation Descriptor.XML etc. 
Then all you need to do is change the layout of the XMLForm as 
needed.. I use Ant to generate the files from the XML but you can 
use a Cocoon pipleine to generate the files.

Hope this helps

Scott Warren

Senhaji wrote:

Hello,

I've just finished playing with the XMLForm wizard example. I've 
learned a
lot of good concepts such as the separation between the content, the
presentation and the validation in the form building process. After 
that, I
started looking for an XMLForm builder that would help me speed up the 
form
building process. But without success! How can I explain to the 
management
that even building a simple Form with C2 will take ~3 days of 
development?
not easy -).

It could be very nice if from a form builder one can generate all the
necessary files for C2 (JavaBeans, XSL for transforming XMLForm widget to
HTML or whatever widget, XSL for the form layout, XML schema for
validation,...).

Are there any works in this area ?

Thanks in advance,

Senhaji


--
Nicola Ken Barozzi   [EMAIL PROTECTED]
- verba volant, scripta manent -
   (discussions get forgotten, just code remains)
-


-
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]




Does apply-imports work?

2002-11-17 Thread Phil Blake
Hi all,

I'm having a problem with apply-imports applying any imports.

Can someone in-the-know assure me that apply-imports is functional? 
Also, if there is any trick to using it as I haven't seen it work yet 
and I think I've got a pretty simple example.

Thanks in advance,

Phil



-
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]