Does this look familiar

2003-04-04 Thread Yves Vindevogel
   Thanks again for 
registeringImplements

 



1
Error while registering

The passwords you entered are not 
identical.
 
 history.back()



2
Error while registering

The password cannot be empty or all 
blanks.
 
 history.back()



3
Error while registering

The login cannot be empty or all 
blanks.
 
 history.back()



4
Error while registering

The email address cannot be empty or all 
blanks.
 
 history.back()





ERROR:  Cannot insert a duplicate key 
into unique index tblsiteregistereduser_login_key
Error while registering

There's already an entry on that email 
address in our databaseYou seem to be a registered user already.
If you have forgotten your 
password, you can have it resent to you on this page.
If you want to enter a different 
email addres, click on the "Back" button below."
    


history.back()





-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Managing users' permissions through the sitemap

2003-03-31 Thread Yves Vindevogel
Hi Amelie,

I do a similar thing, and I use an XSP with some scripting in it.
Here's the XSP

It's not through the sitemap, but maybe this helps you.

Yves



http://apache.org/xsp";
xmlns:esql="http://apache.org/cocoon/SQL/v2";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:xsp-session="http://apache.org/xsp/session/2.0";
create-session="true">




pierrefabre



select * from tblLogin
where name = ''
and password = '' ;



admin







Pierre Fabre Médicament














> Hi everybody,
>
> I have a problem, maybe simple, but I don't know how to deal with.
> I'm sure some of you have enough skills an experience to help me :)
>
> In my database, I've got a table managing the users' permissions.
> There's a global menu (for all the users).
> To know if an user is allowed to open a link from this menu, I need the
> user identifier (given by a session attribute) and an other identifier
> (like a request parameter which comes along with the link for example)
> Then, I want to check in my DB and :
>   - if it's ok, open the link
>   - if not, diplay an error message
>
> I guess I need to manage this on the sitemap level but I don't know what
> to use.
>
> Currently, I'm using an Authentication action which allows an logged user
> to access to the whole site but, as you can see, I want to be more
> restrictive for some sections of the site.
>
> Any idea would be welcome, thx in advance !
>
> Amelie

-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Shipping compiled translets rather than XSL files in plain text format

2003-03-29 Thread Yves Vindevogel
If all the links are available through menu's or pages, you could consider the 
tool "WGET" on Linux.  Wget has the option -R (I think) that allows you to 
download a complete site.  You can distribute that result.

> Is it possible to deploy Cocoon applications at customer sites just by
> installing compiled versions of XSL stylesheets (translets) rather than
> supplying them in plain text format?
>
> Thanks,
>
> Julio Lerm
> Chicago, IL

-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Newbie question about CSS display

2003-03-28 Thread Yves Vindevogel
Check your sitemap ... You probably don't have the correct pipeline/match for 
it.

> Forgive the elementary nature of this question, but I am new to Cocoon, my
> background is documentation and not development, and I have read and
> searched for an explanation for this weirdness without success.
>
> Using DocBook XML and the DocBook XSL with a customization layer, I want to
> change the styles using a CSS.
>
> My formatting changes are displayed when I run the transformation from the
> command line, but not when I use Cocoon.
>
> Is this to be expected, or what? Does the transformation occur differently
> when using Cocoon than when using Xalan alone?
>
> A helpful link or answer would be appreciated.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to include XSP at certain places in XML?

2003-03-20 Thread Yves Vindevogel
You can only use an XSP as a generator, thus you must use that first in the 
pipeline.
Secondly, you could use an XSL file to render that file.
In that XSL you can use e.g. the document() function to include the other XML 
file.
If you need to include two XSP in one pipeline, you must call them with the 
cocoon:// prefix, in order to have them generated.

I also think you can use the CInclude and XInclude with that method.
You could include with the cocoon:// prefix


> Hello,
>
> I know I can include static XML content at any place with cinclude, that
> works fine, but how can I include the result of an XSP file in a XML file,
> at a place of my choice ( i need some database entries to build up the
> whole site, that's why I nedd XSP inside my XML) ?
> I know that you can aggregate XSP and XML with the help of the sitemap, but
> if I use this option I don't have the possibilty to place the result of the
> xsp code insight my xml file, only before or after a certain xml file and I
> don't want to split my xml files in 10 lines long pieces to puzzle them
> together in the sitemap, that wouldn't make any sense, but would work :-)
>
> So if anybody of you knows how to do it, and I'm sure somebody does, please
> tell me, because I searched for an answer in this list (the messages of the
> last 3 months) but couldn't find any solution.
>
> And I have a second question, what's the difference between cinclude and
> xinclude, is there any?
>
> Thanks in advance.
>
> Regards
> Steve
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Passing parameters from xsp to xsp

2003-03-18 Thread Yves Vindevogel
No, that's the same ...
When the .html is called, the XSP can use the 
However, it calls a new match, where the values of the request are no longer 
available

That's exactly my problem.

> I don't know if it's possible but why don't you try this :
>
> 
> 
>   
>   
> 
> 
> 
>
> 
>
>
> Lionel
>
> At 22:44 17/03/2003 +0100, you wrote:
> >Hi,
> >
> >I need to pass request parameters from one XSP to another
> >
> >This is my sitemap
> > 
> >  > type="xsp"/>
> >  > src="xsl/db.generatexsp.xsl"/> 
> > 
> > 
> >  >src="http://web/implements/db/{1}/{2}.xsp"/>
> >
> > 
> > 
> >
> >As you can see, I call the XSP from my call to the HTML.
> >I need one XSP as a generator, because it must execute an ESQL query.
> >But, the XSP called in that match (html match) calls another XSP that uses
> >the
> >request parameters.
> >
> >However, they are not passed in that call.  I cannot use  >name="use-request-parameters"> since this is for a transformer.
> >
> >I need the same kind of thing, but for a generator.
> >
> >Anyone with an idea ??
> >
> >Some code:
> >
> >This is my XSP that is called:
> >
> > > xmlns:xsp="http://apache.org/xsp";
> >
> > xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> > xmlns:xsp-session="http://apache.org/xsp/session/2.0";
> > create-session="true">
> >
> > 
> > 
> > select fnSiteRegisteredUserInsert
> >('',
> >
> > '')
> > 
> > 
> > 
> > 0
> > You have been
> > registered 
> > 
> > 
> > 
> > ERROR: Cannot insert a duplicate
> > key into unique index tblsiteregistereduser_login_key
> > You already exist
> > 
> > 
> > 
> >
> >
> >As you can see, that needs the parameters.
> >
> >
> >This is the XSL for transformation to a valid XSP
> >
> >
> > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> > xmlns:fo="http://www.w3.org/1999/XSL/Format";
> > xmlns:xsp="http://apache.org/xsp";
> > xmlns:esql="http://apache.org/cocoon/SQL/v2";
> >
> > xmlns:xsp-request="http://apache.org/xsp/request/2.0";
> > xmlns:xsp-session="http://apache.org/xsp/session/2.0";
> >
> >
> >
> > 
> > 
> >
> > 
> >
> > 
> > implements
> >
> > 
> >     
> >  > select="query"/>
> > 
> >
> > 
> > 
> > 
> >
> >
> > 
> > 
> > 
> >
> > 
> >
> >
> > 
> >     
> > 
> >
> > 
> > 
> > 
> >
> >
> >--
> >Met vriendelijke groeten,
> >Kind regards,
> >Bien à vous,
> >
> >Yves Vindevogel
> >
> >Implements
> >Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
> >Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
> >Mail: [EMAIL PROTECTED]  --  www.implements.be
> >
> >Quote: The winner never says participating is more important than winning.
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Passing parameters from xsp to xsp

2003-03-17 Thread Yves Vindevogel
Hi,

I need to pass request parameters from one XSP to another

This is my sitemap






http://web/implements/db/{1}/{2}.xsp"/>




As you can see, I call the XSP from my call to the HTML.
I need one XSP as a generator, because it must execute an ESQL query.
But, the XSP called in that match (html match) calls another XSP that uses the 
request parameters. 

However, they are not passed in that call.  I cannot use  since this is for a transformer.

I need the same kind of thing, but for a generator.

Anyone with an idea ??

Some code:

This is my XSP that is called:

http://apache.org/xsp";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:xsp-session="http://apache.org/xsp/session/2.0";
create-session="true">



select fnSiteRegisteredUserInsert 
('',
'')



0
You have been registered




ERROR: Cannot insert a duplicate key 
into unique index tblsiteregistereduser_login_key
You already exist





As you can see, that needs the parameters.


This is the XSL for transformation to a valid XSP


http://www.w3.org/1999/XSL/Transform";
xmlns:fo="http://www.w3.org/1999/XSL/Format";
xmlns:xsp="http://apache.org/xsp";
xmlns:esql="http://apache.org/cocoon/SQL/v2";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:xsp-session="http://apache.org/xsp/session/2.0";

>







implements




















    

    




-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: XSP generated, problem with cocoon:/ prefix

2003-03-17 Thread Yves Vindevogel

I'm willing to help find this one, so ask anything you need to know if you 
want to solve this ...

Unfortunately, my XSL contains this declaration, as you can see in my code and 
otherwise, the generation throught http:// would not work.

My XSL file is this one, containing the declarations


http://www.w3.org/1999/XSL/Transform"=20
xmlns:fo=3D"http://www.w3.org/1999/XSL/Format";
xmlns:xsp-session=3D"http://apache.org/xsp/session/2.0";
xmlns:xsp-request=3D"http://apache.org/xsp/request/2.0"=20
xmlns:esql=3D"http://apache.org/cocoon/SQL/v2"=20
xmlns:xsp=3D"http://apache.org/xsp";>


http://apache.org/xs=
p"
   =20
xmlns:esql=3D"http://apache.org/cocoon/SQL/v2";
   =20
xmlns:xsp-request=3D"http://apache.org/xsp/request/2.0";
   =20
xmlns:xsp-session=3D"http://apache.org/xsp/session/2.0";
create-session=3D"true">





implements


select count(*) as=20
fieldcount from tblSiteRegisteredUser





   =20









   =20








=09



> Hello Yves,
>
> that's more than strange and definitively a bug. It's a parsing
> exception as you can read. It's very clear and means, that a namespace
> declaration is missing. ou can check, whether your xsp has a namespace
> declaration for "xsp-request". But independent of a possible bug in your
> XSP - the namespace - there is a bug in Cocoon too.
>
> Regards,
>
> Joerg
>
> Yves Vindevogel wrote:
> > Sorry everybody,
> > This is not a repost, but might be a bug in cocoon.
> > I found a solution to my other problem, but I wanted to inform this
> > group.
> >
> > Consider this line in the sitemap
> > http://web/implements/db/{1}/{2}.xsp"; type="xsp"/>
> >
> > This works, whereas the line
> > 
> >
> > gives this error:
> >
> > message The namespace prefix "xsp-request" was not declared.
> >
> > description org.apache.cocoon.ProcessingException: Failed to execute
> > pipeline.: org.xml.sax.SAXParseException: The namespace prefix
> > "xsp-request" was not declared.
> >
> > If anybody can point me at any stupidity, please do, but I think it's a
> > cocoon problem Anyway, I got a solution.
> >
> >
> > 
> > 
> >  > src="xsl/db.generatexsp.xsl"/> 
> > 
> > 
> >      > src="http://web/implements/db/{1}/{2}.xsp"; type="xsp"/>
> >
> > 
> > 
> > 
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



XSP generated, problem with cocoon:/ prefix

2003-03-17 Thread Yves Vindevogel
Sorry everybody, 
This is not a repost, but might be a bug in cocoon.
I found a solution to my other problem, but I wanted to inform this group.

Consider this line in the sitemap
http://web/implements/db/{1}/{2}.xsp"; type="xsp"/>

This works, whereas the line


gives this error:

message The namespace prefix "xsp-request" was not declared.

description org.apache.cocoon.ProcessingException: Failed to execute
pipeline.: org.xml.sax.SAXParseException: The namespace prefix "xsp-request"
was not declared.

If anybody can point me at any stupidity, please do, but I think it's a cocoon 
problem Anyway, I got a solution.








http://web/implements/db/{1}/{2}.xsp"; type="xsp"/>



    

-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Generated XSP page cannot be used as input in generator

2003-03-17 Thread Yves Vindevogel
Repost 

Hi,

I try to generate an XSP page by using an XSL file.  I get an error when I
 try to use the generated page.  The error is:


message The namespace prefix "xsp-request" was not declared.

description org.apache.cocoon.ProcessingException: Failed to execute
pipeline.: org.xml.sax.SAXParseException: The namespace prefix "xsp-request"
was not declared.


This is my sitemap














My XSL file is this one, containing the declarations


http://www.w3.org/1999/XSL/Transform";
xmlns:fo="http://www.w3.org/1999/XSL/Format";
xmlns:xsp-session="http://apache.org/xsp/session/2.0";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:esql="http://apache.org/cocoon/SQL/v2";
xmlns:xsp="http://apache.org/xsp";>


http://apache.org/xsp";

xmlns:esql="http://apache.org/cocoon/SQL/v2";

xmlns:xsp-request="http://apache.org/xsp/request/2.0";

xmlns:xsp-session="http://apache.org/xsp/session/2.0";
create-session="true">





implements


select count(*) as
fieldcount from tblSiteRegisteredUser



























The strange thing is, when I generate with the type equal to "xml", it does
generate the XML.  When I save it to "test.xsp" (that's the line in comment)
and try to use it from "file", it works.  So the generated file by XSL is
valid.  But when I use it from the pipelines, it does not work because of
that error 

Any idea ??

--
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---

-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Generating XSP from XSL fails with namespace error

2003-03-17 Thread Yves Vindevogel
Hi,

I try to generate an XSP page by using an XSL file.  I get an error when I try 
to use the generated page.  The error is:


message The namespace prefix "xsp-request" was not declared.

description org.apache.cocoon.ProcessingException: Failed to execute 
pipeline.: org.xml.sax.SAXParseException: The namespace prefix "xsp-request" 
was not declared.


This is my sitemap














My XSL file is this one, containing the declarations


http://www.w3.org/1999/XSL/Transform"; 
xmlns:fo="http://www.w3.org/1999/XSL/Format";
xmlns:xsp-session="http://apache.org/xsp/session/2.0";
xmlns:xsp-request="http://apache.org/xsp/request/2.0"; 
xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
xmlns:xsp="http://apache.org/xsp";>


http://apache.org/xsp";

xmlns:esql="http://apache.org/cocoon/SQL/v2";

xmlns:xsp-request="http://apache.org/xsp/request/2.0";

xmlns:xsp-session="http://apache.org/xsp/session/2.0";
create-session="true">





implements


select count(*) as 
fieldcount from tblSiteRegisteredUser



























The strange thing is, when I generate with the type equal to "xml", it does 
generate the XML.  When I save it to "test.xsp" (that's the line in comment) 
and try to use it from "file", it works.  So the generated file by XSL is 
valid.  But when I use it from the pipelines, it does not work because of 
that error 

Any idea ??

-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: manage the sessions ?

2003-03-17 Thread Yves Vindevogel
You can use  for this.

Docs: the website under XSP / Session
Two good books: 
Cocoon, Building XML applications (Langham / Ziegeler)
Cocoon, Developer's handbook (Moczar / Aston)

> What actions should I use ?
> How does they act between the pipeline ?
> Is there any documentation, besides besides these on the cocoon site ?
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Get a sitemap parameter for an xsl page

2003-03-17 Thread Yves Vindevogel
You can't do that ... (In my humble opinion)

Unless ... you declare it in an XML file, and use the aggregation (or include) 
with that file in each pipeline.
Or, you can use the "document()" function in XSL to read the content of that 
single XML file, to avoid the aggregation.

> I think there is a confusion.
>
> I only want to use a parameter which have the same value in all the
> pipelines without declare it in each pipeline.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Get a sitemap parameter for an xsl page

2003-03-17 Thread Yves Vindevogel

You don't have to declare it again.

This is an extract of my sitemap.  Notice the parameter "relpath".









This is the XSL (relevant part).  Notice the declaration of the parameter on 
top, and it's use in the code.


http://www.w3.org/1999/XSL/Transform";
>







/css/general.css












> I don't do that because I want my sitemap to choose the value of the
> parameter.
>
> I read some messages and it seems that's it's not possible to use global
> parameters in the sitemap with cocoon 2.0.4.
>
> At 13:48 17/03/2003 +0100, you wrote:
> >Why don't you want to declare it in the XSL ?
> >Otherwise, it's very simple: 
> >and you can use it as 
> >
> > > Is it possible to get a sitemap parameter and using it into an xsl
> > > page. Here is my pipeline:
> > >
> > > 
> > >
> > >
> > >   
> > >
> > >
> > >
> > > 
> > >
> > > I want to use the parameter interval in the xslt transformation. But I
> > > don't want to declare it again into the xslt transformer.
> > >
> > >
> > > -----
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >--
> >Met vriendelijke groeten,
> >Kind regards,
> >Bien à vous,
> >
> >Yves Vindevogel
> >
> >Implements
> >Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
> >Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
> >Mail: [EMAIL PROTECTED]  --  www.implements.be
> >
> >Quote: The winner never says participating is more important than winning.

-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Generator for OpenOffice, think I got it

2003-03-14 Thread Yves Vindevogel
   























odd


even

        































Et voila   That's it 
Once again, thanks to all who helped.

Could somebody please check this to see if he/she could reproduce my work on 
his/her machine ??



-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Generator for OpenOffice

2003-03-14 Thread Yves Vindevogel
Ha, you're one step closer to the solution.
If you want a quick solution: here it is :

Open the /resources/entities/office.dtd file
Remove all the entries from it, making it a completely empty file

Retry, and it will work !!

I got to that point yesterday too ...
But now I'm in the  to get the multiple entries out again, and 
I have new errors.


> On Fri, 14 Mar 2003 10:29:42 +0100
>
> Yves Vindevogel <[EMAIL PROTECTED]> wrote:
> > Yury,
> >
> > I've been searching on this problem for some days now.  And I'm close to
> > finding a solution.
> >
> > Problem is that the jar: protocol doesn't talk to cocoon, you must
> > include real path names.
> >
> > Upayavira, somebody on this group, gave me a hint to this problem.  You
> > must include the dtd in your resourses/entities and add some lines to
> > your catalog file
> >
> > -- this is the default OASIS catalog for Apache Cocoon --
> >
> > OVERRIDE YES
> >
> > -- Open Office DTDs --
> > PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "office.dtd"
> > PUBLIC "-//OpenOffice.org//DTD Manifest 1.0//EN" "Manifest.dtd"
> >
> >
> > I then had the problem solved with the DTD in the wrong place, but I got
> > other errors.   I'm now correcting them.  I got it working once, with a
> > testfile, but I got new errors with other files.  Now looking into them.
> >
> > I hope to have a method this in half a day.  And I will post it then, off
> > course.
> >
> > > But I get the another error:
> > > Exception during processing of
> > > jar:http://localhost/implements/sxw/test.sxw!/content.xml
> > > java.io.FileNotFoundException:
> > > JAR entry office.dtd not found in
> > > /usr/local/jakarta/catalina-4.1.12/temp/jar_cache50849.tmp
> > >
> > > Why cocoon seek the DTD in the another way in my case?
>
> Thanks for your help, Yves. You right, I got other errors also, like:
>
> org.apache.cocoon.ProcessingException:
> Failed to execute pipeline.:
> org.xml.sax.SAXParseException: A '(' character or an element type is
> required in the declaration of element type "draw:text-box".
>
> Also, I put the following files into the resourses/entities:
> chart.mod drawing.mod  form.mod  nmspace.mod  script.modstyle.mod 
> text.mod datastyl.mod  dtypes.mod   meta.mod  office.mod   settings.mod 
> table.mod

-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wml generator ?

2003-03-14 Thread Yves Vindevogel
Hmm, okay ...
Can't you use the HTML generator ?  WML is similar to HTML.

> Yves, yes we can serialize but my problem is th generato. I think that
> Antonio is rights, there's no WML generator...
>
> -Original Message-
> From: Yves Vindevogel [mailto:[EMAIL PROTECTED]
> Sent: vendredi 14 mars 2003 10:50
> To: [EMAIL PROTECTED]
> Subject: Re: wml generator ?
>
>
>
> Sorry to correct you, Antonio, but yes you can ...
> you can serialize with 
>
> Nicolas: The book "Cocoon, building XML Applications" from Langham and
> Ziegeler (both posters on this community too) has a chapter on it: chapter
> 5. On page 131 you can see how they do it ...
>
> > zze-MORY Nicolas FTRD/DMI/REN dijo:
> > > does exists a WML generator for cocoon ?
> >
> > NO. There is only a HTML and a XML generator
> >
> > Antonio Gallardo
> >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: wml generator ?

2003-03-14 Thread Yves Vindevogel

Sorry to correct you, Antonio, but yes you can ...
you can serialize with 

Nicolas: The book "Cocoon, building XML Applications" from Langham and 
Ziegeler (both posters on this community too) has a chapter on it: chapter 5.  
On page 131 you can see how they do it ...


> zze-MORY Nicolas FTRD/DMI/REN dijo:
> > does exists a WML generator for cocoon ?
>
> NO. There is only a HTML and a XML generator
>
> Antonio Gallardo
>
> > - To
> > unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Generator for OpenOffice

2003-03-14 Thread Yves Vindevogel
Yury,

I've been searching on this problem for some days now.  And I'm close to 
finding a solution.  

Problem is that the jar: protocol doesn't talk to cocoon, you must include 
real path names.

Upayavira, somebody on this group, gave me a hint to this problem.  You must 
include the dtd in your resourses/entities and add some lines to your catalog 
file

-- this is the default OASIS catalog for Apache Cocoon --

OVERRIDE YES

-- Open Office DTDs --
PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "office.dtd"
PUBLIC "-//OpenOffice.org//DTD Manifest 1.0//EN" "Manifest.dtd"


I then had the problem solved with the DTD in the wrong place, but I got other 
errors.   I'm now correcting them.  I got it working once, with a testfile, 
but I got new errors with other files.  Now looking into them.

I hope to have a method this in half a day.  And I will post it then, off 
course.


>
> But I get the another error:
> Exception during processing of
> jar:http://localhost/implements/sxw/test.sxw!/content.xml
> java.io.FileNotFoundException:
> JAR entry office.dtd not found in
> /usr/local/jakarta/catalina-4.1.12/temp/jar_cache50849.tmp
>
> Why cocoon seek the DTD in the another way in my case?

-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Integrate javascript into xsp

2003-03-13 Thread Yves Vindevogel
BTW, If you need to execute an SQL query, you need to go back to your server.
Use a window.location for that, or a submit.  Then generate the page on the 
server and send it back.  If you need to modify only a part of your screen 
(like you want to show the search results under your search parameters), use 
an .  

> Hi,
> I want to create a function on a button ("OnClick" action) that executes
> an SQL query. Is it possible to create a function (with xsp:logic) or
> something like that?
> Thanks
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Integrate javascript into xsp

2003-03-13 Thread Yves Vindevogel
Something like this ??
(I use it on body.onload, but it's the same for you)



http://apache.org/xsp";
xmlns:esql="http://apache.org/cocoon/SQL/v2";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:xsp-session="http://apache.org/xsp/session/2.0";
create-session="true">




pierrefabre



select * from tblLogin
where name = ''
and password = '' ;



admin







Pierre Fabre Médicament














If you need to call an extensive function, put it in your 
and put CDATA tags round it, like this


<![CDATA[

function ShowDiv(id)
{
//IE 4+
if(document.all)
{
for (i = 1; i <= 4; i++)
{
document.all.item("corner" + 
i).style.display = "none" ;
document.all.item("sub" + 
i).style.display = "none" ;
} ;

document.all.item("corner" + 
id).style.display = ""  ;
document.all.item("sub" + 
id).style.display 
= "" ;
}
//NS 6
else if (document.getElementById)
{
for (i = 1; i <= 4; i++)
{
Element = 
document.getElementById("corner" + i);
Element.style.display = "none";
Element = 
document.getElementById("sub" + i);
Element.style.display = "none";
}

Element = 
document.getElementById("corner" + id);
Element.style.display = "";
Element = 
document.getElementById("sub" + id);
Element.style.display = "";

} ;


return (false) ;
}

]]>






> Hi,
> I want to create a function on a button ("OnClick" action) that executes
> an SQL query. Is it possible to create a function (with xsp:logic) or
> something like that?
> Thanks
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Generator for OpenOffice

2003-03-13 Thread Yves Vindevogel
I don't know what does entity catalogs are for, to be honest 
But okay, this is my situation

I put the cocoon.war in the tomcat webapps folder, resulting in a new folder 
"cocoon".  heheh ;-))
In my original sitemap, I mounted some extra sitemaps, one for every client 
cocoon web, so, I mounted the "Implements" web, under http://web/implements 
(web is the name of my development server)

I now edited the cocoon.xconf file with this entry
  
   
   
  


Is it that what you mean ??

> On 13 Mar 2003 at 20:28, Conal Tuohy wrote:
> > > Well,
> > >
> > > That's the problem.
> > >
> > > The SXW file does not contain any DTD itself.  They are all
> > > on my hard drive,
> > > from the installation of OpenOffice, but not in the files
> > > themselves.
>
> Have you tried using entity catalogs? Look in the cocoon.xconf, you'll find
> an entry for an . The catalog file is probably in $COCOON-
> ROOT/resources/entity/catalog. Load that up, and see if you can edit it to
> map the DTD to the DTD file.
>
> I've never used it, but it is worth trying for this.
>
> Regards, Upayavira
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Generator for OpenOffice

2003-03-13 Thread Yves Vindevogel

Oops, my mistake
This should be the correct pipelines, with the same error


http://web/implements/sxw/{1}!/{2}.xml"/>















-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Generator for OpenOffice

2003-03-13 Thread Yves Vindevogel

>
> Can you please post your pipelines and the error you receive?
>

My directories:
http://web/implements  contains
/dtd with office.dtd
/sxw with my sxw file

This is the complete pipeline




http://web/implements/sxw/{1}!/{2}.xml"/>



http://web/implements/dtd/office.dtd"; mime-type="text/plain"/>












The error 

message File "jar:http://web/implements/sxw/testfile.sxw!/office.dtd"; not 
found.

description org.apache.cocoon.ProcessingException: Failed to execute 
pipeline.: org.xml.sax.SAXParseException: File 
"jar:http://web/implements/sxw/testfile.sxw!/office.dtd"; not found.

sender

It's the jar thing that wonders me.  I think the jar: protocol does not use 
the pipelines to retrieve the DTD file.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Generator for OpenOffice

2003-03-12 Thread Yves Vindevogel
Well, 

That's the problem. 

The SXW file does not contain any DTD itself.  They are all on my hard drive, 
from the installation of OpenOffice, but not in the files themselves.

When I manually add all the DTDs (there are several) to the Zipped file, it 
works (at least, it gives another error in a DTD).  But that is not really 
the solution.  I cannot manually add all the files to my OpenOffice files.

When I tried to add the DTD to my webdirectories and created pipelines for 
them, I still got the error that the Jar: protocol could not find anything 
within the zip.  Appearantly, that protocol does not match itself again 
against the pipelines ...

> Hi Yves.
>
> You will need other pipelines to extract non-xml resources from the sxw
> file as well. (Presumably the sxw file contains the DTD?)
>
> e.g.
>
> 
>   http://web/implements/{1}!/{2}.dtd";
> mime-type="text/plain"/>
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Generator for OpenOffice

2003-03-12 Thread Yves Vindevogel
Hi all, 

I tested your suggestions and this is what I have ...



http://web/implements/{1}!/{2}.xml"; mime-type="text/xml"/>













This works !!   I get to see the XML in my browser.
HOWEVER ...

When I replace the  with  for the content.xml within 
my file, Cocoon give me an error.

message File "jar:http://web/implements/test.sxw!/office.dtd"; not found.

description org.apache.cocoon.ProcessingException: Failed to execute 
pipeline.: org.xml.sax.SAXParseException: File 
"jar:http://web/implements/test.sxw!/office.dtd"; not found.

When I open up the file with Ark, the DTD is indeed not in the file, but for 
generation within cocoon, it seems to have to be there 

Now, how can I bypass that, how can I tell cocoon to generate the file without 
parsing it with the DTD ??

Any help would be appreciated




> Good point, Upayavira!
>
> I've taken your suggestion and implemented an example:
> http://wiki.cocoondev.org/Wiki.jsp?page=JarProtocolExample
>
> Cheers!
>
> Con
>
> > > Basically, it's the ZipGenerator I need with some extras, but before
> > > writing the code myself, I was wondering whether someone had done it
> > > before me.
> >
> > Asking a similar question, I pointed someone at an example in
> > the Langham/Ziegler
> > book (a zip source). Someone else then made a point that the
> > jar: protocol, built into
> > the JDK, can read Zip files. So check out the accessing files
> > with jar: in the JDK and
> > let us know where you get to!
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Generator for OpenOffice

2003-03-11 Thread Yves Vindevogel
I know the way OpenOffice stores its files (a set of xml files into a zip with 
another extension).  That's why I was wondering whether a generator exists 
...
I wrote a little script in perl (actually my first usefull perl script at the 
time) that extracts all the files into one .xml file which I then use but I 
want to prevent that step and just drop my files onto my cocoon directory and 
generate from them.

Basically, it's the ZipGenerator I need with some extras, but before writing 
the code myself, I was wondering whether someone had done it before me.


> OpenOffice 1.0 files are actually a set of XML files Zipped. If you rename
> an Open Office document to Zip you will find that the Draw application for
> example has an SVG file inside. Not sure if it's possible with Cocoon to
> generate the 4 files and the ZIP (anyone ??).
>
> Hope this helps
>
>
> Scott Warren
>
> -----Original Message-
> From: Yves Vindevogel [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 11 March 2003 7:43 PM
> To: [EMAIL PROTECTED]
> Subject: Generator for OpenOffice
>
>
> Anyone who knows whether there's a generator for OpenOffice files ?
>
> Kind regards,
> Yves Vindevogel
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

oo2xml
Description: Perl program
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Generator for OpenOffice

2003-03-11 Thread Yves Vindevogel
Anyone who knows whether there's a generator for OpenOffice files ?

Kind regards,
Yves Vindevogel


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: encoding and xsp

2003-03-07 Thread Yves Vindevogel
Judith is correct, you should put this encoding in the ,
but,
if you use  or whatever, put it also in the transformer and generator.

Second thing, since you are German, so in the Euro zone, you may consider the 
ISO-8859-15 encoding, which is the same as the -1 encoding, but includes the 
Euro character.

Third thing, I work with a Postgres database.  In my connection pool, I 
included the charset also in my JDBC connection string
jdbc:postgresql/..?charSet=ISO-8859-15


> Try specifying an encoding inside the serializer declaration in your
> sitemap:
 
>  
> ISO-8859-1
>   
>  
> HTH Judith
> 
> 
> -Ursprüngliche Nachricht-
> Von: boessem [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 7. März 2003 09:39
> An: Cocoon-Users
> Betreff: encoding and xsp
> 
> 
> hi,
>  
> i do not understand why the encoding works different for words i use wihtin
> the xsp document and words i get via the url.
 
> an example:
>  
> I have got a form, where students should be able to apply for a specific
> exame. wihtin this form (a xsp document) there are some explainations of
> how to use the form and what to fill in. characters within these sentences 
> like ä,ö,ü etc. are getting transformed into html perfectly. (so no
> trouble).
 
> but:
>  
> i have got text fields where students are able to fill in their names. so
> if a name uses characters like ä,ö,ü etc. these names are transformed
> inot funny characters like e.g. Bößem into Bößem . 
 
> i tried to solve this problem, by adding to the header of the xsp and xsl
> document the encoding sceme, like  encoding="ISO-8859-1"?>, but still the same problem.
 
> does anyone know how to solve this problem.
>  
> thanks and regards
> 
> 

-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: for

2003-03-07 Thread Yves Vindevogel
I face the same problem.

Untill now, I have found no way to "dynamically" generate parameters.
The  must always include the "name" attribute.
Assigning an  never seems to work for me either.

I was trying to work around this with the tags
 and 
The names thing works (returning all the params in xml format or string)
but the values always came up empty.

I'm still looking for a solution to this problem.
So I will keep listening.




> I try to get each text field (paranameX) where X are the text fields
> from the previous page :
>
> ...
>
>   INSERT INTO Process_Parameters
>   (pp_process, pp_pmid, pp_name)
>   VALUES
>   ...,
>   <'xsp-request:get-parameter> name="name">paranamemycount
>   ')
> ...
>   
>   mycount = mycount + 1;
>   
> ...
>
>
> This line :
>   <'xsp-request:get-parameter> name="name">paranamemycount
>   ')
>
> Gives me the following error :
> org.apache.cocoon.ProcessingException: Exception in
> ServerPagesGenerator.generate(): java.lang.NullPointerException
>
> -----
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Met vriendelijke groeten,
Kind regards,
Bien à vous,

Yves Vindevogel

Implements
Kempische Steenweg 206  --  3500 Hasselt  --  Belgium
Phone/Fax: +32 (11) 43.55.76  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Simple example

2003-02-04 Thread Yves Vindevogel
Jeremy Ashton, who recently published a book on Cocoon, wrote a very good "two 
idots guide to Cocoon".  This document is still online somewhere.  I guess 
Jeremy can point it out, he's a frequent reader of this user-list.
That document gave me a lot of support and help, back in the days

> Re: Hopefully some encouragement
>
> An introductory document would prove extremely useful for the Cocoon
> cause, as it sounds great in both concept and implementation. Some of us
> are in positions to recommend xml, xslt over the forsaken jsp, struts,
> ejb method, but cannot afford the time to master yet another complex
> st*nking framework.
>
>
> -Original Message-
> From: Robert Simmons [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 04, 2003 2:10 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Simple example
>
> Once more ? =)
>
> Its in progress. Right now beginner documentation is a little thin.
>
> -- Robert
>
> - Original Message -
> From: "Stefan Riegel" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, February 03, 2003 8:41 PM
> Subject: Re: Simple example
>
> > Alireza Fattahi wrote:
> > > Hi,
> > >
> > > The currently cocoon web application is very complex. Is there any
>
> light
>
> > > weight example out there; some thing like blank web application in
>
> struts.
>
> > > Alireza.
>
> -
>
> > > 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]>
>
> > Alireza,
> >
> > I remember my first steps with cocoon some time ago. I removed step by
> > step lines from the sitemap until I reached a minimal hello-world
> > application. While removing lines, I did read the comments etc. I was
>
> a
>
> > good exercise.
> >
> > I did plan doing the same with the cocoon.xconf, but I lost patience.
> >
> > Regards
> > Stefan
> >
> >
> > -
> > 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]>

-- 
Kind regards,
Yves Vindevogel

Implements
Kortrijkstraat 2 bus 1  --  9700 Oudenaarde  --  Belgium
Phone/Fax: +32 (55) 45.74.73  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
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: experiences with Morphon?

2003-02-03 Thread Yves Vindevogel
I did not like it at all ...

On Linux I prefer KATE or recently ECLIPSE
On Windows I prefer XMLSpy

Personally, I think nothing compares with XMLSpy, based on possibilities, 
only, it runs on Windows 



>
> Has anyone experiences with Morphon - XML Editor
> (http://www.morphon.com/xmleditor/index.shtml)?


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: Hello and question

2003-01-21 Thread Yves Vindevogel
You can use XPath in XSL.
Something like  
> 
>   P12345
>   
>
>   2001-03-12
>   1.25
>
>   2001-03-13
>   1.28
>
>   
> 
>
> ... etc.
>
> Now: using the various mechanisms available through Cocoon, how best
> would I "query" a given file (directly, as opposed to through a
> database) via an HTML form, e.g., to extract and display only
> selected dates/values?
>

-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: SessionTransformer - Getting request parametervalues

2003-01-21 Thread Yves Vindevogel
I don't see the reason to use the SessionTransformer ...
Use the XSP generator.  This has the Request object.
One of the tags in  is the URL, the querystring and all the 
parameters (see xml.apache.org/cocoon ... user guide ... xsp, bottom of the 
page, all the properties)
You'll have everything you need there to write your code ...

> Hi,
>
> I'm looking for help in how to extract parameter
> values using SessionTransformer.
>
> My uri looks like this:
>
> myaction?item=1&item=2&item=3
>
>
> My goal is to turn this into the following xml:
>
> 
>  1
>  2
>  3
> 
>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: Dynamic query in xsp:logic and esql:query (partly solved)

2003-01-05 Thread Yves Vindevogel
Hi, 

I had tried this:
http://apache.org/xsp";
xmlns:esql="http://apache.org/cocoon/SQL/v2";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:xsp-session="http://apache.org/xsp/session/2.0";
create-session="true">




pierrefabre



String myQuery = "select * from vwProducts" ;


myQuery




And this didn't work !!  I says: variable myQuery not found in class . 
When I do this, it works :

Guess the first part of the problem already got me on the wrong way 

http://apache.org/xsp";
xmlns:esql="http://apache.org/cocoon/SQL/v2";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:xsp-session="http://apache.org/xsp/session/2.0";
create-session="true">



String myQuery = "select * from vwProducts" ;






pierrefabre



myQuery




NOW:
When I do this:

String myQuery;

myQuery = "select * from vwProducts" ;


It still gives me "class myQuery not found in class ."
It only works when I immediatly assign it (String s = "jkml";)
I can't do anything on the string afterwards ...

How is that possible ??



> Yves -
>
> Why not build your select statement as a string variable inside an
>  block after the root user tag, and then reference it thusly:
>
> 
>   myQuery
> 
>
> I do this all the time and it works perfectly.
>
> Regards,
>
> Lajos

-- 
Kind regards,
Yves Vindevogel

Implements
Kortrijkstraat 2 bus 1  --  9700 Oudenaarde  --  Belgium
Phone/Fax: +32 (55) 45.74.73  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

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




Dynamic query in xsp:logic and esql:query

2003-01-05 Thread Yves Vindevogel
Hi,

I've got a form with one textbox (name) and a combobox (type)
When the user presses "submit", a searchpage is called where I execute this 
query (on postgres db)


select * from vwProducts
where upper(name) like 
upper('%%')
and typeoid = 



This works 

Unfortunately, the combobox must be filled out.  That's not exactly what I 
want because the user may let this one empty (selecting all with a certain 
name without regard to the type)

In that case, my query should be (empty combobox)
select * from vwProducts where upper(name) like 
upper('%%')


Something like this works too:


   "select * from vwProducts where typeoid = " + 

 



If I try this, I get errors :  (Starts when I use an if-clause)


if (.equals("0"))
{
"select * from vwProducts"
}
else
{   
"select * from vwProducts where name like 
('%product%')"
} ;


I've tried several methods, I get:
Illegal start of expression on line . 
Method ValueOf() missing 


Anyone can help me out ??

-- 
Kind regards,
Yves Vindevogel

Implements
Kortrijkstraat 2 bus 1  --  9700 Oudenaarde  --  Belgium
Phone/Fax: +32 (55) 45.74.73  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
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: User Authentication?

2002-12-18 Thread Yves Vindevogel
The attached files do something like you want ...


> Hi,
>
> I'm having a hard time understanding the tutorial on authentication from
> the coccon website.
> My case:
> I have a loginpage (login) with a field for user and password. If the user
> is logged in successfully, he should be redirected to services, which is
> protected.
> My questions:
> How / Where do I check the parameters, if I wanna check the parameters with
> entries in a database.
>
> If I try to access the page services now directly, I get the following
> error message:
>
> The
> org.apache.cocoon.www.file_.C_.Apache_Group.Tomcat_4_1.webapps.cocoon.mount
>.fraud.sitemap_xmap notifies that
> org.apache.avalon.framework.component.ComponentException says:
> UnnamedSelector: ComponentSelector could not find the component for hint
> [auth-protect]
> More precisely:
> org.apache.avalon.framework.component.ComponentException: UnnamedSelector:
> ComponentSelector could not find the component for hint [auth-protect]
>
> Here is my sitemap:
>
>  
>  
>   
>   
>   
>   
> 
> 
>   
>   
> 
>  ="userLogin"/>
>   
> 
> 
> 
> 
>   
> 
> 
>   
>   
> 
>="userPortal"/>
>="{request:user}"/>
>value="{request:password}"/>
>   
> 
> 
> 
> 
>   
>   
> 
>="userPortal"/>
>   
>   
> 
>   
>
> Greetings
> Jonny
>
> ---
>-
>
> This electronic message contains information from the mmo2 plc Group which
> may be
> privileged or confidential. The information is intended to be for the use
> of the
> individual(s) or entity named above. If you are not the intended recipient
> be aware
> that any disclosure, copying, distribution or use of the contents of this
> information
> is prohibited. If you have received this electronic message in error,
> please notify
> us by telephone or email (to the numbers or address above) immediately.
>
>
>
>
> -----
> 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]>

-- 
Kind regards,
Yves Vindevogel

Implements
Kortrijkstraat 2 bus 1  --  9700 Oudenaarde  --  Belgium
Phone/Fax: +32 (55) 45.74.73  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.


http://apache.org/xsp";
			xmlns:esql="http://apache.org/cocoon/SQL/v2";
			xmlns:xsp-request="http://apache.org/xsp/request/2.0";
			xmlns:xsp-session="http://apache.org/xsp/session/2.0";
			create-session="true">




pierrefabre


			
select * from tblLogin
	where name = ''
 	and password = '' ;
			


			admin

			


		
			
			
			Pierre Fabre Médicament

			



		



	



	

	






Fwd: Example

2002-12-18 Thread Yves Vindevogel
This is an example how to pass parameters from a link (request parameters) to 
an XSL and use it there as parameter
It should use a valid XPATH

This is for Lenya 


Pipeline:









In attach the two files you need.  There are some issues with how you pass the 
Xpath, but use this as a starter 

Usage:
http://yourserver/products.html?xpath=ProductID=16
http://yourserver/products.html?xpath=SupplierID=4
-- 
Kind regards,
Yves Vindevogel

Implements
Kortrijkstraat 2 bus 1  --  9700 Oudenaarde  --  Belgium
Phone/Fax: +32 (55) 45.74.73  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.


products.xml
Description: Binary data


tables.xsl
Description: Binary data
-
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: for loop in XSLT

2002-12-17 Thread Yves Vindevogel
Something like this :


http://www.w3.org/1999/XSL/Transform"; 
xmlns:fo="http://www.w3.org/1999/XSL/Format";>

Test Page





















> Somebody knows how to implement a for-like loop in XSLT? I found the
> following example in XSLT 2.0, but it doesn't work in 1.0:
>
>   
> 
>   

-- 
Kind regards,
Yves Vindevogel

Implements
Kortrijkstraat 2 bus 1  --  9700 Oudenaarde  --  Belgium
Phone/Fax: +32 (55) 45.74.73  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
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: Confused about xsl:include

2002-12-12 Thread Yves Vindevogel
Not 100% sure, but in my (humble) opinion, you can only call included 
templates and no longer use apply.

Instead of  you will need







in the included file:





> This should be simple, but I'm not able to make it work.
>
> Here's an xsl file, working fine:
>
> 
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
>
>   
> Date/Time:
>   
>
>   ... More templates ...
>
> 
>
> So what I do is take the "Now" template and put it in a separate file
> called "other.xsl" and add an include like this:
>
> 
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
>
>  
>
>   ... More templates ...
>
> 
>
> Here's other.xsl:
>
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
>
>   
> Date/Time:
>   
>
> 
>
> I know it's finding the other.xsl file because I get an exception if I use
> an incorrect href.  However, when using an include cocoon no longer
> applies the "Now" template.  This must be simple.  What am I doing wrong?
> Thanks for any and all tips!
>
>
>
>
> -
> 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]>

-- 
Kind regards,
Yves Vindevogel

Implements
Kortrijkstraat 2 bus 1  --  9700 Oudenaarde  --  Belgium
Phone/Fax: +32 (55) 45.74.73  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

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




Include content of another (non-xml) file into an XSP

2002-12-12 Thread Yves Vindevogel
Hi,

I'm looking for a way to include the complete content of a text file into an 
XSP page.
This is an example page :



http://apache.org/xsp";
xmlns:esql="http://apache.org/cocoon/SQL/v2";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:xsp-session="http://apache.org/xsp/session/2.0";
create-session="true">



pierrefabre



HERE COMES THE CONTENT OF THE FILE WITH NAME 
mySQLQuery.sql 















This would allow me to create one template for executing all my queries.  I 
can then store them into single .sql files.  When I ever need a different 
interaction with my database (handling errors, no results, ...), I only need 
to modify one template instead of a set of XSP files.

I wrote code in Java, to open an InputStream and create the file.
That worked.  Porting my code to Cocoon didn't.  I always get some error. 
Some code example would be great.  



-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: Why cocoon sucks

2002-12-12 Thread Yves Vindevogel
I agree with Chris.  In every language you can create a mess.

Two rules of advice for Kasper on programming:
1) Be a lazy coder.  Think first how you can write as few lines of code as 
possible.  Not only will you have effecient code, you'll have code that you 
can maintain.
2) Stop using copy & paste.  If things are similar to each other, create a 
function.  In XSL that's a template.  If you copy&paste a line of code 100 
times and it shows a bug afterwards, be sure that you will change it 95 
times, leaving 5 bugs.

Bad coding habits are no reason to break down a product.  Cocoon is a great 
XML publishing framework.  It's even not about XSL at all.  It uses XSL but 
it's not an XSL editor or whatever you want to call it.  Use the tools for 
what they're intented.

> >For a short synopsis at school I'm looking for points to areas where
> > cocoon and stacking an endlessly number of XSL transformers on top of
> > each other falls short. You know stuff like how difficult it is adding a
> > new attribute to an XML element, and make sure it's copied along in all
> > your 200 stylesheets, compared to how easy it is in languages like java.
>
> I think it is easier to edit a couple of stylesheets than coding Java.
> Plus, the use of stylesheets helps with the separation of
> style/content/logic. If you have a new bit of style to add, a designer
> responsible for the look of the output could edit the stylesheet.
>
> I appreciate your reason for use of hyperbole but it is not fair - no-one
> has an endless number of XSL transformers stacked up and no-one has 200
> stylesheets to edit.


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: Transforming several XMLs (Request Generator component)

2002-12-12 Thread Yves Vindevogel
You must begin with the REQUEST.  This can be done by using XSP.
This must be the first because you can only do XSP as generator.
This is the source of something I need from the Session (similar)


http://apache.org/xsp"; 
xmlns:esql="http://apache.org/cocoon/SQL/v2"; 
xmlns:xsp-request="http://apache.org/xsp/request/2.0"; 
xmlns:xsp-session="http://apache.org/xsp/session/2.0";>










Then you must "include" your static XML file.
This is source I use to glue two XML files together



http://www.w3.org/1999/XSL/Format";
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>













(Mind the paths ...)

This is the source of such an included file











You end up with one XML file, that you can parse through one XSL file to do 
what you need.

This is a sample pipeline for it












And a sample XSL



http://www.w3.org/1999/XSL/Format";
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>






















 
  













sub











i



 

a



sub








 position: relative; left: 10; display: 
none;


d
















Hope this helps !!



> Hello,
>
> I need to produce a transformation based on two XML files. The first is my
> XML file, the second is the output of the Request Generator, produced by
> 
>  
> 
>
> I need to grab a couple of keys from this output, combine it with my XML
> and transform it. How should I do this?

-- 
Kind regards,
Yves Vindevogel

Implements
Kortrijkstraat 2 bus 1  --  9700 Oudenaarde  --  Belgium
Phone/Fax: +32 (55) 45.74.73  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
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 with Character Encoding in Cocoon 2 / Postgres

2002-12-11 Thread Yves Vindevogel
Hi All,

My problem is solved thanks to your help (all of you)
Therefore, I'd like to post what I did because I had some mails from people 
from Italy and Zwitserland with the same problem.  This is kind of my help 
towards them.

I changed my sitemap:

ISO-8859-1


1024
ISO-8859-1



I added an action:





I added a meta tag into my pages


I changed the jdbc url into  jdbc:postgresql://server/db?charSet=ISO-8859-1


After this, all went well, but I wanted to be sure what the real problem was.
So, I removed all of them again and started to add one by one.

In the end, the most simple one did it:
The serializer :

1024
ISO-8859-1


Jean-Roch Smitt gave me this useful link that helped me most ...
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=103701015026425&w=2


Thanks again to all !!
-- 
Kind regards,
Yves Vindevogel

Implements
Kortrijkstraat 2 bus 1  --  9700 Oudenaarde  --  Belgium
Phone/Fax: +32 (55) 45.74.73  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

-
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 with Character Encoding in Cocoon 2 / Postgres

2002-12-11 Thread Yves Vindevogel

I didn't have this ...

I recreated the database with this encoding in it 
but it still doesn't work


> On Wednesday 11 December 2002 10:32, Yves Vindevogel wrote:
> > I'm using Cocoon 2 and Postgres 7 on Slackware 8, JDK 1.4.
> > My database and pages contain French characters (like é,à,ç, ...)
> > I use XSP to get the data from PG.
> >
> > Calling the function from the command line with the French
> > characters works fine.  It's only when I post the page and call
> > the function that it goes wrong.
>
> Is multibyte encoding enabled in the database (e.g. createdb -E
> ISO-8859-1 mydb)?
>
> Best regards!

-- 
Kind regards,
Yves Vindevogel

Implements
Kortrijkstraat 2 bus 1  --  9700 Oudenaarde  --  Belgium
Phone/Fax: +32 (55) 45.74.73  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

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




Problem with Character Encoding in Cocoon 2 / Postgres

2002-12-11 Thread Yves Vindevogel
Hi,

I'm using Cocoon 2 and Postgres 7 on Slackware 8, JDK 1.4.
My database and pages contain French characters (like é,à,ç, ...)
I use XSP to get the data from PG.

I can show all the data correctly when I set the encoding to ISO-8859-1.
I wrote some plsql procedures to store data.  I call them from my XSP pages.
This is where it goes wrong: the French characters are stored in an unreadable 
manner.  (Storing is the only thing where it goes wrong)

Calling the function from the command line with the French characters works 
fine.  It's only when I post the page and call the function that it goes 
wrong.

Any ideas ??




Here's some of my code:

1) Sample XSP where it goes wrong


http://apache.org/xsp";
xmlns:esql="http://apache.org/cocoon/SQL/v2";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:xsp-session="http://apache.org/xsp/session/2.0";
create-session="true">












Nouveau type de cancer







pierrefabre



select fnCancerTypeInsert ('')





if (.equals("1"))
{
Ce type de 
cancer existe déja.  Les modifications ne 
sont pas enrégistrées.
} ;
if (.equals("0"))
{
Les 
modifications sont enrégistrées.
};













2) Cocoon.xconf setting for the database


  
  
jdbc:postgresql://10.32.1.3:5432/pierrefabre?charSet=LATIN1
  postgres
  

  

3) The pgplsql function called in that page 
create function fnCancerTypeInsert (varchar(50)) returns integer as
'
declare
p_description alias for $1 ;

v_count integer ;
begin
select into v_count count(*) from tblCancerTypes
where upper(description) = upper(p_description) ;

if v_count > 0 then
return 1 ;
end if ;

insert into tblCancerTypes
values (p_description) ;

    return 0 ;
end ;
' language 'plpgsql' ;







-- 
Kind regards,
Yves Vindevogel

Implements
Kortrijkstraat 2 bus 1  --  9700 Oudenaarde  --  Belgium
Phone/Fax: +32 (55) 45.74.73  --  Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED]  --  www.implements.be

Quote: The winner never says participating is more important than winning.

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