Re: i18n

2003-06-24 Thread Konstantin Piroumian



Take a look at i18n transformer 
configuration in your sitemap. Probably it defines the 'untranslated-text' 
parameter which is used instead of the key value.
 
-- Konstantin

  - Original Message - 
  From: 
  Kavitha Ramesh 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, June 24, 2003 18:30
  Subject: i18n 
  
  Hi,
   
  I read the following in a documentation:
   
  untranslated-text: text used for untranslated keys 
  (default is to output the key name).
   
  But when I dont have translations in my messages.xml, i get something 
  like "untranslated-text".Actually it should display the key name.I use IBM 
  Websphere 4.0 with Cocoon 2.0.
  If someone has any solutions pls tell me.
   
  Regards
  Kavitha Ramesh.
  
  
  Do you Yahoo!?SBC 
  Yahoo! DSL - Now only $29.95 per month!


Re: concat in sitemap?

2003-06-18 Thread Konstantin Piroumian
Try this one:


Take a look at the Input Modules samples at
http://localhost:/cocoon/samples/modules . There are several examples of
XPath usage with input modules in the sitemap.

Regards,
  Konstantin

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 18, 2003 11:20
Subject: concat in sitemap?


Hello,
I wrote a little time ago because I had problems with my parameters in
the sitemap. I thought maybe I had to do like in XSL with a concat
function or something like that?
That's what I want to get :

But this way it doesn't work.

Please help!!!
Thanks

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



Re: i18n not working

2003-06-03 Thread Konstantin Piroumian
From: "Mato Mira, Fernando" <[EMAIL PROTECTED]>
> > From: Mato Mira, Fernando [mailto:[EMAIL PROTECTED]
> >
> >   I am placing the i18n transformer just before serialization
> > and it's not
> > working. The namespace
> > is declared in the i18n:translate element itself.
> >
> > Cocoon version: 2.1m2
>
> The transformer does not accept the 2.0 namespace. It has to be the 2.1
> for it to work. I guess this is a bug.
>

Ah, I see.

If you read the warning message carefully, then you'll see that it's not a
bug, but a feature. If you are using i18n transformer from Cocoon 2.1 or
higher then you should update your stylesheets also, because the syntax was
slightly changed and that's why a new namespace used.

I don't think that it was a good decision to drop support for the old
syntax, but otherwise you wouldn't know about the changes in syntax and I
had no enough time to maintain that. Also, I think that it's quite easy to
implement an XSLT stylesheet to make automatic conversion of your pages. Any
help with it is apreciated.

-- Konstantin



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



Re: i18n not working

2003-06-03 Thread Konstantin Piroumian
From: "Mato Mira, Fernando" <[EMAIL PROTECTED]>

> Hello
>
>   I am placing the i18n transformer just before serialization and it's not
> working. The namespace
> is declared in the i18n:translate element itself.

Please post the relevant snippet from your XML here.
Having i18n transformer just before serialization is not a problem, that
worked before and hopefully should work now.

Check that you have correct input to the i18n transformer.

Regards,
  Konstantin

>
> Cocoon version: 2.1m2
>
> Thanks
>
> --
> Fernando D. Mato Mira   [EMAIL PROTECTED]
> Thomson Dialog
> www.dialog.com
>
> E-MAIL NOTICE:
> This message (plus any attachments) is confidential and may be subject
> to lawyer-client privilege.  Use without permission is strictly
> prohibited.
>
>
> -
> 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]



Re: Using I18nTransformer without catalogue

2003-06-03 Thread Konstantin Piroumian
From: "Alex Romayev" <[EMAIL PROTECTED]>
> --- Konstantin Piroumian <[EMAIL PROTECTED]> wrote:
> > From: "Alex Romayev" <[EMAIL PROTECTED]>
> >
> > > Hi,
> > >
> > > Is is actually possible to use I18nTransformer
> > without
> > > having to specify the catalogue-name and
> > > catalogue-location parameters?
> >
> > AFAIK, not yet, because of this lines in
> > I18nTransformer code:
> >
> > 893: public void configure(Configuration conf)
> > throws
> > ConfigurationException {
> > 894:if (factory == null) {
> > 895:throw new
> > ConfigurationException("BundleFactory component is
> > not found.");
> > 896:}
> >
> > you can try to remove this check and add other
> > checks to avoid NPE.
> >
> > >
> > > Why? Because I'm only using i18n:when and
> > i18n:date
> > > tags.  At the moment I'm having to create the
> > "dummy"
> > > message files.
> >
> > Yes, I see. If the above method works then please
> > post a patch to Bugzilla.
>
> Will do.  What's the process, do I patch entire file?
> -- I've never done this before.

It's quite simple. Make your modifications, then run this from your CVS
root:
>cvs diff -u > diff.txt

then post this patch thru Bugzilla.

Details can be found here:
http://cocoon.apache.org/2.1/howto/howto-patch.html
http://cocoon.apache.org/2.1/howto/howto-bugzilla.html

-- Konstantin


>
> -Alex
>


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



Re: Using I18nTransformer without catalogue

2003-06-02 Thread Konstantin Piroumian
From: "Alex Romayev" <[EMAIL PROTECTED]>

> Hi,
>
> Is is actually possible to use I18nTransformer without
> having to specify the catalogue-name and
> catalogue-location parameters?

AFAIK, not yet, because of this lines in I18nTransformer code:

893: public void configure(Configuration conf) throws
ConfigurationException {
894:if (factory == null) {
895:throw new ConfigurationException("BundleFactory component is
not found.");
896:}

you can try to remove this check and add other checks to avoid NPE.

>
> Why? Because I'm only using i18n:when and i18n:date
> tags.  At the moment I'm having to create the "dummy"
> message files.

Yes, I see. If the above method works then please post a patch to Bugzilla.

Regards,
  Konstantin

>
> Cheers,
> -Alex
>
> -
> 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]



Re: Link Livesites: www.g-arseniou.gr

2003-05-30 Thread Konstantin Piroumian
From: "Stavros Kounis" <[EMAIL PROTECTED]>

> Konstantin
> thnx for your notice
>
> i have look into translation files and everything is ok .. i think
> that some somewhere something is cached.

If you are using the latest version (2.1) then this is definitely a cached
text. Current version of i18n transformer does not check the modification
date of bundles for cache validity.

>
>
> they are 2 more web sites where we are using i18n
> (this one is only  i18n ready )
>
> http://www.portovistonis.gr
> http://www.forestland.gr

Great!

>
>
> the coolest thing  with cocoon's  i18n implementation  is that visitor can
> change the language without
> loose navigation (i most translated site you have to go back in first
> (entry) page ang choose another lang

Usually, you select the language on the first entry. But sometimes you can
notice other translations already deep in the site and in this case this
behavior is really useful.

-- Konstantin

>
> -- stavros
>
> On Fri, 30 May 2003, Konstantin Piroumian wrote:
>
> > It's cool that your are using i18n transformer!
> > How do I learn it? Simple: there's a missing translation at:
> > http://www.g-arseniou.gr/xml/g-arseniou.gr/iContact?locale=el
> > (hint: article_text) ;)
> >
> > Regards,
> >   Konstantin
> >
> > From: "Stavros Kounis" <[EMAIL PROTECTED]>
> >
> > >
> > > www.g-arseniou.gr
> > >
> > > on other one site powered by cocoon
> > >
> > >
> > > -- stavros
> > > email: [EMAIL PROTECTED]
> > >
> > >
> > > -
> > > 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]
> >
> >
>
>
> -
> 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]



Re: Link Livesites: www.g-arseniou.gr

2003-05-30 Thread Konstantin Piroumian
It's cool that your are using i18n transformer!
How do I learn it? Simple: there's a missing translation at:
http://www.g-arseniou.gr/xml/g-arseniou.gr/iContact?locale=el
(hint: article_text) ;)

Regards,
  Konstantin

From: "Stavros Kounis" <[EMAIL PROTECTED]>

>
> www.g-arseniou.gr
>
> on other one site powered by cocoon
>
>
> -- stavros
> email: [EMAIL PROTECTED]
>
>
> -
> 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]



Re: new namespaces in 2.1

2003-05-27 Thread Konstantin Piroumian
All the major changes 2.0 -> 2.1 are listed in the Changes list at:
http://cocoon.apache.org/2.1/changes.html
This includes the i18n transformer namespace switch.

Also, the i18n docs were updated to reflect the new namespace:
http://cocoon.apache.org/2.1/userdocs/transformers/i18n-transformer.html

Though, I agree that this kind of changes should be announced and maybe a
warning and migration paths should be added to the docs.

Regards,
  Konstantin

From: "Stavros Kounis" <[EMAIL PROTECTED]>

>
> hi people
>
> reading the last thread in this list about session transformer
> i have notice that some namespacer have change fro 2.0 to 2.1
>
> some weeks ago i have get the same answer about i18n tranformation
>
> is it possilbe to announce somewere all namespace changes from 2.0 to 2.1
> so people dont spend hours to find what happend when try to publish
> workining in 2.0 project using 2.1?
>
>
> ---stavros
>
>
>
> -
> 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]



Re: JSP Again

2003-04-02 Thread Konstantin Piroumian
The JSPEngine in Cocoon simply calls another servlet to get the result of
JSP and then the output is served directly via JSPReader or parsed into XML
via JSPGenerator and then served.

So Jasper won't work on Jetty, cause seems that it has dependencies on
Tomcat. To make JSPs work you should change Cocoon configuration to use
appropriate servlet from Jetty. Take a look at  section in
cocoon.xconf and then at cocoon.roles from cocoon.jar . Change them as
needed and try again.

BTW, why do you want to use JSP when XSP is more efficient for XML
generation?

Konstantin

From: "Sushil Bhattarai" <[EMAIL PROTECTED]>

> Newer version of JBoss (JBoss Web) comes with Jetty. I'm using JBoss 3.0.4
> and I'm trying to get JSP work in my cocoon. Rest of the Cocoon stuff work
> fine, only JSP seems to be giving problem. I added jasper-compiler.jar
> because I read in one of the discussion list that it is needed for JSP to
> work. It's not helping here though.
>
> Sushil
> >
> >This looks like an error in your JSP or in the Jasper compiler. Take a
look
> >at the generated source to see what's wrong. And also it's a little
strange
> >that the java file for your JSP is generated in a ...\Jetty...\
directory.
> >Are you using Tomcat? I'm not sure that Jasper compiler works with Jetty.
> >
> >Konstantin


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



Re: JSP Again

2003-03-31 Thread Konstantin Piroumian
This looks like an error in your JSP or in the Jasper compiler.
Take a look at the generated source to see what's wrong. And also it's a
little strange that the java file for your JSP is generated in a
...\Jetty...\ directory. Are you using Tomcat? I'm not sure that Jasper
compiler works with Jetty.

Konstantin

- Original Message -
From: Sushil Bhattarai
To: [EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 01:41
Subject: JSP Again


Hi all,
Previously I've had problem with JSP but I was able to fix it. Then I was
using older version of Cocoon and Tomcat as the server. Now I'm using
cocoon-2.0.4 on JBoss 3.0.4. Both JSP Generator and JSPReader do not seem to
work. I tried adding jasper-compiler.jar and jasper-runtime.jar to
WEB-INF/lib in my cocoon. Still it does not like it. Without adding
jasper-runtime, I get error regarding jasper-runtime. After adding it I get
the following error:
org.apache.jasper.JasperException: Unable to compile class for JSPNote:
sun.tools.javac.Main has been deprecated.
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\Jetty_0_0_0_0_8080__ssfxml\ssftalklets\sa
mples\jsp\hello$jsp.java:67: Incompatible type for method. Explicit cast
needed to convert java.lang.Throwable to java.lang.Exception.
if (pageContext != null) pageContext.handlePageException(t);
^
1 error, 1 warning
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:176)
...
Addition of jasper-compiler.jar makes no difference. Has anyone been able to
get JSP to work with cocoon-2.0.4 on JBoss Server ??
Sushil



Help STOP SPAM with the new MSN 8 and get 2 months
FREE* -
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]



Re: Can I do this?

2003-03-26 Thread Konstantin Piroumian
You can also use XPath expressions to parse your parameters, e.g.:
{request:translate(query, '+', ' ')}

--
  Konstantin

> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>
> It's really working :) Thanks ! :)
>
> I just have one problem, if I search for two terms it goes as
> term1+term2 and it produces no results, as well if i type
> them under quotes, like "term1 term2" :|
>
> Can I parse the querystring on the fly ?
>
> Thanks
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, March 25, 2003 11:01 PM
> Subject: Re: Can I do this?
>
>
> > Oops... forget it I've changed the wrong cocoon.xconf (I'm
> working on
> > the network, but have changed local file :| ), it's now error free:)
> >
> > Thanks
> >
> >
> > - Original Message -
> > From: "Reinhard Pötz" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, March 25, 2003 10:56 PM
> > Subject: RE: Can I do this?
> >
> >
> > Which cocoon version do you use?
> >
> > If you use 2.04 it seems to me that input modules are not
> supported by
> > the compiled sitemap. But I'm not sure because I've been
> using Cocoon
> > 2.1dev for month (interpreted sitemap and input modules
> work). But be
> > warned - Cocoon 2.1 is still alpha!!! But I think this will
> change in
> > the nearer future.
> >
> > Regards,
> > Reinhard
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, March 25, 2003 11:48 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Can I do this?
> > >
> > >
> > > Thanks :)
> > >
> > > I've added them into cocoon.xconf, but know i'm having this:
> > >
> > > message Error while creating node 'generate' at file:/C:/Program
> > > Files/Apache Group/Tomcat
> > > 4.1/webapps/cocoon/pubmed/sitemap.xmap:45:147
> > >
> > > description
> > > org.apache.avalon.framework.configuration.ConfigurationExcepti
> > > on: Error while creating node 'generate' at file:/C:/Program
> > > Files/Apache Group/Tomcat
> > > 4.1/webapps/cocoon/pubmed/sitemap.xmap:45:147
> > >
> > > that's here:
> > >
> > >   
> > >
> > >  > > src="http://http://www.ncbi.nlm.nih.gov/entrez/eutils/esearch.
> > > fcgi?db=pubmed
> > > &term={request:query}&retmax=200"/>
> > >  src="stylesheets/pubmed2html.xsl"/>
> > > 
> > > 
> > >
> > >
> > > I'm doing anything wrong? Or do I need to use,  > > name="request"/> ?
> > >
> > > TIA
> > >
> > > Joao Cesar
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > - Original Message -
> > > From: "Reinhard Pötz" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, March 25, 2003 10:29 PM
> > > Subject: RE: Can I do this?
> > >
> > >
> > > Checkout input modules - they should be available in 2.04. They
> > > grant you easy access to the request parameters.
> > >
> > >  > > src=http://blablabla?term={request:query}/>
> > >
> > > Regards,
> > > Reinhard
> > >
> > >
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, March 25, 2003 10:54 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Can I do this?
> > >
> > >
> > > Can I (?) do anything like this:
> > >
> > > 
> > > http://blablabla?term={1}/>
> > >  src="stylesheets/search2html.xsl"/>
> > > 
> > > 
> > >
> > > I've found that if I do (...) pattern="*.search"> (...)
> it works,
> > > and i can do for example "search phrase".search in the
> address bar
> > > and it matches with the generate prototype.. but i want
> to use that
> > > notation to match a GET form.
> > >
> > > Thanks
> > >
> > > João César
> > > [EMAIL PROTECTED]
> > >
> > >
> > >
> 
> > > -
> > > 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]
> > >
> >
> >
> >
> -
> > 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]
> >
> >
>
>
>
> -
> 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]



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



Re: ServletException in JSPReader.generate()

2003-03-25 Thread Konstantin Piroumian
To make the JSP samples work try to copy jasper-compiler.jar to
cocoon/lib/optional directory and then rebuild Cocoon, so the optional JSP
block could become available. And then try again.

Hope this helps.

--
  Konstantin

From: "Bobby Mitchell" <[EMAIL PROTECTED]>

> Hi,
> I'm using RedHat 8.0, Cocoon-2.0.4 from cvs 3/25/03, Tomcat 4.1.21,
> Sun  j2sdk1.4.1_02.
>
> I tried to access "cocoon/samples/jsp/welcome.htm" and get errors.
> At first the error is "file not found," but I saw in the logs where the
> path for error2html.xsl in the file "cocoon/samples/sitemap.xmap" is
> "common/style/xsl/html/error2html.xsl." I changed this to
> "samples/common/style/xsl/html/error2html.xsl" and I now get the error
> "ServletException in JSPReader.generate()."
>
> The following is from the sitemap.log:
>
>   4473 DEBUG   (2003-03-25) 10:37.35:955   [sitemap.reader.jsp]
> (/cocoon/samples/jsp/welcome.htm) Thread-8/JSPReader: JSPReader
> executing JSP:/samples/jsp/welcome.jsp
>4474 DEBUG   (2003-03-25) 10:37.36:546   [sitemap.reader.jsp]
> (/cocoon/samples/jsp/welcome.htm) Thread-8/JSPReader: ServletException
> in JSPReader.generate()
>4475 org.apache.jasper.JasperException: Unable to compile class for JSP
>4476
>4477 An error occurred at line: -1 in the jsp file: null
>4478
>4479 Generated servlet error:
>4480 [javac] Since fork is true, ignoring compiler setting.
>4481 [javac] Compiling 1 source file
>4482 [javac] Since fork is true, ignoring compiler setting.
>4483
>
>   4559 DEBUG   (2003-03-25) 10:37.36:552   [sitemap.reader.jsp]
> (/cocoon/samples/jsp/welcome.htm) Thread-8/JSPReader: Embedded
> ServletException JSPReader.generate()
>4560 INFO(2003-03-25) 10:37.36:553   [sitemap]
> (/cocoon/samples/jsp/welcome.htm) Thread-8/PipelineNode: Error while
> processing pipeline at
> file:/var/tomcat4/webapps/cocoon/samples/jsp/sitemap.xmap:27:19
>4561 org.apache.cocoon.ProcessingException: ServletException in
> JSPReader.generate()
>
>   4625 DEBUG   (2003-03-25) 10:37.36:559   [sitemap]
> (/cocoon/samples/jsp/welcome.htm) Thread-8/ResourceLimitingPool: Put a
> org.apache.cocoon.reading.JSPReader back into the pool.
>4626 INFO(2003-03-25) 10:37.36:562   [sitemap]
> (/cocoon/samples/jsp/welcome.htm) Thread-8/PipelineNode: Error while
> processing pipeline at
> file:/var/tomcat4/webapps/cocoon/samples/sitemap.xmap:44:17
>4627 org.apache.cocoon.ProcessingException: ServletException in
> JSPReader.generate()
>
> Any ideas on how I can get my jsp samples to work?
>
> Thanks
>
> --
> Robert J. (Bobby) Mitchell
> Systems Administrator
> NASA Institute for Advanced Concepts
> 555A 14th St Atlanta, Ga. 30318
> Phone: (404)347-9633 Fax: (404)347-9638
>
>
>
>
> -
> 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]



Re: Encoding problems

2003-03-25 Thread Konstantin Piroumian
What about the container-encoding?

Btw, I never had problems with encoding in i18n samples, cause I always use
UTF-8 everywhere. Use Unicode and you'll have much less problems. In
cocoon/samples/i18n/simple.xsp there is an explicit conversion for UTF-8 to
container-encoding and it works for all the locales used there.

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 17:24
Subject: RE: Encoding problems


In the doc it's written about setting this in web.xml :


  form-encoding
  utf-8


But it doesn't change anything with cocoon 2.0!


-Original Message-
From: Konstantin Piroumian [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 2:55 PM
To: [EMAIL PROTECTED]
Subject: Re: Encoding problems


You can set container-encoding and form-encoding initialization parameters
in web.xml . Take a look at the web.xml from Cocoon distribution, there's a
comment about it.

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 16:36
Subject: RE: Encoding problems


Is there no other way to keep my french caracter set from page to page
(because I have to many pages and some request are xsp-request)
Tanks

-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 2:20 PM
To: [EMAIL PROTECTED]
Subject: Re: Encoding problems


On Tue, 25 Mar 2003 14:12:59 +0100
<[EMAIL PROTECTED]> wrote:

> Hi,
> I have xsp pages, and all my parameters with accents (И, Х, Т,...) changes
into things like "ц╘",...
> I tried diferent encoding into my pages (like ), but nothing seems to work!
> how can I keep the accents?
>

Try form-encoding attribute in the xsp:request
or
construction like:

String myparam = new
String(request.getParameter("param").getBytes("ISO-8859-1"),"CP-1251");

--

Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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



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



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



Re: Encoding problems

2003-03-25 Thread Konstantin Piroumian
You can set container-encoding and form-encoding initialization parameters
in web.xml . Take a look at the web.xml from Cocoon distribution, there's a
comment about it.

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 16:36
Subject: RE: Encoding problems


Is there no other way to keep my french caracter set from page to page
(because I have to many pages and some request are xsp-request)
Tanks

-Original Message-
From: Yury Mikhienko [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 2:20 PM
To: [EMAIL PROTECTED]
Subject: Re: Encoding problems


On Tue, 25 Mar 2003 14:12:59 +0100
<[EMAIL PROTECTED]> wrote:

> Hi,
> I have xsp pages, and all my parameters with accents (И, Х, Т,...) changes
into things like "ц╘",...
> I tried diferent encoding into my pages (like ), but nothing seems to work!
> how can I keep the accents?
>

Try form-encoding attribute in the xsp:request
or
construction like:

String myparam = new
String(request.getParameter("param").getBytes("ISO-8859-1"),"CP-1251");

--

Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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



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



Re: XMLForm: how to display a text

2003-03-25 Thread Konstantin Piroumian
You can use whatever markup you want along with XMLForms, just use another
(default) namespace and then handle it in your formatting stylesheet. You
can mix several namespaces and use several trasnformers to handle them,
e.g.:
XMLFormTransformer -> i18nTransformer -> XSLTTransoformer.

Konstantin

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 15:28
Subject: RE: XMLForm: how to display a text


OK, thanks.

And about HTML link?
If I want to insert a HTML link (href) in my view?
Is there something that already exists?

Regards
Sylvain

-Message d'origine-
De: Stefan Klein [mailto:[EMAIL PROTECTED]
Date: mardi, 25. mars 2003 12:19
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: how to display a text


No, what Richard says is just to include your own tag in the form, for
example my text o my text, just call it
how you like.

The XMLFormTransformer will ignore the element and just pass it through. You
can then catch it in your XSL (for example in xmlform2html.xsl, if you're
using that one) and transform it to whatever you like.
I think you can even use the "xf" prefix, is to say my
text and the transformer will still just pass it through.

A change in the tranformer is not required.
Stefan

--
AGAINST THE WAR!


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 25, 2003 8:56 AM
Subject: RE: XMLForm: how to display a text


Yes, I think.

What you said is that I should modify the XMLFormTransformer to add my own
element?

I thought that maybe something already exists.

Regards
Sylvain


-Message d'origine-
De: Ryan Hoegg [mailto:[EMAIL PROTECTED]
Date: lundi, 24. mars 2003 14:09
À: [EMAIL PROTECTED]
Objet: Re: XMLForm: how to display a text


You could just include it in your own element like .  Then
the XMLFormTransformer will ignore it I think.

--
Ryan Hoegg
ISIS Networks
http://www.isisnetworks.net

[EMAIL PROTECTED] wrote:

>Hello,
>
>Is there a way to display a simple text in XMLForm views?
>
>Someting like my text...
>


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



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



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



Re: Why this doesn't work???

2003-02-20 Thread Konstantin Piroumian



Try something like this:
 
    

  - Original Message - 
  From: 
  Eduardo Zurita 
  To: [EMAIL PROTECTED] 
  
  Sent: Thursday, February 20, 2003 
  17:43
  Subject: Why this doesn't work???
  
  Hello,
   
      I am confused about 
  this:
   
      The following map runs ok and 
  the file test.jsp exists:
   
  
    
    
   
      But the following doesn't 
  work: (I have just added a parameter in querystring that does nothing into the 
  .jsp file). (The test.jsp is the same one).
      
    
    
   
      And the following produces 
  exactly same error that previous map: (And the file doesn't 
  exists)
   
  
    
    
   
      And the error produced by the 
  second and third examples is: (replace test.jsp with whathappen.jsp if you 
  want). (Extracted from core.log):
   
  DEBUG   (2003-02-20) 
  14:27.59:659   [core.manager] (/pec/recsal.html) 
  Thread-19/JspGenerator: JspGenerator executing 
  JSP:/services/test.jsp?myparam=helloDEBUG   (2003-02-20) 
  14:27.59:728   [core.manager] (/pec/recsal.html) 
  Thread-19/JspGenerator: SAXException 
  JspGenerator.generate()org.xml.sax.SAXParseException: Premature end of 
  file. at 
  org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232) at 
  org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:213) at 
  org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:366) at 
  org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:296) at 
  org.apache.xerces.impl.XMLScanner.reportFatalError(XMLScanner.java:1244) at 
  org.apache.xerces.impl.XMLDocumentScannerImpl$XMLDeclDispatcher.dispatch(XMLDocumentScannerImpl.java:587) at 
  org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333) at 
  org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:525) at 
  org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:581) at 
  org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147) at 
  org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1157) at 
  org.apache.avalon.excalibur.xml.XercesParser.parse(XercesParser.java:77) at 
  org.apache.avalon.excalibur.xml.XercesParser.parse(XercesParser.java:50) at 
  org.apache.cocoon.generation.JspGenerator.generate(JspGenerator.java:129) at 
  org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250) at 
  org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:395) at 
  org.apache.cocoon.www.sitemap_xmap.matchN4000C5(/usr/local/tomcat/work/Standalone/localhost/pec/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:908) at 
  org.apache.cocoon.www.sitemap_xmap.process(/usr/local/tomcat/work/Standalone/localhost/pec/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:657) at 
  org.apache.cocoon.www.sitemap_xmap.process(/usr/local/tomcat/work/Standalone/localhost/pec/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:589) at 
  org.apache.cocoon.sitemap.Handler.process(Handler.java:227) at 
  org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173) at 
  org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152) at 
  org.apache.cocoon.Cocoon.process(Cocoon.java:579) at 
  org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043) at 
  javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at 
  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at 
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at 
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at 
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at 
  org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at 
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at 
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at 
  org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at 
  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at 
  org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at 
  org.apache.catalina.valves.ErrorReportValve.in

Re: CLI

2003-02-18 Thread Konstantin Piroumian
From: "Robert Sösemann" <[EMAIL PROTECTED]>

> The CLI is part of the cocoon.jar, so is contained in your cocoon version.
>
> You call it by:
>
> BUT, it doesn't work. Noone who ever asked this list for help on the cli
> received a helpful answer. The reason to my opinion is not a lack of
> cooperation, but the lack of experience with the cli and the frustrating
> experience when trying to test it on your own.

Absolutely false statement.

Cocoon CLI *works*! Otherwise you won't get any Cocoon docs/site and there
would be no Forrest project (http://xml.apache.org/forrest). Parts of Apache
XML site are also generated using Cocoon CLI/Forrest.

>
> In short: I think CLI sucks and doens't work properly. BUT that's no
> problem. There are dozens of  much better web downloader/offline browsers
to
> make a cocoon site static.

You contradict yourself. If it doesn't work then how could it work
inproperly?

Ines,

Examples of running Cocoon from command line you'll find in Cocoon's
build.xml. Take a look at the 'docs' target:


  
  
  
  
  
  
  
  
  


  



  



Basically you'll need to set several command line options, then invoke the
jar as you've done below. But Cocoon CLI is not an interactive tool and it
simply works in batch mode. It starts from the URL you've specified in the
command line (it's the index.html in the above snippet).

As for the other tools, then yes, you can use something like wget instead of
Cocoon CLI to generate the static site.

--
  Konstantin

>
> In our project we are using HTTrack, a wonderful open source tool. It
comes
> with a Window gui and a fully blown command line - much better that the
> cocoon cli. Download at www.httrack.com/
>
> I hope I could help.
>
> Robert
>
>
> - Original Message -
> From: "Ines Robbers" <[EMAIL PROTECTED]>
> To: "Cocoon Mailingliste" <[EMAIL PROTECTED]>
> Sent: Monday, February 17, 2003 5:23 PM
> Subject: CLI
>
>
> > Hello!
> >
> > I'm trying to understand the command-line interface of Cocoon -
> > unfortunately without much success so far.
> > The Cocoon version I'm using is 2.0.4. Where do I find the java.class
> > that starts the CLI? Do I have to download anything?
> > Is it correct that once the class has started I type in:
> >
> > java -jar cocoon.jar -c  (as an example)
> >
> > to start with whatever I intend to do?
> >
> > Many thanks for help!
> >
> > Ines
> >
> >
> >
> > -
> > 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]>
> >
>
>
> -
> 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]>
>
>


-
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: Running cocoon2.0.4 on weblogic7.0 with JSPs

2003-02-10 Thread Konstantin Piroumian
From: "Girish Bhakta" <[EMAIL PROTECTED]>

> Hi,
> i am facing problems with respect to JSPs of Cocoon on
> Weblogic 7.0 . I have successfully setup the Cocoon
> 2.0.4 on weblogic 7.0 and can see all the samples
> running but it gives folloing error when trying to run
> the hello jsp page of cocoon sample.
>
> org.apache.cocoon.ProcessingException: Exception
> JspGenerator.generate(): java.lang.ClassCastException:
> weblogic.utils.classloaders.ChangeAwareClassLoader

This happens because JSP engine in Cocoon uses container specific classes
and it should be customized for each server (It is setup for Tomcat by
default). Basically, you should specify the servlet that will handle JSP
requests in cocoon.xconf. Search for  in WEB-INF/cocoon.xconf
and read comments. You should also try to modify the cocoon.roles (it's in
cocoon.jar: org/apache/cocoon/ package) to use another JSP engine class.

But there were known problems with WebLogic 6 and higher because of the
changes in their Http API implementation. You can try to use the Request
dispatcher include version (it's somewhere in
src/java/org/apache/cocoon/components/jsp/).

-- Konstantin

>
> I have setup the classpath to have xml-apis,xalan
> parsers in the beginning.
> Anybody facing the same problem?R there any
> alternatives ?
>
> GB.
>
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> -
> 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]>
>
>


-
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: cocoon & struts together

2003-02-05 Thread Konstantin Piroumian
From: "Anecss" <[EMAIL PROTECTED]>

>
> Hi there,
>
> We have started development for a project, which uses both Struts and
Cocoon. Our developers are facing lot of technical issues while using this
combo -- taking more time to resolve -- more issues - less productivity. We
had success in earlier projects which used these products separately.
>
> We are using Cocoon and Struts in the same web-app. Issues start right..
when JSPs interact with Cocoon.

Why would you need to use JSP when you have Cocoon? You can simply forward
control to Cocoon after Struts handled the request, performed actions, etc.
If you use JSP then why you use Cocoon?

-- Konstantin

>
> If you have experience, please let me know your
suggestions/comments/lessons learnt/advice when you use both these products
together.
>
> Thanks.
>
> --- On Tue 02/04, Robert Simmons < [EMAIL PROTECTED] > wrote:
> From: Robert Simmons [mailto: [EMAIL PROTECTED]]
> To: [EMAIL PROTECTED]
> Date: Wed, 5 Feb 2003 01:55:01 +0100
> Subject: Re: cocoon & struts together
>
> It was a painful road and I'm still nursing the bruises. But ya, I see its
> value.
>
> -- Robert
>
> - Original Message -
> From: "Antonio Gallardo" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, February 05, 2003 1:55 AM
> Subject: Re: cocoon & struts together
>
>
> > Thanks for the answer. Good speach. I saw you now as a Cocoon fan! :-)
> > You finally saw the light at the end of the pipeline. ;-)
> >
> > Best Regards,
> >
> > Antonio Gallardo.
> >
> >
> >
> > Robert Simmons dijo:
> > > Actually I'm an EJB specialist and I don't generally work on projects
> > > conducive to web interfaces. The complexity level of the stuff I do is
> > > too high. (Pharmaceutical industry and genetic research). My customers
> > > generally require a higher range of functionality than a web interface
> > > can provide.
> > >
> > > That being said, I do, however, do some web work which is why I took
up
> > > the idea of cocoon. I use the same technique that I use for GUI
> > > programming. Basically a command centric architecture. I hate to say
> > > "struts is for amateurs" but it kind of is. It has low complexity and
> > > thus low
> > > functionality. It also has high cost in terms of content delivery and
> > > maintenance costs. I personally chose to avoid all that and let Java
> > > objects do all the work and let the framework just concentrate on
> > > presentation. Enter cocoon.
> > >
> > > My programs consist of allot of specially designed generators that
> > > generate pure data. Then I use XSLT to translate that into the
> > > appropriate media. I also use XSLT to output the forms though I am
> > > experimenting with reflexive techniques that I have used in GUI
> > > applications to make generation of forms be based on reflexive command
> > > analysis.
> > >
> > > Frameworks like struts mix functionality with presentation, which IMHO
> > > is a very bad thing. Its a high maintenance cost solution with a low
> > > development cost. That is the wrong way around. To be professional you
> > > want high development cost and low maintenance cost. This causes your
> > > feature turn around, post release, to be much faster. Since you are
able
> > > to react quickly to the demands of your users, your company or
customers
> > > win. The guy that slapped it together with low development costs may
> > > make some sales coming out the door, but will bleed customers as they
> > > seek more stable solutions with faster turn-around time for new
features
> > > and fault correction.
> > >
> > > I guess that is a long way of saying, "put all your work into the back
> > > end." Cocoon is perfect for this because you can develop custom
> > > generators to deliver data and let a web designer with a couple weeks
of
> > > training worry about the XSLT translation. In the meantime your
valuable
> > > programmer resources are implementing new features and stabilizing the
> > > product.
> > >
> > > Well that's my opinion on the matter.
> > >
> > > -- Robert
> > >
> > >
> > > - Original Message -
> > > From: "Antonio Gallardo" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, February 04, 2003 11:48 PM
> > > Subject: Re: cocoon & struts together
> > >
> > >
> > >> Robert Simmons dijo:
> > >> > I dont think that using struts would be useful within an efficient
> > >> cocoon site. Cocoon takes another approach to web development that
> > >> is, in my opinion, superior to the jsp/struts approach.
> > >>
> > >> Thanks for the comment. I was trying to start learning about this
> > >> stuff.
> > >>
> > >> As a bean specialist (a book writer) what tools you recommend to
> > >> manage all the beans stuff (creation, changes, etc.)
> > >>
> > >> Thanks for the comments.
> > >>
> > >> Antonio Gallardo
> > >>
> > >>
> > >>
> > >> -
> > >> Please check that your question  has not already been answered in the
> > >> F

Re: Directories

2003-02-04 Thread Konstantin Piroumian
This can be done in Tomcat settings (see /conf/server.xml) and
then add a new context pointing to your cocoon webapp directory with empty
contex path, something like this:


...


-- Konstantin

- Original Message -
From: "Richard Cunliffe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 04, 2003 18:20
Subject: Directories


> Hi,
>
> Cocoon 2.0.4
> Tomcat 4.0.6
>
> Can someone point me in the right direction for setting up directories?
> For example my current URI and hard disk location looks like this:
>
> http://192.168.0.5:8080/cocoon/soundpool/soundpool.html
> C:\tomcat\webapps\cocoon\soundpool.xml
>
> If I wanted to change the URI address to this:
> http://192.168.0.5:8080/soundpool/soundpool.html
>
> How would I change the disk location, and in what files would I need to
> change for it to direct the incoming request to the right disk location?
>
> Is there an equivalent to flash guide on this subject?
>
> Thanks,
>
> Richard.
>
>
>
> -
> 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]>
>
>


-
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: setting the client's character coding/charset to utf

2003-02-04 Thread Konstantin Piroumian
Hi!

I couldn't reproduce this in i18n samples using:
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130
Win 2K
JDK 1.3.1
Tomcat 4.12

The only minor problem compared to IE 6.0 was non-readable window title
(produced from  element in HTML), but it can be a font problem and
definitely is not a problem of Cocoon.

-- Konstantin

- Original Message -
From: "leo leonid" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 04, 2003 15:33
Subject: i18n: setting the client's character coding/charset to utf


> Hi,
> I want to be able to display (and edit via a web form) articles in
> different languages. Latin1 encoding is not sufficient because there
> are articles in Russian and Japanese as well. To store the articles on
> the server I use the latest (7.3.1) Postgresql with Database encoding
> set to UNICODE. So far everything works fine.
>
> In the sitemap I set the encoding as follows
>  name="html" pool-grow="4" pool-max="32" pool-min="4"
> src="org.apache.cocoon.serialization.HTMLSerializer">
> 1024
> UTF-8
> 
>
> This writes the tag in the head section of my HTML document
> 
>
> That seems to be what I need, but it seems not to be sufficient:
>
> PROBLEM: When I call the Page in a UTF capable Browser (Mozilla 1.2)
> the character coding is set to ISO-8859-1. Only if I manually select
> Unicode from the menu everything displays fine. But if I reload the
> page the coding switches back to ISO-8859-1!
>
> I get the same results when calling the cocoon i18n samples page.
> (tested with Mozilla 1.2 on Mac OSX and Linux)
>
> Any ideas how I can force the client to switch to UTF-8?
>
> Thanks
> /Leo
>
>
>
> -
> 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]>
>
>


-
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: Custom transformer

2003-02-04 Thread Konstantin Piroumian
From: "Lionel Crine" <[EMAIL PROTECTED]>

> I have an xml document :
>
> 
> http://apache.org/xsp";
> xmlns:my_NS="http://www.my_NS.com/my_NS/query/1.0";>
>
>
> 
>
>  
>DOCUMENT
>  
>
> 
>
> 
>
>
> In my transformer I need to get all that si between "
> " tag and put it in a string or a String buffer.
>
> Which method can do that for me ?

You should implement almost all the methods of ContentHandler interface,
such as:
startDocument()
startElement()
characters()
endElement()
endDocument()

etc. and store everything you need into a String buffer.

For an example you can take a look at classes in
src/java/org/apache/cocoon/transformation/helper/ package.

-- Konstantin

>
> Sax "Characters" method only returns  DOCUMENT, but I also need the tags.
>
> Lionel
>
>
> -
> 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]>
>
>


-
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: How can the result of a pipeline be a parameter for a transformation in another pipeline?

2003-01-31 Thread Konstantin Piroumian
From: "Cyril Vidal" <[EMAIL PROTECTED]>

> Hello,
>
> I would like to retrieve the language of the user's browser, so that I
could
> call the I18n Trasnformer in the right way (by passing the locales's value
> equal to the browser's language).

Simply use the LocaleAction as it is done in i18n samples.
AFAIK, you can setup it to use only the browser's locale and not take into
account request params, session attributes or cookies. But I'm sure you'll
need to allow users to change to language on fly or retain it in a cookie on
the client side to serve the last preferred language of the user. In all
this cases LocaleAction will help you a lot.

-- Konstantin

>
> To retrieve the language set up in the browser, I've used the Request
> Generator, and applied the following simple stylesheet to it:
>
> 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>
> xmlns:req="http://xml.apache.org/cocoon/requestgenerator/2.0";
>
> >
>
> 
>
>  select="//req:requestHeaders/req:header[@name='accept-language']"/>
>
> 
>
> 
>
>
>
> And this is working fine. By example, for my browser, the result is 'fr'.
>
> But now, I don't know what really to do with this value: I would like to
use
> it as a parameter for a I18nTransformation in another pipeline.
>
> Do you know how this can be achieved?
>
>
>
> Thanks for your help,
>
> Cyril.
>
>
>
> -
> 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]>
>
>


-
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: name an output-file dynamically in cocoon?

2003-01-31 Thread Konstantin Piroumian
From: <[EMAIL PROTECTED]>

> Hi again,
>
> is it possible to name an output-file dynamically in cocoon.
>
> E.g. a pdf is created that has the name report_31_01_2003.pdf because its
> the 31 Jan 2003 (or report_GSM.pdf because I got a parameter with the
value
> "GSM").
>
> Is this possible at runntime?

What do you mean by the output file name? Is it the Content-Disposition
header? For this you should use an action, otherwise you would need to
extend the serializer, but serializers cannot get runtime parameters (at
lease it was so in 2.0.3).

>
> To keep up an other question, about why " my {xxx}-"returns":

I thought that I've already answered to this. See my previous post on your
question.
Generally, the 'type' attribute cannot be dynamic, because the pipeline is
constructed before processing.

--
  Konstantin

>
> >>In your particular case it'd be much better to return two values from
the
> >>action, just you different keys in the HashMap to do it:
>
> >>results.put("xsl-choice", "style _16");
> >>results.put("format", "fo2pdf");
>
> >>and then use it in your sitemap like this:
>
> 
>  
> 
> 
> 
>  
> 
>
>
> The "  " part works great.
>
> But the "  " doesnt work. I always get a
> "Resource not found" error.
> If I type in the type manually (e.g. "  ")
it
> works.
>
> What could cause this problem?
> I wonder especially because the {format} in "  ="stylesheets/{xsl-choice}_{format}.xsl"/> " works.
>
> Cheers
> 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. 
>
> 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. 

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




Re: date translation

2003-01-30 Thread Konstantin Piroumian
Yes, that's it.

Another option could be to use the XSLT translate() function if you only
need to change all the '/' into '.' in your date string:

.

This way you can do it in XSLT.

--
  Konstantin

- Original Message -
From: "Scherler, Thorsten" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 30, 2003 20:28
Subject: AW: date translation


Thanks!

I found:
http://xml.apache.org/cocoon1/xsp.html


-Ursprüngliche Nachricht-
Von: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 30. Januar 2003 17:57
An: [EMAIL PROTECTED]
Betreff: Re: date translation


Only a comment:

Using


 


is mostly not the optimum. It will create a Result Tree Fragment, where
it is not needed. Using



is shorter and is of a "normal" data type like node set, string or
number. While working with strings it's only a question of conversions
the processor has to do. But when working with node sets it can be
really a problem:


 


You can't operate on $any like on a node set. Only string operatrions
are allowed. So for example "$any/path/to/a/node" is not possible.

Another problem:




   


  ==> false
 ==> true

You can't test that simply on the emptyness of a RTF, because it returns
always true. You must explicitely convert it into a string via
test="string($emptyRTF)".

http://www.w3.org/TR/xslt#section-Result-Tree-Fragments

So in general it's better to avoid RTFs.

Regards,

Joerg

Scherler, Thorsten wrote:
> Hello group,
>
> if anybody need a date translation, here it is:
>
> e.g. test.html?date=29.1.2003 (like we write in Germany) will be
1/29/2003.
>
> 
>  
> 
>  
>  
> ...
> //
>
> King regards
>
>
>>Mit freundlichem Gruss,
>>
>>Thorsten Scherler


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


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



-
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: date translation

2003-01-30 Thread Konstantin Piroumian
Please tell us what is the final target of your date translation and we'll
try to advice something.
In XSP you do it just the same way as in pure Java:

   // perform your date translation using any method you like, e.g.
SimpleDateFormat.parse(), etc.


--
  Konstantin

- Original Message -
From: "Scherler, Thorsten" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 30, 2003 18:28
Subject: AW: date translation


it is me again.

How can I do it with xsp?

-Ursprüngliche Nachricht-
Von: Scherler, Thorsten
Gesendet: Donnerstag, 30. Januar 2003 16:22
An: Cocoon-Users (E-Mail)
Betreff: date translation


Hello group,

if anybody need a date translation, here it is:

e.g. test.html?date=29.1.2003 (like we write in Germany) will be 1/29/2003.


 

 
 
...
//

King regards

> Mit freundlichem Gruss,
>
> Thorsten Scherler
> Marketing / Telefonmarketing
>
> Weidmüller GmbH & Co.
> P.O. Box 2807
> 33058 Paderborn
> Tel.:+ 49 - 5252-960-350
> Fax:+ 49 - 5252-960-116
> eMail: [EMAIL PROTECTED]
> http://www.weidmueller.de
>
>

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


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



-
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: 2 return values from an action?

2003-01-30 Thread Konstantin Piroumian
From: <[EMAIL PROTECTED]>

>
> Hi again,
>
> >>In your particular case it'd be much better to return two values from
the
> >>action, just you different keys in the HashMap to do it:
>
> >>results.put("xsl-choice", "style _16");
> >>results.put("format", "fo2pdf");
>
> >>and then use it in your sitemap like this:
>
> 
>  
> 
> 
> 
>  
> 
>
>
> The "  " part works great.
>
> But the "  " doesnt work. I always get a
> "Resource not found" error.
> If I type in the type manually (e.g. "  ")
it
> works.

Ah, sorry, I've misleaded you.
You cannot define the serializer this way. You should use a selector
instead. The serializer is determined before processing and it should be
fixed.

Maybe you could create resources for each output format and that way you
could call a particular resource like this:



But I'm not sure that this will work either.

--
  Konstantin

>
> What could cause this problem?
> I wonder, because the {format} in "  ="stylesheets/{xsl-choice}_{format}.xsl"/> " works.
>
> Cheers
> Jonny
>


-
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: Cocoon Competence Center Updates

2003-01-30 Thread Konstantin Piroumian
From: "Robert Simmons" <[EMAIL PROTECTED]>

> Is not cocoon's power or anything else that I'm arguing with. There is an
> extremely serious bug in cocoon that is causing me to not be able to use
it
> at all. It is clear that cocoon was developed to be a single solution and
to
> not integrate with technologies such as application servers.

This is not true. If Cocoon does not integrate with a particular application
server then this doesn't mean that it was done intentionally. You can easily
see even from comments in the source that Cocoon were used with WebSphere,
WebLogic, iPlanet and several other servers.

>The classloader
> issue, http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16580,  would
make
> it ridiculous for me to do anything in cocoon. If I have to deploy all 100
> EJB libs of the company I work for in cocoon as well as in the application
> server, than my colleagues would rightly laugh themselves silly. In fact I
> cant believe this issue even exists in a product this mature. I am looking
at
> probably 3 months to get this fixed, minimum, if it is ever fixed. At that
> point I will have to wait for a release of the product, as my company
would
> throw me at the door for putting up a bleeding edge CVS build.

The good thing in open source is that you always can take care of any bug
yourself and provide a patch which would be definitely applied if it's of a
good quality.

>
> So basically I'm screwed when I comes to my book and when it comes to my
> company. Cocoon is pretty much out. I guess I have to throw out 2 weeks of
> agonizing work and I dot know how many emails and recode the whole damn
thing
> in JSP. Lovely.

I'd recommend to use Struts in case you choose JSP. But of course, that
depends on requirements to your project. If you have to deal with various
output formats, need customizable pages, need integrations with external XML
datasources then it's worth trying to overcome Cocoon bug in some way: try
to fix it, raise this issue on cocoon dev list, try to play with your app
server settings (maybe declare those jars in Manifest - it's possible
according to Servlet Spec), etc.

--
  Konstantin

>
> Well, I suppose it could be worse. I dot see much market for Cocoon
> developers anyway.
>
> -- Robert
>
> - Original Message -
> From: "SAXESS - Hussayn Dabbous" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, January 30, 2003 9:44 AM
> Subject: Re: Cocoon Competence Center Updates
>
>
> > Hy Robert,
> >
> > I appreciate your honesty.
> > I hope, you keep with us. I think you can really help
> > getting this into the next generation...
> >
> > just a few of my experiences if you don't mind ...
> >
> > 0.) i use to install minimalistic components when
> >  i start investigating. in this sense i only
> >  needed tomcat-4.*.* to start. just installed it
> >  and ready to go...
> >
> > 1.) When i started working with cocoon i first got
> >  very very frustrated:
> >  sitemap not working as i expected
> >  actions, uhh?
> >  logicsheets, sounds good, howto???
> >  and so on ...
> >  I even did not know, what to ask in detail.
> >
> > 3.) very slowly i got a first overview. i only scratched
> >  the surface and one day (after about two weeks) i got
> >  hit by realizing the hidden mightiness of the beast.
> >  "Hey that's great, this works fine,
> >   ahh what easy going here and there..."
> >  Until now i still only was playing with the very
> >  basics (sitemap, generator, protocol handlers)
> >
> > 4.) After reviewing my first experiences with cocoon i came
> >  to the conclusions:
> >  - its very complex
> >  - it has great oportunities
> >  - it is "complex documented"
> >  - it moves fast
> >  - it neads quality assurance to get mature
> >
> > My decisions:
> >
> >  - use cocoon in my own projects
> >  - help cocoon users to get a clear understanding
> >with less frustrations
> >
> > I'm still happy with cocoon and im still only using the very
> > basics. I am curious where i can get with XSP and ESQL ;-)
> >
> > regards, hussayn
> >
> >
> > Robert Simmons wrote:
> > > Fine ... I'm beginning to loose interest to be honest. Right now I
cant
> do
> > > anything with XSP with cocoon at all. because of the classpath bug it
> looks
> > > like two weeks of my work are about to explode in my face. Sigh.
> > >
> > > -- Robert
> > >
> > > - Original Message -
> > > From: "SAXESS - Hussayn Dabbous" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Thursday, January 30, 2003 9:12 AM
> > > Subject: Re: Cocoon Competence Center Updates
> > >
> > >
> > >
> > >>Hy, Robert;
> > >>
> > >>Thank you very much for the contributions.
> > >>
> > >>I propose to move parts of your contrib into another page.
> > >>
> > >>reasons:
> > >>
> > >>1.) this page deals with deploying cocoon. it should not cover
> > >> essentials of cocoon internals. this is the next story to 

Re: 2 return values from an action?

2003-01-30 Thread Konstantin Piroumian
From: <[EMAIL PROTECTED]>

>
> Cool. Thanks for the quick response Konstantin.
>
> >>This one should work fine. But it'd be even better if you've used input
> >>modules instead of an action. Something like this:
>
> 
>   
>="stylesheets/{request-param:report_id}{request-param:service_id}_{reques
>   t-param:output_id}.xsl"/>
>   
> 
>
> Do I have to place "something extra" in my sitemap for this solution?

Nothing.
Just make sure that you are using the latest Cocoon (2.0.4 or 2.1), where
input modules are implemented. Also, you could check that you have
'request-param' input module declared in WEB-INF/cocoon.xconf.

--
  Konstantin

>
> Cheers
> 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.
>
>
>
> |-+>
> | |   "Konstantin  |
> | |   Piroumian"   |
> | || |   e.org>   |
> | ||
> | |   01/30/03 09:32 AM|
> | |   Please respond to|
> | |   cocoon-users |
> | ||
> |-+>
>
>---
---|
>   |
|
>   |   To:   <[EMAIL PROTECTED]>
|
>   |   cc:
|
>   |   Subject:  Re: 2 return values from an action?
|
>
>---
---|
>
>
>
>
> From: <[EMAIL PROTECTED]>
>
>
> > Hi,
> >
> > thanks to you guys I got my action running finally.
> > Now I have another question.
> >
> > For example: I have 1 xml file that could be displayed in 15
> > xsl-Stylesheets (in various formats: html, pdf, xls).
> >
> > Currently in my first action I choose the corresponding file.
> >
>
> 
>
> >
> > In the other action I choose the output format.
> >
>
> 
>
> > Thats how I use it in the sitemap:
> > ...
> > 
> > 
> > 
> >
> > 
> > 
> >  
> >  
> >  
>
> This won't work, you should use nested actions in such cases. Actions work
> like an if ... else ... statement: if an action returns a non-null value
> then it's contents is processed, otherwise the following part is
processed.
>
> In your particular case it'd be much better to return two values from the
> action, just you different keys in the HashMap to do it:
>
> results.put("xsl-choice", "style.xsl");
> results.put("format", "pdf");
>
> and then use it in your sitemap like this:
>
> 
>  
> 
> 
> 
>  
>   
>
> This one should work fine. But it'd be even better if you've used input
> modules instead of an action. Something like this:
>
> 
>   
>src="stylesheets/{request-param:report_id}{request-param:service_id}
> _{reques
> t-param:output_id}.xsl"/>
>   
>   
>
> --
>   Konstantin
>
> > ...
> >
> > My question:
> > Can I handle this somehow in one action (something like "2 return
> values")?
> > Or do it somehow else?
> >
> > 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 disclo

Re: 2 return values from an action?

2003-01-30 Thread Konstantin Piroumian
From: <[EMAIL PROTECTED]>


> Hi,
>
> thanks to you guys I got my action running finally.
> Now I have another question.
>
> For example: I have 1 xml file that could be displayed in 15
> xsl-Stylesheets (in various formats: html, pdf, xls).
>
> Currently in my first action I choose the corresponding file.
>



>
> In the other action I choose the output format.
>



> Thats how I use it in the sitemap:
> ...
> 
> 
> 
>
> 
> 
>  
>  
>  

This won't work, you should use nested actions in such cases. Actions work
like an if ... else ... statement: if an action returns a non-null value
then it's contents is processed, otherwise the following part is processed.

In your particular case it'd be much better to return two values from the
action, just you different keys in the HashMap to do it:

results.put("xsl-choice", "style.xsl");
results.put("format", "pdf");

and then use it in your sitemap like this:


 



 
  

This one should work fine. But it'd be even better if you've used input
modules instead of an action. Something like this:


  
  
  
  

--
  Konstantin

> ...
>
> My question:
> Can I handle this somehow in one action (something like "2 return
values")?
> Or do it somehow else?
>
> 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. 
>
> 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. 

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




Re: Using an action correctly?

2003-01-29 Thread Konstantin Piroumian
From: "Andres, Judith" <[EMAIL PROTECTED]>
...
should read:
// Now choose the suitable XSL for the output
if(report_id.equals("16"))
  results.put("result","report_16");

KP> results.put("results","report_16");
KP> --^
KP> "results" and not "result", to be exact.
KP>
KP>-- Konstantin


-
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: Using an action correctly?

2003-01-29 Thread Konstantin Piroumian
From: <[EMAIL PROTECTED]>

> Hi,
>
>
> Thats how I use it in the sitemap:
> ...
> 
> 
> 
>
>
> 
>  

Try to change this like below:

 
 



 
  

--
  Konstantin

> ...
>
> But I only get the error that cocoon can't find the page (Resource not
> found). Invoking the different stylesheets "manually" is no problem, but
> using the action.
> Since it is my first action, I don't know where to look for the error.
>
> Another question. Can't I just give back a String? My XSLs are called
> report_16.xsl, report_17.xsl, report_18.xsl, report_19.xsl, error.xsl
>
> 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. 
>
> 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. 

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




Re: [heads-up] Re: Wiki broken with IE (was: "The Newbies Competence Center")

2003-01-29 Thread Konstantin Piroumian
From: "Steven Noels" <[EMAIL PROTECTED]>
> Konstantin Piroumian wrote:
>
> > Sorry, it shoud be read as:
> >
> >
> >> You can easily notice that this problem is NOT present on the
> >> Forrest site
> >
> > and
> >
> >> it looks like a typo or so in CSS.
>
> Sure. Now has anyone an idea how to fix it? ;-)

Let's try.
You have a class assigned to menu items (), but
don't have a CSS style for this in the page.css, so I assume that default
a.hover is used, which has font color the same as the menu background.
So, either remove the class from the link or add style like this to the CSS
file:
.menu .wikipage a:hover { color: #FFCC00; text-decoration : none; }

 (didn't test it, sorry, I'm too lazy and too busy right now ;) ).

--
  Konstantin

>
> 
> --
> Steven Noelshttp://outerthought.org/
> Outerthought - Open Source, Java & XML Competence Support Center
> Read my weblog athttp://blogs.cocoondev.org/stevenn/
> stevenn at outerthought.orgstevenn at apache.org
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[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: [heads-up] Re: Wiki broken with IE (was: "The Newbies Competence Center")

2003-01-29 Thread Konstantin Piroumian
From: "Konstantin Piroumian" <[EMAIL PROTECTED]>
> From: "Steven Noels" <[EMAIL PROTECTED]>
> > Steven Noels wrote:
...

Sorry, it shoud be read as:

> You can easily notice that this problem is NOT present on the Forrest site
and
> it looks like a typo or so in CSS.


>
> --
>   Konstantin


-
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: [heads-up] Re: Wiki broken with IE (was: "The Newbies Competence Center")

2003-01-29 Thread Konstantin Piroumian
From: "Steven Noels" <[EMAIL PROTECTED]>
> Steven Noels wrote:
>
> > I'm not on IE, nor have I the huge screen to test this particular
> > condition...
> >
> > I'm working on the Wiki this morning, and I might find something out,
> > but any HTML/CSS enthusiast on the list might give it a go, too. I
> > cannot fathom what is going on, except for IE-weirdness. Could one of
> > you guys check the original layout, on
> > http://www.ecyrd.com/JSPWiki/Wiki.jsp?
>
> I've been upgrading IE on my machine and am now experiencing the same
> problem on my working copy of the new Wiki skin (which is a copy of the
> latest Forrest skin on
> http://forrestbot.cocoondev.org/sites/xml-forrest-template/).
>
> I've attached a screenshot of the problem - when I hover across the left
> menu, or when I resize my browser window, the links start to appear...

Guys, why don't you read my messages carefully? ;)
I've reported this problem just after the new skin was introduced.

You can easily notice that this problem is present on the Forrest site and
it looks like a typo or so in CSS.

--
  Konstantin

>
> I know some serious HTML buffs are on this list, so could you please
> step up? ;-)
>
> 
> --
> Steven Noelshttp://outerthought.org/
> Outerthought - Open Source, Java & XML Competence Support Center
> Read my weblog athttp://blogs.cocoondev.org/stevenn/
> stevenn at outerthought.orgstevenn at apache.org
>
>














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


-
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: simple question about RequestSelector

2003-01-27 Thread Konstantin Piroumian
From: "Cyril Vidal" <[EMAIL PROTECTED]>


>
> Now, I will try to do something with i18nTransformer, so that I shouldn't
> need no more two stylesheets.
>
> If you know some accessible documentation about it, I would be very
> intersted in...

Start from here:
http://xml.apache.org/cocoon/userdocs/transformers/i18n-transformer.html

and then take a look at i18n samples in /src/webapp/samples/i18n/

--
  Konstantin

>
> Any way , Again Many Thanks, for your Help,
>
> Best,
>
> Cyril.
>
> - Original Message -
> From: "Joerg Heinicke" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, January 25, 2003 4:42 PM
> Subject: Re: simple question about RequestSelector
>
>
> > Hello Cyril,
> >
> > the participants.xsl can be really simple:
> >
> > 
> >
> > 
> >
> > 
> >
> > Replacing YOURDEFAULTLANGUAGE with EN or FR you can choose the default
> > language of the application. And the above stylesheet is really not
> > difficult to maintain.
> >
> > But maybe there is such a fallback operation in the input modules too?
> >
> > Regards,
> >
> > Joerg
> >
> > Cyril Vidal wrote:
> > > Hi Christian,
> > >
> > > Thanks again very much for your help.
> > > I've tested what you suggested me (a good idea...) and it works fine:
> > >
> > > But, as I read in Cocoon center's lesson about request parameter:
> > > Some advantages of RequestSelector over a RequestParamAction are that
> > >
> > >  you can use a default stylesheet when the parameter is not
> present,
> > >
> > >
> > > and in my example, when I point the browser for the first time to
> > > http://localhost:8080/cocoon/hellococoon
> > >
> > > of course, because I not have participants.xsl among my stylesheets
but
> > > juste participantsFR.xsl and particpantsEN.xsl,  Cocoon generates an
> > > error...(In fact, I've added another particpants.xsl styleshhet to fix
> the
> > > problem, but it also requires to build another stylesheet...). Or is
> there
> > > another simplest solution?
> > >
> > >
> > >>Regarding the original question, I believe the
"use-request-parameters"
> > >>configuration needs to go into the configuration section and not into
> > >>the pipeline.
> > >
> > >
> > > IN the same lesson, it's said apparently that we can:
> > >
>
http://www.cocooncenter.de/cc/documents/resources/request-params/transformer
> > > .html
> > > I've tested it in another example and it seemed to work.
> > >
> > >  In addition, you would not neet the next
> > >
> > >>  
> > >>becasue *all* parameters are available. Besides, "{critere}" is
> > >>undefined at this place since the selector does not set any sitemap
> > >>variables. For this you would need either the input module syntax
above
> > >>or an action that sets a variable.
> > >>
> > >
> > >
> > > ...I'm sorry, but I'm afraid not to understand very well what you're
> trying
> > > to explain to me...
> > > How can I mix an action and a select?
> > >
> > > Thanks for your help,
> > > Best,
> > > Cyril.
> >
> >
> > -
> > 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]>
> >
>
>
> -
> 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]>
>
>


-
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: URI of the Sitemap Schema?

2003-01-27 Thread Konstantin Piroumian
There is a draft sitemap schema in
/src/documentation/xdocs/drafts/sitemap-2.1-draft.xsd which can be used to
validate most of the sitemaps.

--
  Konstantin

- Original Message -
From: Robert Simmons
To: Cocoon Users
Sent: Monday, January 27, 2003 04:21
Subject: URI of the Sitemap Schema?


Greetings,

Is there a uri for a sitemap schema that users can use to validate the
sitemap during development ? If so, Id like to have it.

TIA

-- Robert


-
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: .Net port of Cocoon

2003-01-24 Thread Konstantin Piroumian
Looks fine! Thanks.

I've corrected a little and added the original author's name - Vadim.

--
  Konstantin

- Original Message -
From: "Joerg Heinicke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 23, 2003 19:35
Subject: Re: .Net port of Cocoon


> Very cool, Konstantin. I added the information to
> http://wiki.cocoondev.org/Wiki.jsp?page=HotDeploy. Hey, my first Wiki
> page ;-) Did I forget anything?
>
> Regards,
>
> Joerg
>
> Konstantin Piroumian wrote:
> > From: "Andreas Bednarz" <[EMAIL PROTECTED]>
> >
> >>Hi Derek,
> >>
> >
> > 
> >
> >>no VM restarting for debugging etc
> >
> >
> > My advice won't help you much if you decided not to use Cocoon, but I
hope
> > it would be helpful for other users. (Would be also fine if somebody
could
> > write an this on Wiki).
> >
> > To avoid restarting the VM (the servlet container) you should do the
> > following:
> > - use a container that supports hot deploy or so (I've used Tomcat
4.0.4
> > and 4.1). You can use it for development only and then deploy some other
> > server.
> > - configure your servlet container to load application located in
> > /build/cocoon/webapp. In case of Tomcat you should a
context in
> > /conf/server.xml pointing to that location, e.g.:
> >  > docBase="C:\Java\Apache\xml-cocoon\xml-cocoon-2.1\build\cocoon\webapp"
> > debug="0"
> >  reloadable="true">
> >>  prefix="localhost_cocoon_2_1_log." suffix=".txt"
> >   timestamp="true"/>
> > 
> >
> > - and at last build Cocoon using
> > build.[bat|sh]-Dinclude.webapp.libs=true webapp-local. This will build
> > Cocoon and will place all classes in WEB-INF/classes so Tomcat could
track
> > changes.
> >
> > Now you can compile your classes and Tomcat will reload the application
as
> > soon as modifications are detected (it requires about a 1min).
> >
> > --
> >   Konstantin
>
>
> -
> 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: Different stylesheets called on runtime?

2003-01-23 Thread Konstantin Piroumian
From: "Christian Haul" <[EMAIL PROTECTED]>
> On 23.Jan.2003 -- 02:36 PM, [EMAIL PROTECTED] wrote:
> > Hi,
> >
> > I have  for example an XSP and various XSLs for the output (of the data
> > from that XSP).
> > In the -part it should/is deceided on runtime, which one of
the
> > XSLs to use for the output.
> >
> > Where do I have to manage that? I mean, how/where do I tell cocoon which
> > XSL to use(In the sitemap?Can the xsp handle that?)?
>
> Yes, the sitemap is the place. No, XSP cannot handle that. You need to
> use one of the sitemap components for that: a matcher, a selector, or
> an action.

and an input module.

>
> If the stylesheet depends on the request this is pretty easy. If it
> depends on calculations or data retrieved inside the XSP, you may need
> to write your own action, selector, matcher.

input module.

Chris, how could you forget about it? ;)

--
  Konstantin

>
> Chris.
> --
> C h r i s t i a n   H a u l
> [EMAIL PROTECTED]
> fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08
>
> -
> 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]>
>
>


-
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: .Net port of Cocoon

2003-01-23 Thread Konstantin Piroumian
From: "Andreas Bednarz" <[EMAIL PROTECTED]>

> Hi Derek,
>


> no VM restarting for debugging etc

My advice won't help you much if you decided not to use Cocoon, but I hope
it would be helpful for other users. (Would be also fine if somebody could
write an this on Wiki).

To avoid restarting the VM (the servlet container) you should do the
following:
- use a container that supports hot deploy or so (I've used Tomcat 4.0.4
and 4.1). You can use it for development only and then deploy some other
server.
- configure your servlet container to load application located in
/build/cocoon/webapp. In case of Tomcat you should a context in
/conf/server.xml pointing to that location, e.g.:

  


- and at last build Cocoon using
build.[bat|sh]-Dinclude.webapp.libs=true webapp-local. This will build
Cocoon and will place all classes in WEB-INF/classes so Tomcat could track
changes.

Now you can compile your classes and Tomcat will reload the application as
soon as modifications are detected (it requires about a 1min).

--
  Konstantin

>
> Andreas Bednarz, Germany
>
>
> Am Don, 2003-01-23 um 14.30 schrieb Derek Hohls:
> > An interesting concept that, "too open-source"...?
> > Is this perhaps the opposite of Microsoft't "too closed-source"??
> >
> > And, all due respect here, Andreas, but what you are saying is that
> > your programming team (a) does not know Java and (b) does not want
> > to learn it - which is fine, of course, but lets not pretend t!hat the
> > alternative choices are significantly easier or better.  It's simple
> > not
> > true - but let's not debate that here.  What is true is that Cocoon as
> > a platform builds and, yes, relies on the strength of a number of
> > components (but its modular design means that it is not, of course,
> > dependant on them).  Some may see this as a weakness.  I, and
> > I am sure others, see this as a strength.  If you want to put all your
> > eggs in one basket good luck
> >
> > PS and in the software world there are no guarantees. period.
> > >>> [EMAIL PROTECTED] 23/01/2003 02:43:46 >>>
> > Hi There,
> >
> > I would completely enjoy using a port of cocoon for .NET. Following
> > the
> > newsgroup since 6 month there are many topics inside cocoon that could
> > be mastered by .NET easilly without the overhead you have in java.
> > Hope
> > that somebody will start such a project and gives us a framework
> > consisting of an XMl/XSL/Filter mechanisms with a smaller footprint.
> > We
> > also decided not to use cocoon. It is simply to complicated to fit a
> > new
> > team prgrammer and the whole thing is too "open source". Nobody is
> > really responsible, nobody can guarantee that next releases will give
> > exactly the same API ... Of course this is one weakness of Microsoft
> > too, but an independant programmer team could make a strong competitor
> > to cocoon :-)
> >
> > Andreas Bednarz
> > education-one GmbH
> >
> > Am Mit, 2003-01-22 um 21.45 schrieb arjen stolk:
> > > I have heard some rumours about a .Net port of Cocoon. What about
> > it?
> > >
> > > One of the reasons that our company has decided not to use Cocoon is
> > the
> > > fact that we have an existing webapplication with MS COM+ components
> > running
> > > on IIS.  We didn't see any possibility to incorporate a java
> > application
> > > server (although maybe Atlanta ServletExec might do the job) and
> > integrate
> > > the COM components as well. Since the application makes extensive
> > use of xml
> > > and xsl Cocoon would have given us the possibility to throw out a
> > lot of
> > > code and make the whole application more configurable, as to adapt
> > to
> > > customers desires.
> > >
> > > But alas.
> > >
> > > Having a .Net version of Cocoon would make a difference.
> > >
> > >
> > > Sincerily, Arjen Stolk
> > >
> > >
> > >
> > >
> > >
> > -
> > > 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]>
> > --
> > Andreas Bednarz <[EMAIL PROTECTED]>
> >
> >
> > -
> > 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]>
> >
> >
> > --
> > This message has been scanned for viruses and dangerous content by
> > MailScanner, and is believed to be clean.
> >
> > "The CSIR exercises no editorial control over E-mail messages and/or
> > attachments thereto/links referred to therein originating in the
> > organisation and the views in this message/attachments thereto are
> > therefore not necessarily those of the C

Re: Antwort: i18n more!!!!!!!!! :(

2003-01-23 Thread Konstantin Piroumian
RE: Antwort: i18n more! :(Take a look at the i18n samples XSP page
(/samples/i18n/simple.xsp) source. There is a form field where you can enter
text in any (supported by Java/Xalan) encoding and then get it back on the
same page (see Hello Tomcat! message).

I've checked that for all the present in the sample locales, including
Chinese, Japanese and Armenian (which are quite good at finding out any
Unicode issues).

--
  Konstantin

- Original Message -
From: Hong Gia Dinh
To: [EMAIL PROTECTED]
Sent: Thursday, January 23, 2003 07:18
Subject: RE: Antwort: i18n more! :(


Thanks a lot, i applied it with encoding=utf-8 but it just can display some
international character!!! some cant!!
so .. do you know why and how to fix it??
i changed the encoding to ISO-8859-1 but i can not display any thing!!! does
cocoon 2.0.4 not support for this encoding???
Thanks a lot for help!!
Gia Dinh


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 22 January 2003 18:02
To: [EMAIL PROTECTED]
Subject: Antwort: i18n more! :(




Hello!
Do you use this Action in your pipeline?


  

If not, try to insert it before(!!!) your matchers, where the requests come
in. (inside the pipeline!!!)
cheers
manfred




[EMAIL PROTECTED] am 22.01.2003 11:59:04
Bitte antworten an [EMAIL PROTECTED]@inet
An:  [EMAIL PROTECTED]
Kopie:
Thema:   i18n more! :(




Hi all
I am deploying my application on JBoss 3.0.4 and jdk 1.4 and cocoon 2.0.4
i can set and change language with static values OK but!
when my request sent with unicode value and CR values in the text , the
ressponse always displays error characters and all CR are deleted!! ???
i dont know how to fix it as wella s sometimes it keeps  on confuses
between {../../locale} and {../../../locale}when upgrading cocoon
version??? why? i am nearly dont know how and why those bug, althpough
i read all cocoon examples carefully??
cant you all tell me how to fix those bugs???
All your information are very appreciated!!
thanks a lot much!
GD









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


-
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: i18n problem with i18n:attr : ArrayIndexOutOfBoundsException

2003-01-22 Thread Konstantin Piroumian
A typical parser/classpath problem.
You'll find the answer here (scroll to the bottom):

http://wiki.cocoondev.org/Wiki.jsp?page=FAQs

--
  Konstantin

- Original Message -
From: "Thomas Haselberger" <[EMAIL PROTECTED]>
To: "Cocoon-Users (E-mail)" <[EMAIL PROTECTED]>
Sent: Tuesday, January 21, 2003 12:52
Subject: i18n problem with i18n:attr : ArrayIndexOutOfBoundsException


I use cocoon 2.0.4 in tomcat 4.1.18 with j2sdk1.4.0_03.

the i18n samples that use i18n:attr work ok, but my i18n transformation
throws an
ArrayIndexOutOfBoundsException.

this is my source xml:
=


http://apache.org/cocoon/i18n/2.0";>
  

  ol
  new

  

=

this is my sitemap matcher entry:
=


  
  
  

=

and that's the error log entry generated:
=
ERROR   (2003-01-21) 10:50.44:761   [sitemap] (/idc/i18ntest/bla)
Thread-15/sitemap_xmap: Sitemap
org.apache.cocoon.ProcessingException: Exception during processing of
file:/D:/java/jakarta-tomcat-4.1.18/webapps/idc/content/wml_for_i18n.xml:
java.lang.ArrayIndexOutOfBoundsException
at
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStrea
mSource.java:214)
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:250)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:395)
at
org.apache.cocoon.www.sitemap_xmap.matchN400126(D:\java\jakarta-tomcat-4.1.1
8\work\Standalone\localhost\idc\cocoon-files\org/apache/cocoon/www\sitemap_x
map.java:1345)
at
org.apache.cocoon.www.sitemap_xmap.process(D:\java\jakarta-tomcat-4.1.18\wor
k\Standalone\localhost\idc\cocoon-files\org/apache/cocoon/www\sitemap_xmap.j
ava:1185)
at
org.apache.cocoon.www.sitemap_xmap.process(D:\java\jakarta-tomcat-4.1.18\wor
k\Standalone\localhost\idc\cocoon-files\org/apache/cocoon/www\sitemap_xmap.j
ava:1128)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152)
at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415
)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)
at
org.apache.t

Re: Automatically generated linefeed before in the JSP causes SAXException

2003-01-20 Thread Konstantin Piroumian
If the JSP samples work then this is probably a problem somewhere in your
XML.
How does your sitemap look like (the relevant part)?

Konstantin

- Original Message -
From: Eduardo Zurita
To: [EMAIL PROTECTED]
Sent: Monday, January 20, 2003 16:05
Subject: Automatically generated linefeed before  in the JSP
causes SAXException


Hello,

I have found that my JSP generator always prints a LineFeed
automatically before  causing the SAXException.

I have examined the generated source and yes, there is a generated
"out.write("\r\n");" just before my code.

How can I resolve this?

Thanks.

Eduardo.





-
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: sitemap matcher woes

2003-01-17 Thread Konstantin Piroumian
From: <[EMAIL PROTECTED]>

> Hi All,
>
> Currently my sitemap is setup like the following:
>
> 
> http://www.w3.org/2000/08/w3c-synd/home.rss"/>
> 
> 
> 
>
> So when I type the following line in my browser:
> http://my.server.com:8080/cocoon/mount/test/w3c.rss
>
> It gets me the content of the W3C RSS feed
>
>
> However, I wanna to configure my sitemap such that, when I request:
> http://my.server.com:8080/cocoon/mount/test/
> http://www.w3.org/2000/08/w3c-synd/home.rss
>
> It should work as well. So I tried to write the following:
>
> 
> 
> 
> 
> 
>
> But it doesn't work. Any ideas?
>
> Theoratically it should work... right???

No, it shouldn't. The '*' matches only a file name and not a path. Probably
you are looking for something like below:

 - this will match any path/file.rss
or
 - this will match any request without a path or a
file (default matcher)
or
 - this will match any path.

and so on.

Konstantin



>
> In Peace,
> Saqib Ali
>
>
>
> -
> 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]>
>
>


-
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: - question

2003-01-16 Thread Konstantin Piroumian
From: <[EMAIL PROTECTED]>

>
> OK. Still not running.
>
> web.xml:
> 
>   extra-classpath
>   WEB-INF/classes/fraud_management
>  

This is not required usually.

>
> java-Class in ".../cocoon/Web-Inf/classes/fraud_managment":

correct.

> package fraud_management;
> class execute_report {

Is your class 'public'?

>
>   public String get_fraud()
>   {
> String hello = "Servus";
> return hello;
>   }
> }
>
> xsp:
> 
>xmlns:xsp="http://apache.org/xsp";>
>
>   
>   fraud_management.execute_report
> 
>
>   
> 
>  execute_report er = new execute_report();
>  String hello = er.get_fraud();
>  
> 
>="bla">hello
> 
>   
>
>   
> 
>
> I have a feeling that I don't get the entries in the web.xml
> >>
>
WEB-INF/extra-classes1:/[YOU-ABSOLUTE-PATH-TO]/own.jar
> Do I have to insert additionally the class name? e.g. for Windows systems
>
WEB-INF/classes/fraud_managment;C:/Apache.../fraud_managment/ex
ecute_report.class

No, you should be able to access your classes if they are placed in
WEB-INF/classes as .class files or if they are placed in WEB-INF/lib as a
.jar archive.

Konstantin

>
> Thanks
> 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.
>
>
>
> |-+>
> | |   "Geoff Howard"   |
> | || |   eb.com>  |
> | ||
> | |   01/15/03 07:37 PM|
> | |   Please respond to|
> | |   cocoon-users |
> | ||
> |-+>
>
>---
---|
>   |
|
>   |   To:   <[EMAIL PROTECTED]>
|
>   |   cc:
|
>   |   Subject:  RE:  - question
|
>
>---
---|
>
>
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 15, 2003 11:45 AM
> > To: [EMAIL PROTECTED]
> > Subject:  - question
> >
> >
> > Hi,
> >
> > I want to include my own Java-Class in my XSP-Page
>
> 
>
> > 
> >  >   xmlns:xsp="http://apache.org/xsp";>
> >
> >   
> >
> > 
>
> correct.
>
> >
> >   
> >  
> > String hello = null;
> > hello = get_g();
> > 
> >
> >hello
> change the last line to:
>="bla">hello
>
> You don't state what "doesn't work" but if you mean the page returned only
> a
> literal attribute bla="hello" then this should be your only problem from
> what I can see.
>
>
> >
> >
> >
> >   
> > 
> >
> >
> > Where do I have to place my Java-Class. Under .../cocoon/Web-Inf/classes
> > (where I hava placed it right now!)?
>
> yes, that works - make sure that if your class is declared part of a
> package
> that you replicate the directory structure under WEB-INF/classes (many
> people seem to make that mistake)
>
> > How do I call methods, like my method get_g()?
>
> The same way you would from any java class (your usage above should work
> fine) since XSP generates and compiles a java file the first time your
page
> is executed.  I would highly recommend going to take a look at it.  It's
> under your servlet container's work directory - most likely
>
$TOMCAT_HOME/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon
>
> /www/jonny/filename_xsp.java - you may have to browse around for it if
I've
> made incorrect guesses.
>
>
> HTH,
> Geoff Howard
>
>
> -
> 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]>
>
>
>
>
>
>
> -
> 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: [XMLForm] terminology question

2003-01-16 Thread Konstantin Piroumian
Ok, I'll try to answer again.

>what do you fill with values?

The Form object which is a wrapper for the underlying data model object. It
can be either a JavaBean or a DOM object. And that Form is filled by values
using XPath expressions which are processed by JXPath
(http://jakarta.apache.org/commons/jxpath). The Form object is filled by
values when a request is received and processed by the XMLForms action
(don't remember the exact name, sorry).

>Where do you come from these values?

So, the values come from the request (Http servlet request) parameters,
which should have XPath name, e.g.: '/customer/firstname=John', etc.

As the XMLForm framework was inspired by Struts then you'll find more
detailed description of concepts at Struts' page:
http://jakarta.apache.org/struts

Hope this helps. Of course, the best way to learn how the things happen is
to look at the source and try to implement something simple and so on.

Konstantin


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 16, 2003 16:07
Subject: RE: [XMLForm] terminology question


Hi,

Thank you but my question was about the meaning of the word in the context
of XMLForm rather than the definition of the word itself.

To say in another way:
what do you fill with values?
Where do you come from these values?


Regards
Sylvain

-Message d'origine-
De: Sylvain Wallez [mailto:[EMAIL PROTECTED]]
Date: jeudi, 16. janvier 2003 13:55
À: [EMAIL PROTECTED]
Objet: Re: [XMLForm] terminology question


[EMAIL PROTECTED] wrote:

>Hello,
>
>I'm looking through the XMLForm source code and API and there are many
comments that speak about "population".
>
>What does it mean exactly?
>

It comes from the verb "populate", which, in this context, means
something as "fill with values".

Check also http://dictionary.reference.com/search?q=populate

Sylvain (another one)

--
Sylvain Wallez  Anyware Technologies
http://www.apache.org/~sylvain   http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }



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


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



-
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: [XMLForm] terminology question

2003-01-16 Thread Konstantin Piroumian
The "population" term comes from JavaBeans, Struts, etc. and basicaly it
means filling (populating) java bean properties with values from some other
sources, e.g. XML, map, another bean properties, servlet request, etc.

Konstantin

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 16, 2003 15:51
Subject: [XMLForm] terminology question


Hello,

I'm looking through the XMLForm source code and API and there are many
comments that speak about "population".

What does it mean exactly?

Thank you
Sylvain

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



-
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: i18n again

2003-01-16 Thread Konstantin Piroumian
Title: i18n again



Currently there is no way to do it.
It was in my todo list for a long time and probably 
someday or someone will implement multiple dictionary support (or dictionary 
include/import) capabilities. I'll take a look at it if I have 
time.
 
Another possibility is to use aggregation of dictionaries and 
use 'cocoon:/' protocol to specify the catalogue location.
 
Konstantin

  - Original Message - 
  From: 
  Hong Gia Dinh 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Thursday, January 16, 2003 
  04:38
  Subject: RE: i18n again
  
  Thanks. I had a look there and also applied it! 
  I 
  have a question, can i have a common.xml and common_xx.xml including common 
  vocabularies that will be used in many files!! (the example uses aggregate to 
  get it) but in case i dont use aggregate, so how can i use??? (i dont want to 
  copy and paste common vocabularies in for example search_xx.xml, edit_xx.xml 
  .  . .)
   
  Thanks a lot in advance
  GD
  
-Original Message-From: Konstantin Piroumian 
[mailto:[EMAIL PROTECTED]]Sent: 14 January 2003 
15:35To: [EMAIL PROTECTED]Subject: Re: i18n 
again
Again, please take a look at i18n samples (either in 2.0.3 
or 2.1 versions) and you'll see that it's possible to specify the message 
catalogue name on pipeline level, so you can have different pipelines using 
different message catalogues. In i18n samples there are two message 
catalogues: messages_xx.xml and menu_xx.xml and they are used in different 
pipelines.
 
Konstantin

  - Original Message - 
  From: 
  Hong Gia 
  Dinh 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, January 14, 2003 
  06:32
  Subject: i18n again
  
  Hi all, 
  I have rather large messages files! Can i have any way 
  to define many messages for each language??? My 
  messages_en.xml contains too many data! and i dont want a too large 
  message, because it is very hard to managed and supervised! now i want to 
  separate into number of messages such as messages_en_1.xml 
  messages_en_1_1.xml . . . . can i do something like that or can i separate 
  into small files to manage clearer?
  Thanks a lot in advance GD 
  


Re: i18n again

2003-01-14 Thread Konstantin Piroumian
Title: i18n again



Again, please take a look at i18n samples (either in 2.0.3 or 
2.1 versions) and you'll see that it's possible to specify the message catalogue 
name on pipeline level, so you can have different pipelines using different 
message catalogues. In i18n samples there are two message catalogues: 
messages_xx.xml and menu_xx.xml and they are used in different 
pipelines.
 
Konstantin

  - Original Message - 
  From: 
  Hong Gia Dinh 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, January 14, 2003 
  06:32
  Subject: i18n again
  
  Hi all, 
  I have rather large messages files! Can i have any way to 
  define many messages for each language??? My 
  messages_en.xml contains too many data! and i dont want a too large message, 
  because it is very hard to managed and supervised! now i want to separate into 
  number of messages such as messages_en_1.xml messages_en_1_1.xml . . . . can i 
  do something like that or can i separate into small files to manage 
  clearer?
  Thanks a lot in advance GD 



Re: < i18n:when> ????????????

2003-01-14 Thread Konstantin Piroumian



 is implemented in Cocoon 2.1-dev 
only.
Take a look at the i18n samples there.
 
Konstantin

  - Original Message - 
  From: 
  Hong Gia Dinh 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, January 14, 2003 
  06:47
  Subject: < i18n:when> 
  
  
  Can you all tell me where  is 
  implemented??? 
  in which version of Cocoon??? i am using cocoon 2.0.3 but cant 
  find and use it! Thanks a lot 
  -Original Message- From: 
  Piroumian Konstantin [mailto:[EMAIL PROTECTED]] 
  Sent: 13 October 2002 16:48 To: '[EMAIL PROTECTED]' 
  Subject: RE: i18n:when 
  > From: Alex Romayev [mailto:[EMAIL PROTECTED]] > > Hello, > 
  > Just wanted to follow through on the discussion 
  from a > couple of month back.  There was a 
  proposal that > Konstantin was going to work on to 
  implement i18:when > tag as an alternative to using 
  message files, so that > you could have in the same 
  file something like: 
  Yes, that's true. And it was 
  implemented by Matthieu Sozeau as we discussed. As the implementation was done long time ago (several months) it needs 
  synchronization with the current version of Cocoon, but I 
  hadn't time to do it. Though, if anybody needs the 
  full implementation with updated samples and 
  dictionary handling, just let me know (kpiroumian at apache dot org). 
  
  > >  
  >    > hello > bonjour >    > 
   
  But note, that this is not an alternative to message bundles, 
  but an addition. You can still have all the pages 
  generated from a bundle, but provide some specific 
  messages for a particular language. 
  > > Now here is my question (I'm 
  making some assumptions > here, so please correct 
  me if I'm wrong): > > 
  I18nTransformer is not cacheable, which generally is > not a problem, since it is used as one of the last 
  > transformers in a pipeline, when most of the 
  > "heavy-duty" processing is already done.  Now, 
  this > might not be true for i18n:when tag, which 
  is most > likely to be the first step in a pipeline 
  and hence > the rest of the pipleline is not going 
  to get cached. > Also note, that there is no reason 
  why the result of > i18n:when could not be 
  cached. 
  So seems that i18n transformer can be cached based on the 
  selected locale and cache validity of the used 
  dictionary. I have to think about it, but again I have 
  absolutely no time to work on it, sorry. 
  > > Is this concern valid or am 
  I missing something? 
  Seems reasonable and not only for the i18n:when case. 
  
  Regards,   Konstantin 
  > > Cheers, > -Alex > > 
  - 
  > 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]> > 
  
  - 
  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: sitemap & war

2003-01-13 Thread Konstantin Piroumian
Hi!

Take a look at the webapp properties, you can define which resources to copy
into the WAR. And you can also setup a new file type somewhere in Tools->IDE
settings (or so), so .xmap extension will be recognized.

Konstantin

- Original Message -
From: "Fernando Wermus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 10, 2003 23:25
Subject: sitemap & war


> I?m Fernando. I?m new with Cocoon.
> I am using Jbuilder to create a webapp. My problem is that the
sitemap.xmap
> doesn?t appear in the war file, in the application. What?s more, the
> Jbuilder 6.0 doesn?t reconize the extension .xmap, except .map . Do you
know
> how to run the sitemap.map file under a webapp Cocoon in Jbuiler.
>
> thanks
>
>
>
> -
> 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]>
>
>


-
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: Cocoon webpage in Arabic

2003-01-08 Thread Konstantin Piroumian
From: "Jeremy Quinn" <[EMAIL PROTECTED]>

> Dear All,
>
> I just found out yesterday that I have to have a page in Arabic on a
> site I am working on that is otherwise in English, with a bit of French
> and Spanish (using UTF-8).
>
> I have never worked in non-latin languages before!

Take a look at the i18n sample in Cocoon 2.1 - there a lot of non-latin
languages and it'd be fine to add arabic translation to it. You can start
experimenting there.

>
> Can anyone advise me what kind of issues I will face?
>
> Does utf-8 cover Arabic?

Yes. You'd better use Unicode (UTF-8, UTF-16) from scratch so you'll have
less problems in future.

> Are there different 'xml:lang' specifiers for different forms of Arabic?
> Do you have to do anything special in the generated HTML to reverse the
> text-flow?

I've seen several special tags in HTML for bi-directional content, see:
http://www.w3.org/TR/html4/intro/intro.html#h-2.3.1 - general information
about Internationalization in HTML
http://www.w3.org/TR/html4/charset.html - document representation (character
sets, etc.)
http://www.w3.org/TR/html4/struct/dirlang.html - Language information and
text direction

Regards,
  Konstantin

>
> Please excuse my extreme ignorance!
>
> Thanks for any help.
>
> regards Jeremy
>
>
> -
> 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]>
>
>


-
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: i18n catalogue and sql [act howto]

2003-01-08 Thread Konstantin Piroumian
From: "Cocoon User" <[EMAIL PROTECTED]>

>
> hi konstantin
>
> i plan to create an action that will create sitiemap variables for
> specific request-parameters not for use only with i18n

There is already such action in Cocoon:
src\java\org\apache\cocoon\acting\RequestParamAction.java

But I'd prefer to use already implemented input module, which looks much
better in the sitemap.

Konstantin

>
> is there any simple action or any howto create an action for cocoon?
> i need just a point to start form (something for example)
>
>
> thnx
> stavros
>
> On Wed, 8 Jan 2003, Konstantin Piroumian wrote:
>
> > From: "Cocoon User" <[EMAIL PROTECTED]>
> >
> > > hi martin this is a way to send a parameter inside your xsl file
(pretty
> > > good) but i need something else
> > >
> > > i want to use a request parameter as a variable inside my sitemap
> > >
> > > example
> > >
> > > if i have http://../...?locale=el
> > >
> > > src="{locale}_data.xml"
> > >
> > > point to el_data.xml
> > >
> > > (i have do something similar using a action just like in i18n example
from
> > > 2.1 version of cocoon but i'm wondering if there is another way to do
this
> > > without action)
> >
> > Another possibility is to create an InputModule that will act exactly
like
> > the LocaleAction, so you'll be able to use it like this:
> >
> > src="{i18n:locale}_data.xml"
> >
> > and even now you can use the 'request-param' module for that:
> >
> > src="{request-param:locale}_data.xml"
> >
> > Konstantin
> >
> > >
> > > thnx stavros
> > >
> > >
> > > On 5 Jan 2003, Martin Lüthi wrote:
> > >
> > > >
> > > > You can use the request parameter like this:
> > > >
> > > >   
> > > >  
> > > >  
> > > >   
> > > >
> > > > Cheers Martin
> > > >
> > > >
> > > > Cocoon User <[EMAIL PROTECTED]> writes:
> > > >
> > > > > i know how to make a src file selection based to requested url
using
> > > > > matches
> > > > >
> > > > > http://./el/test
> > > > > http://./en/test
> > > > >
> > > > > 
> > > > > 
> > > > > 
> > > > >
> > > > > but how can do  something similar using parameter?
> > > > >
> > > > > http:///test?locale=el
> > > > > http:///test?locale=en
> > > > >
> > > > > using {1} or {2} i refer to first or second * in pattern
> > > > > but how can i refer to locale prameter value inside  ?
> > > >
> > > >
> >
> >
> > -
> > 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: i18n catalogue and sql

2003-01-08 Thread Konstantin Piroumian
From: "Cocoon User" <[EMAIL PROTECTED]>

> hi martin this is a way to send a parameter inside your xsl file (pretty
> good) but i need something else
>
> i want to use a request parameter as a variable inside my sitemap
>
> example
>
> if i have http://../...?locale=el
>
> src="{locale}_data.xml"
>
> point to el_data.xml
>
> (i have do something similar using a action just like in i18n example from
> 2.1 version of cocoon but i'm wondering if there is another way to do this
> without action)

Another possibility is to create an InputModule that will act exactly like
the LocaleAction, so you'll be able to use it like this:

src="{i18n:locale}_data.xml"

and even now you can use the 'request-param' module for that:

src="{request-param:locale}_data.xml"

Konstantin

>
> thnx stavros
>
>
> On 5 Jan 2003, Martin Lüthi wrote:
>
> >
> > You can use the request parameter like this:
> >
> >   
> >  
> >  
> >   
> >
> > Cheers Martin
> >
> >
> > Cocoon User <[EMAIL PROTECTED]> writes:
> >
> > > i know how to make a src file selection based to requested url using
> > > matches
> > >
> > > http://./el/test
> > > http://./en/test
> > >
> > > 
> > > 
> > > 
> > >
> > > but how can do  something similar using parameter?
> > >
> > > http:///test?locale=el
> > > http:///test?locale=en
> > >
> > > using {1} or {2} i refer to first or second * in pattern
> > > but how can i refer to locale prameter value inside  ?
> >
> >


-
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: i18n Transformation problem

2003-01-08 Thread Konstantin Piroumian
From: "Murari Dhoot" <[EMAIL PROTECTED]>

> Hello Friends,
> I am applying a i18n Transformation on the following button
>
>i18n:attr="value">
>
> Actually depending upon the value of Button i.e. "Search" , i am calling a
> method, but if i apply i18n transformaion the value of button changed and
i
> m not able to call that method.
> So what i need display value of button should change but passing value
> should always be "Search" using i18n???
> how to do this

Take a look at MultiAction and use this:
   

then use the name of the button and not the value to call a method.

Hope this helps.

Konstantin

> Thanks in advance
>
>
> Thanks and Regards,
> Murari Dhoot
>
>
>
> -
> 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]>
>
>


-
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: processing certain xml ,xsl file with xsp under cocoon and mysql?

2002-12-30 Thread Konstantin Piroumian
You can use something like this:
   ...
   
  ...

and a pipeline:


   
  


You can also implement cache validity policy in your generator to check if
the XSLT has changed since last request and if not then use the cached
version without need to retrieve it from the DB.

Konstantin

From: "Hubert Holtz" <[EMAIL PROTECTED]>

Hello,

I don't know know how to open new XML files with a certain XSL file with
the help of XSP and my Mysql database in Cocoon.

I have a table called sites with an column for id,lang,XML,XSL, in my xsp-
file I have a string-array called parameters where the 2 parameters of
the typed url (e.g. http://blablabla.com/main.xsp?id=220&lang=eng ) are
saved.
Depending on these two parameters I want to process the certain XML file
with the XSL file which are in my database(as a link of course).

Any idea how to manage this?

I can output the values of the parameters, that's not the problem, but how
do I say Cocoon that it has to process these two files from my database?

Any suggestions or examples or links are welcome.


Thanks.
Homer30


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



-
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: i18n catalogue and sql

2002-12-30 Thread Konstantin Piroumian
From: "Cocoon User" <[EMAIL PROTECTED]>

>
> hy people
>
> i have found very usefull the i18n processing
> but what happend when you  have large text?

It's not recommended to use i18n transformer for large texts. There are
several other ways to solve that task: use XInclude/CInclude, XSLT with
document() function, sitemap aggregation, etc. Another possibility is to use
separate content files for different languages, e.g: index_en.xml,
index_ru.xml, ..., and then use an action or an input module to retrieve the
needed one based on the user's locale (you can use LocaleAction and its
'language' sitemap parameter).

>
>
>
> is it possible for catalogues to retrieve data from an sql server
> mySQL for example

Recently there was commited a patch that allowed to use any source as input
for the XML catalogue, so you can easily use 'cocoon:/' protocol or any
other to retrieve your dictionary data from a database. Note, that
implementation of i18n and especially the catalogue handling part is quite
different in 2.0.x and 2.1-dev versions.

Konstantin

>
>
> xml page -ID-> catalogue -ID-> data from SQL
>
>
> thnx
>
> stavros
>
>
>
> -
> 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]>
>
>


-
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: using !!!!!!!!!!

2002-12-26 Thread Konstantin Piroumian



You should place attribute translations in a dictionary file 
in the same format as for all the other elements. Attribute translations are not 
different from the rest. They just use special syntax to get the 
values.
 
There *a lot* of sources about i18n where you could get 
answers for most of the cases:
    Internationalization docs: http://xml.apache.org/cocoon/userdocs/transformers/i18n-transformer.html
    i18n samples in Cocoon source 
at: /src/webapp/samples/i18n/
    I18n transformer JavaDocs: http://xml.apache.org/cocoon/apidocs/org/apache/cocoon/transformation/I18nTransformer.html
    LocaleAction JavaDocs: http://xml.apache.org/cocoon/apidocs/org/apache/cocoon/acting/LocaleAction.html
 
I hope they outline all the dark sides of Internationalization 
and localization in Cocoon. You just have to read them carefully.
 
Konstantin

  - Original Message - 
  From: 
  Hong Gia Dinh 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, December 27, 2002 
  06:43
  Subject: using 
  !!
  
  Hi all, 
  I got this problem in using i18n:attr, i read I18n:transformer 
  and try to use it but it does not work!!! :( , i also try to find answers in 
  mail archives but the answers seem not work for me too so ...
  i want to have different languages on my buttons (input 
  type="submit") when i changing languages on my pages although i can change the 
  remains of the pages!!!
  i defined an xml file with Create 
  in my xsl file : 
  i tried cases like these: 1.  
  
  2.  
  3.  
  but i just display 'create'!!! not Create in english and TM in 
  VN and when i press the button it informs 
  errror: 
  Undeclared prefix in name: "i18n:attr". 
  description org.apache.cocoon.ProcessingException: Exception 
  in creating Transform Handler: org.xml.sax.SAXParseException: Undeclared 
  prefix in name: "i18n:attr".
  sender org.apache.cocoon.servlet.CocoonServlet 
  source Cocoon servlet 
  stack-trace 
  so now i dont know how to deal with it??!!! :( 
  do you know how to solve it?? Thanks 
  so much !!! 


Re: strange output when i use i18n transformation

2002-12-26 Thread Konstantin Piroumian
From: "Cocoon User" <[EMAIL PROTECTED]>

> hello people
>
> i have a very strange output when i use i18n
> when i use
> 
> something
> 
>
> and i ask 
> i get in output:
>
>
%0D%0A%09%09%09%09%09%09%09%0D%0A%09%09%09%09%09%09%09%09something%0D%0A%09%
09%09%09%09%09%09%0D%0A%09%09%09%09%09%09%09%09
>
> its very strange because when i remove the i18n element and try with
>
> 
> something
> 
>
> i get in output
> the "something" string

The string you get consists of CR/LF and Tab characters in URL encoded form.
Probably, you have those characters in your dictionary file, e.g.:
[CR][LF]
[tab][tab]something[CR][LF]


and they come out as-is.

The other possible source of those characters is the XSLT. Try to use:


Regards,
  Konstantin

>
> this hapend only when i get the elements value and i put it into a
> parameter look at xsl code that follow
>
>
> a part of my xml code
> -
> 
> sitebuilder.Services
> 
> en
> 
> ..: article_text1
> 
>
>
> 
> sitebuilder.Activities
> 
> 
> locale_lang
> 
> 
> ..:  i18n:key="hmn_activities">article_text1
> 
>
>
> the xsl part that make the trasformation
> 
> 
> 
> 
> 
> 
> ?
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
>select="./osm:linkparam/@name"
>   disable-output-escaping="yes"/>= select="./osm:linkparam/osm:paramvalue" disable-output-escaping="yes"/>
> 
>
>
> and the output in browser source
> 
> http://www.w3.org/1999/XSL/Format"; class="">
> onmouseover="changeUp(this)"
>href="sitebuilder.Services?locale=en"
>class="mainlink"
>oclass="mainlink"
>hclass="hmainlink"
>name="">..: services
> 
> 
>
>
> http://www.w3.org/1999/XSL/Format"; class="">
> onmouseover="changeUp(this)"
>
>
href="sitebuilder.Activities?locale%0D%0A%09%09%09%09%09%09%09%0D%0A%09%09%0
9%09%09%09%09%09en%0D%0A%09%09%09%09%09%09%09%0D%0A%09%09%09%09%09%09"
>
>
>


>here is the problem . why i get this very strange string:
>%0D%0A%09%09%09%09%09%09%09%0D%0A%09%09%09%09%09%09%09%09
>between locale and en
>
>


>
>class="mainlink"
>oclass="mainlink"
>hclass="hmainlink"
>name="">..: activities
> 
> 
>
>
> my browser display this string as one space
>
> any idea?
>
> thanx
>
> Stavros Kounis
>
>
>
> -
> 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]>
>
>


-
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: Value-substitution question

2002-12-25 Thread Konstantin Piroumian
From: "Anna Afonchenko" <[EMAIL PROTECTED]>

> Oh, sorry, this is my typo.
> The error is of course
> The requested URI "/cocoon/test/xml.apache.org/faq-xslt.html" was not
found
>
> But the problem is still the same:
> ** doesn't match URI "xml.apache.org/faq-xslt.html".
> I can of course make two pipelines, one will match *, and the other will
> match **,
> but it is really strange that ** doesn't match the URI with single slash
for
> me.
> What do you mean by "something is differently resolved, if it's only 1
> slash"?
> Somebody can solve this mistery for me?

This is known behavior of "**" patterns. They match only paths, while "*"
pattern matches a file (no slashes in the name). I know this is not very
convinient to create two identical matchers, but as you could see from
sample sitemaps this is a usual situation and it's solved using two
matchers, one for "**" paths and one for "*". Another solution could be to
use the regexp matcher with an appropriate expression.

Try to raise this issue on dev list and probably this will be solved somehow
in future releases. (One of the possibilities could be to allow expressions
like "test/** | test/*" in patterns.)

Konstantin

>
> Thank you very much for your help.
> Anna
>
>
> - Original Message -
> From: "Joerg Heinicke" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, December 25, 2002 11:10 AM
> Subject: Re: Value-substitution question
>
>
> Hello Anna,
>
> I think the matcher is ok. ** matches everything on every hierarchy
> level (so 0, 1 or more slashes). It seems that something is differently
> resolved, if it's only 1 slash.
>
>  > _The requested URI "/cocoon/ub/xml.apache.org/faq-xslt.html" was not
> found_
>
> Where does the "ub" come from?
>
> Regards,
>
> Joerg
>
> Anna Afonchenko wrote:
> > Hi All!
> > I want to get the http request that will provide me the URI of the file
> > to generate (and transform).
> > E.g., the request that I should get will be something like
> > cocoon/test/xml.apache.org/cocoon/faq/faq-xslt.html
> > My pipeline is as following:
> > 
> > http://{1}"; type="html"/>
> > 
> > 
> > 
> >
> > Here is my problem:
> > The pipeline matches the given http request only if the URI has more
> > than one slash, e.g., the previous example will work file, but if the
> > http request is something like
> > cocoon/test/xml.apache.org/faq-xslt.html (only one slash in the given
> > URI that is matched by the wildcard) then I get the error from Cocoon:
> > _The requested URI "/cocoon/ub/xml.apache.org/faq-xslt.html" was not
> found_
> >
> > But I can't also use only one asterisk in the pattern match, because
> > then I will be able to match only URI's that don't contain slashes.
> >
> > So please, can you tell me what is the right pattern match for the URI
> > with any number of slashes (zero, one or more)?
> >
> > Thank you very much for help.
> >
> > Anna
>
>
> -
> 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]>
>
>
> -
> 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]>
>
>


-
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: i18n best practice

2002-12-19 Thread Konstantin Piroumian
From: <[EMAIL PROTECTED]>

> Thank you Konstantin!

Not at all.

>
> "Konstantin Piroumian" <[EMAIL PROTECTED]> writes:
> > My mail application could not open your message correctly due to some
error
> > in encoding, so my answers are marked by [KP]:
>
> Gnus wanted to know the encoding style (latin-1), sorry!
>
> > [KP] i18n transformer is not responsible for language selection, it
accepts
> > a 'locale' parameter (since C2.0.4) which can be generated by a variety
of
> > ways: URI parts, request parameters, retrieved from a DB and of course
> > generated by the LocaleAction.
>
> That's what I understood from the samples and experimentation.
>
> > (1) create URL's with ?locale=xx_YY
> >
> > [KP] This is a common technic for 'changing' the current language (which
> > will be stored in session by LocaleAction if configured)
>
> This is what I tried. My problem was, that subsequent requests used again
the
> first locale. With a little experimentation I found that this depends on
> cookies (of course, the session identification!).  This is why I asked
>
> > (2) store the state of the actual user locale in the session
> >
> > [KP] This is possible for ages by the LocaleAction. And even more, you
can
> > also store locale in a cookie, so that when the user re-visits your site
> > you'll get the locale that he's selected last time.
> >
> > While (1) is straightforward to achieve with stylesheet parameters, it
feels
> > somewhat messy. Solution (2) seems more elegant, however I need some
advice
> > how to:
> >
> > [KP] For (1) you will need to add '?locale=xx_YY' only in one place -
this
> > link for language change.
>
> ok
>
> > (2a) store and change the locale in the session
> > (2b) query the locale from the session and handle it to the
i18n-transformer
> >
> > I guess (2b) is what LocaleAction is for.
> >
> > [KP] LocaleAction is both: for 2a and 2b. Simply take a look at the i18n
> > samples in /webapp/samples/i18n directory). (Note, that there is also
the
> > old i18n directory in /webapp/i18n in C2.0.x versions - it should be
> > removed, do not look at it).
>
> Well, as far as I see, everything works now when cookies are enabled.
Would
> URL-rewriting be an options if no cookies are allowed?

Usually, the URL-rewriting is performed by the server (in WebLogic at least
and AFAIR in Tomcat too) if client does not support cookies. From the
application developer's POV the session tracking mechanism is transparent,
so you don't have to bother how is your session tracked. The only thing to
remember is that when you have external links (that refer to another
application context) or redirects then you'll have to explicitely encode the
session id in your URLs.

I hope you've found the needed configuration parameters that you need to set
to allow the locale information to be saved in session (and create a session
if needed).

Konstantin

>
> Martin
>
> --
> Martin Lüthi [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: i18n best practice

2002-12-19 Thread Konstantin Piroumian
Hi!

My mail application could not open your message correctly due to some error
in encoding, so my answers are marked by [KP]:

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 19, 2002 14:22
Subject: i18n best practice


Hello

The i18n transformer is a great solution for the creation of multilingual
content. So far I have found no documentation on how to best implement
language change. ATM I see two possibilities:

[KP] i18n transformer is not responsible for language selection, it accepts
a 'locale' parameter (since C2.0.4) which can be generated by a variety of
ways: URI parts, request parameters, retrieved from a DB and of course
generated by the LocaleAction.

(1) create URL's with ?locale=xx_YY

[KP] This is a common technic for 'changing' the current language (which
will be stored in session by LocaleAction if configured)

(2) store the state of the actual user locale in the session

[KP] This is possible for ages by the LocaleAction. And even more, you can
also store locale in a cookie, so that when the user re-visits your site
you'll get the locale that he's selected last time.

While (1) is straightforward to achieve with stylesheet parameters, it feels
somewhat messy. Solution (2) seems more elegant, however I need some advice
how to:

[KP] For (1) you will need to add '?locale=xx_YY' only in one place - this
link for language change.

(2a) store and change the locale in the session
(2b) query the locale from the session and handle it to the i18n-transformer

I guess (2b) is what LocaleAction is for.

[KP] LocaleAction is both: for 2a and 2b. Simply take a look at the i18n
samples in /webapp/samples/i18n directory). (Note, that there is also the
old i18n directory in /webapp/i18n in C2.0.x versions - it should be
removed, do not look at it).

[KP] Konstantin

Thanks for all hints

Martin


--
Martin L?thi [EMAIL PROTECTED]




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


-
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: context problem - repeat

2002-12-19 Thread Konstantin Piroumian
context problem - repeatProbably, the problem is in the level you are using
to access parameters in resource (../locale). You are calling your resource
from inside of two nested actions, so the level should be something like
{../../locale}.

It'd be better to pass parameters to resources explicitely just as you do
for the 'target'.

Konstantin

- Original Message -
From: Hong Gia Dinh
To: [EMAIL PROTECTED]
Sent: Thursday, December 19, 2002 07:53
Subject: context problem - repeat





-Original Message-
From: Hong Gia Dinh
Sent: 18 December 2002 09:35
To: '[EMAIL PROTECTED]'
Subject: context problem


Hi all
i got the headache prolem like this
i have the files and sitemap like this :


































































but when i just can run the {1}-error pages of all pages  i cant run the
valid pages!!! but when i replace {1} by the hard coded pages , it can run
well the valid and error pages !!
i dont know how to solve it! when i run with {1} and the error pages form ,
i input the value but it cant find the correct page, it produces error like
this :


org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
java.lang.RuntimeException: admin/system/.xsp could not be found. (possible
context problem)
how to fix it??? it' sstrange that i can run all the pages that match
adminstatic-* rather well!!!
can you all show me what i did wrong ??
Thanks so much GD


-
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: EJBs and Cocoon (hmm, again ;-)

2002-12-19 Thread Konstantin Piroumian
From: "Alef Arendsen" <[EMAIL PROTECTED]>

Alef,

> Hi all,
>
> 
> You wouldn't want to develop an airline reservation system with (just)
> Cocoon.  You wouldn't want to develop a website and documentation
> production environment with (just) EJBs.
>
> I look forward to the two becoming more closely interoperable.  Having
> an
> XSP framework which can work with an EJB environment would be a good
> start
> 
>
> Ok, Rob mentioned the fact that he'd like to see Cocoon more
> interoperable with EJBs. That's exactly what I'd like to see as well.
> I'm kind of new to Cocoon but basically decided already to use in our
> next project, which is an eCommerce system that also has a lot of
> content management features in it.
>
> I want to have my interface component based as much as I want my backend
> to be component based and I think Cocoon is the solution for this
> problem. But how to connect Cocoon to my EJBs? I've seen this question
> asked a lot but haven't seen any real answers.
>
> So the question is: does anybody already have a decent solution for the
> EJB-Cocoon problem? Or isn't there any problem at all...

I really don't understand what are the problems with Cocoon and EJB.
In web environment Cocoon is just a servlet (though a huge one), so working
with EJBs from Cocoon is the same as if you would work from any other
servlet.

Are there any other issues?

I've been using Cocoon 1.8/2.0-alfa/2.0-beta in an project where all the
backend were EJBs and I don't remember having any problems (except common
problems with any other EJB-based application).

Ask more specific questions and I'll try answer them.

Konstantin

>
> If somebody would help me out here, you've got another happy Cocoon user
> once again ;-)
>
> Thanks a lot,
>
> Alef Arendsen
>
> --
> Alef Arendsen
> JTeam B.V.
> E: [EMAIL PROTECTED]
> T: +31(0) 20 486 20 36
> F: +31(0) 84 837 00 00
> M: +31(0) 6 24 11 1996
> W: www.jteam.nl
> [EMAIL PROTECTED]
> +31(0)6 19 338 921
>
>
> -
> 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]>
>
>


-
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: How do I read files inside an Action?

2002-12-19 Thread Konstantin Piroumian
You can do it like this:

Source source = null;
SourceResolver resolver = null;
try {
resolver = (SourceResolver) manager.lookup(
SourceResolver.ROLE );
source = resolver.resolveURI( fileName );
return builder.parse( new InputSource(
source.getInputStream() ));
}
catch (Exception x) {
logger.warn("XMLREsourceBundle: No excalibur-source " +
fileName,
x);
}
finally {
resolver.release( source );
manager.release( resolver );
}

Take a look at the ResourceExistsAction or latest (from CVS)
XMLResourceBundle for details.

Konstantin


From: "Chintalapaty, Sreedhar " <[EMAIL PROTECTED]>


Hi,

Can some one point me to an example of how we can access an xml file on the
file system from a custom Action?

TIA,

Sreedhar

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



-
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: XMLForm: Binding of values

2002-12-18 Thread Konstantin Piroumian
From: "Jakob Praher" <[EMAIL PROTECTED]>
> Am Mit, 2002-12-18 um 14.03 schrieb Konstantin Piroumian:
> > From: "Jakob Praher" <[EMAIL PROTECTED]>
> >
> > > hi,
> > >
> > > I am dropping my xslt/xform impl in favour of the existing cocoon
xform
> > > approach.
> > >
> > > Now I have come over some questions regarding the functionality:
> > >
> > > - Is it possible to bind to existing data?
> >
> > Elaborate on this please. What are you going to bind and where is that
data
> > exist?
> >
> > - If so how to do it ?
> >
>
> yup.
> imagine: you have a list of countries that are stored somewhere (like a
> custom generator out of your app server, or an xml file on the disk )
>
> you have a bean that expects one country out of a list of countries.
>
> so you have your xform statement like this:
>
> 
>
>   
> 
>   
>
> 
>
> mow it would be nifty to bind the items via xpath to an existing
> document (for instance using the cocoon:/ uri scheme )
>
> you could do it by using an xsp page, thus generating the , but
> I think it is such a common idea that it could be good if it is in the
> framework - so you don't have to write an xsp page every time.

It's a very good idea, though, it's not much in XForms way (I mean the W3C
XForms).
Unfortunately, this is not implemented now. It'd be fine if you could
provide a patch or send a more detailed request to cocoon-dev list, so
Ivelin (the author of XMLForms) and other developers could participate in
discussing it and implementing.

Konstantin

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


-
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: XPath problem in Cocoon?

2002-12-18 Thread Konstantin Piroumian
Anna,
(please avoid HTML emails)

Cocoon uses underlying XSLT engine to perform the transformation, so either
this is just an XSLT problem in your code or a problem of the Xalan or XSLTC
(which one is used).

You can simply check if your stylesheet works without Cocoon: run Xalan from
the command line with your XML as input and see what happens.

Konstantin

- Original Message -
From: Anna Afonchenko
To: cocoon-users
Sent: Wednesday, December 18, 2002 16:01
Subject: XPath problem in Cocoon?


Hi all.
Another question for today:
I wrote a small xsl that matches p nodes from the input and prints their
content.
I wrote it like this:


Content of this tag is 




Then I run this stylesheet through cocoon pipeline.
I get empty result, e.g. the for-each didn't match any p node in the input
xml file.
But there are p tags in the input.
Moreover, if I change the for-each statement to

It executes correctly!

Can anyone explain to me, why Cocoon doesn't match //node-name?
In XPath both //node-name and descendant::node()[name()='node-name'] have
the same meaning.
I dont want to use descendant::... style because I have this stylesheet get
the XPath expression to match from some external xml file, and it is really
a headache (if possible at all) to change all my //node-name expressions to
descendant::node()[name()='node-name'] style.

Please explain this mistery to me.

Thank you very much for help.
I know I am writing too many e-mails to the group these days, but since I am
very new to Cocoon, I get stuck every few minutes on something new.

Regards,
Anna


-
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: XMLForm: Binding of values

2002-12-18 Thread Konstantin Piroumian
From: "Jakob Praher" <[EMAIL PROTECTED]>

> hi,
>
> I am dropping my xslt/xform impl in favour of the existing cocoon xform
> approach.
>
> Now I have come over some questions regarding the functionality:
>
> - Is it possible to bind to existing data?

Elaborate on this please. What are you going to bind and where is that data
exist?

> - If so how to do it ?

The more you tell us, the quicker you'll get the answer ;)

Konstantin

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


-
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: /home/userx/~public_cocoon LIKE ./~public_html ?

2002-12-18 Thread Konstantin Piroumian
From: "Piotr Legiecki" <[EMAIL PROTECTED]>
> Konstantin Piroumian wrote:
> 
> >Just take a look at the sitemap in /src/webapp/userhomes (Cocoon 2.1):
> >
> >   
> >  >uri-prefix="~{1}"/>
> >   
> >
> >   
> > 
> >   
> >
> >These two matchers would do the trick.
> >
> >  
> >
> 
> Is it possible under Cocoon 2.0.x?

Sure, why not?
Just try and let us know if there are any problems with it.

Konstantin

> 
> Regards
> Piotr Legiecki
> 
> 
> 
> -
> 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 Wizard alternative?

2002-12-18 Thread Konstantin Piroumian
From: "Robert Sösemann" <[EMAIL PROTECTED]>

> Hy,
>
> in our project (CMS) we want to easily generate input fields in a
> wizard-like interface. It is later used by authors to put different types
of
> articles into a database.
>
> As different types of articles have other information needs, we want to
> provide the user with form field that represent that needs of the specific
> article. So we need a mechanism to generate steps of our wizard (namely
page
> with form fields) from centralized information (great would be the db)
>
> As this XMLWizard mechanism is only available from a cocoon beta, we are
not
> allowed to use it. Can you imagine an alternative way to solve this?

You can simply use the XMLForm's syntax for form representation and use a
custom action to generate the next step for you. To customize the forms you
can either use XSP or a special transformer.

Konstantin

>
> Thanks in advance,
> Robert
>
>
> -
> 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]>
>
>


-
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: /home/userx/~public_cocoon LIKE ./~public_html ?

2002-12-18 Thread Konstantin Piroumian
From: "Björn Voigt" <[EMAIL PROTECTED]>

> Hello Cocooners,
>
> We use a Linux/Tomcat4.1.12/Cocoon2dev Installation on a server
> with many users. Some users would use Cocoon to create a homepage
> with it. Is it possible to configure Cocoon to include folders
> from home directories like apache with public_html and How can we
> include classes from this folders.

Just take a look at the sitemap in /src/webapp/userhomes (Cocoon 2.1):

   
 
   

   
 
   

These two matchers would do the trick.

Btw, it would be also possible to do the same thing for Windows platforms
using system-property module (take a look at the
/samples/modules/sitemap.xmap), but the problem is that user home base
directory on Win2000 contains spaces and that causes problems in Cocoon.

Konstantin

>
> Thanks for help
>
> Björn
>
>
>
>
> --
> Björn VoigtTel: +49-3943-626654
> Hochschule Harze-mail: [EMAIL PROTECTED]
> Projekt MobiHarz
> Friedrichstrasse 57-59
> D-38855 Wernigerode
>
>
>
> -
> 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]>
>
>


-
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: value-substitution in Cocoon

2002-12-18 Thread Konstantin Piroumian
From: "Anna Afonchenko" <[EMAIL PROTECTED]>

> Hi Konstantin.
> Thank you for answering.
> It would be very nice to have combination of input modules in sitemap
> substition values. Waiting for this to be implemented in one of the
further
> versions of Cocoon (hopefully).
> For now I will just use substring-before and substring-after to get the
> desired result.

Btw, you were saying that you need to pass 'value + 1'. Try to use XPath
syntax for that, though, I'm not sure that JXPath handles arithmetic
operations.

> One last question:
> What is the sample (samples/module) that you are talking about?
> There is no module directory under samples directory (at least in my
> distribution,
> that I downloaded just this week).
> Also, if I just print http://localhost:8080/cocoon/samples/modules (or
> module)
> I get an error of "resource not found".
> So where is this sample? I would really like to look at it.

It's currently available only in Cocoon 2.1, which in turn is available only
from CVS.
I'll try to move it to C 2.0.5 too when release date is decided.

Konstantin

>
> Thank you for your help.
>
> Anna
>
>
> - Original Message -
> From: "Konstantin Piroumian" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, December 18, 2002 11:52 AM
> Subject: Re: value-substitution in Cocoon
>
>
> Hi Anna and Team!
>
> CC-ing this message to Cocoon Dev list, cause it raises a more general
> requirement for possibility to combine input modules with other input
> modules in sitemap substitution values (see below for a use-case).
>
> From: "Anna Afonchenko" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, December 18, 2002 12:23
> Subject: Re: value-substitution in Cocoon
>
>
> > Sorry for returning to this issue again, but I can't find an answer.
> > Can I use value substitutoin inside the input module?
> > Referring the example that yoou gave me, I don't want to get the
substring
> > of the whole URI, if I have match:
> > 
>
> I see.
>
> >
> > I want to refer to the first wildcard inside the request: module,
> something
> > like:
> >  > e.g. I want to apply XPath expression only on part of the URI using
value
> > substitution.
>
> Quite natural desire. Unfortunately, this is not supported (I hope yet),
but
> it would be very useful.
>
> > This is probably very stupid question, but I can't find an answer.
>
> Don't bother so much about stupid questions, if it were really stupid then
> I'd simply ignore it ;)
>
> > Can somebody please explain me this or redirect me to some URL with
> > explanations?
> > (I read the http://xml.apache.org/cocoon/userdocs/concepts/modules.html,
> but
> > it just explains the concept of modules, it doesn't have the example
that
> I
> > need).
>
> Yes, that's true. The documentation for Input module is very short, but I
> hope that the sample (/samples/modules) demonstrates most of the
> possibilities.
>
> Konstantin
>
> >
> > Thank you very much for help.
> >
> > Anna
> >
> > - Original Message -
> > From: "Konstantin Piroumian" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, December 17, 2002 2:13 PM
> > Subject: Re: value-substitution in Cocoon
> >
> >
> > Hi!
> > (Please do not use HTML mails in the mailing list.)
> >
> > I see two ways to solve this task:
> >   1. Use an action that will get the original parameter and generate
> another
> > one, which you'll pass to the transformer.
> >   2. Use a the Request input module, e.g.   > value="{request:substring(requestURI, 0, 1)}"/> - this sample will give
> you
> > the first letter (see /samples/module/sitemap.xmap and XPath reference
to
> > learn how to get the last character).
> >
> > It sounds a little strange what you are trying to do though...
> >
> > Regards,
> >   Konstantin
> >
> > - Original Message -
> > From: Anna Afonchenko
> > To: cocoon-users
> > Sent: Tuesday, December 17, 2002 14:55
> > Subject: value-substitution in Cocoon
> >
> >
> > I have the following question:
> > I know that in Cocoon I can use value substitution inside a pipeline,
e.g.
> > if I have a pipeline
> > 
> >   
> > 
> > 
> >   
> > 
> >   
> > 
> >
> > and

Re: xi:fallback element in cocoon's Xinclude transformer

2002-12-18 Thread Konstantin Piroumian
Hi!

From: "Yury Mikhienko" <[EMAIL PROTECTED]>

> Hi all!
>
> Can anyone answer  the follofing question:
> Why cocoon's Xinclude transformer does not still emplement xi:fallback
element?
> (See recomendations in http://www.w3.org/TR/xinclude/)
> The implementation of this feature requires a simple modification in
Xinclude transformer code.
> (I tried to hack the Xinclude transformer for add xi:fallback and it works
:) )

Feel free to post a patch to Bugzilla, so developers could review it and
apply.

Konstantin

>
> --
>
> Best regards,
> Yury Mikhienko.
> IT engineer, ZAO "Mobicom-Kavkaz"
>
> -
> 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]>
>
>


-
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: value-substitution in Cocoon

2002-12-18 Thread Konstantin Piroumian
Hi Anna and Team!

CC-ing this message to Cocoon Dev list, cause it raises a more general
requirement for possibility to combine input modules with other input
modules in sitemap substitution values (see below for a use-case).

From: "Anna Afonchenko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 18, 2002 12:23
Subject: Re: value-substitution in Cocoon


> Sorry for returning to this issue again, but I can't find an answer.
> Can I use value substitutoin inside the input module?
> Referring the example that yoou gave me, I don't want to get the substring
> of the whole URI, if I have match:
> 

I see.

>
> I want to refer to the first wildcard inside the request: module,
something
> like:
>  e.g. I want to apply XPath expression only on part of the URI using value
> substitution.

Quite natural desire. Unfortunately, this is not supported (I hope yet), but
it would be very useful.

> This is probably very stupid question, but I can't find an answer.

Don't bother so much about stupid questions, if it were really stupid then
I'd simply ignore it ;)

> Can somebody please explain me this or redirect me to some URL with
> explanations?
> (I read the http://xml.apache.org/cocoon/userdocs/concepts/modules.html,
but
> it just explains the concept of modules, it doesn't have the example that
I
> need).

Yes, that's true. The documentation for Input module is very short, but I
hope that the sample (/samples/modules) demonstrates most of the
possibilities.

Konstantin

>
> Thank you very much for help.
>
> Anna
>
> - Original Message -
> From: "Konstantin Piroumian" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, December 17, 2002 2:13 PM
> Subject: Re: value-substitution in Cocoon
>
>
> Hi!
> (Please do not use HTML mails in the mailing list.)
>
> I see two ways to solve this task:
>   1. Use an action that will get the original parameter and generate
another
> one, which you'll pass to the transformer.
>   2. Use a the Request input module, e.g.   value="{request:substring(requestURI, 0, 1)}"/> - this sample will give
you
> the first letter (see /samples/module/sitemap.xmap and XPath reference to
> learn how to get the last character).
>
> It sounds a little strange what you are trying to do though...
>
> Regards,
>   Konstantin
>
> - Original Message -
> From: Anna Afonchenko
> To: cocoon-users
> Sent: Tuesday, December 17, 2002 14:55
> Subject: value-substitution in Cocoon
>
>
> I have the following question:
> I know that in Cocoon I can use value substitution inside a pipeline, e.g.
> if I have a pipeline
> 
>   
> 
> 
>   
> 
>   
> 
>
> and if I write the URI http://localhost:8080/cocoon/param1/some.html
>
> then in the pipeline the stylesheet some.xsl will receive a parameter with
> name param and value param1. So this is my question:
> Can I somehow parse/evaluate this parameter {1} inside the sitemap (not
> inside the xsl).
> E.g., can I somehow, having {1}="param1" extract the last character ("1"
in
> this case) and send to the xsl only it, or, having parameter {1}=1, send
> {1}+1, i.e. 2 to the stylesheet?
>
> I need this because I want to build pipeline that will get some parameter
n,
> and after it is executed I want to call the same pipeline with parameter
> n+1.
> Is this possible in sitemap?
>
> Thank you very much for help.
>
> Anna
>
>
> -
> 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: XML Schema's or DTDs for sitemaps/logicsheets?

2002-12-17 Thread Konstantin Piroumian
You'll find a more or less up-to-date XSD for the sitemap in
/src/documentation/xdocs/drafts/sitemap-2.1-draft.xsd

There is also a DTD for the sitemap and a RelaxNG schema somewhere there...

Konstantin

From: "Ben Young" <[EMAIL PROTECTED]>

> Are there any Schemas or DTDs available for the sitemap or logicsheets?
>
> Thanks,
> Ben
>
>
> -
> 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]>
>
>


-
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: value-substitution in Cocoon

2002-12-17 Thread Konstantin Piroumian
Hi!
(Please do not use HTML mails in the mailing list.)

I see two ways to solve this task:
  1. Use an action that will get the original parameter and generate another
one, which you'll pass to the transformer.
  2. Use a the Request input module, e.g.   - this sample will give you
the first letter (see /samples/module/sitemap.xmap and XPath reference to
learn how to get the last character).

It sounds a little strange what you are trying to do though...

Regards,
  Konstantin

- Original Message -
From: Anna Afonchenko
To: cocoon-users
Sent: Tuesday, December 17, 2002 14:55
Subject: value-substitution in Cocoon


I have the following question:
I know that in Cocoon I can use value substitution inside a pipeline, e.g.
if I have a pipeline

  


  

  


and if I write the URI http://localhost:8080/cocoon/param1/some.html

then in the pipeline the stylesheet some.xsl will receive a parameter with
name param and value param1. So this is my question:
Can I somehow parse/evaluate this parameter {1} inside the sitemap (not
inside the xsl).
E.g., can I somehow, having {1}="param1" extract the last character ("1" in
this case) and send to the xsl only it, or, having parameter {1}=1, send
{1}+1, i.e. 2 to the stylesheet?

I need this because I want to build pipeline that will get some parameter n,
and after it is executed I want to call the same pipeline with parameter
n+1.
Is this possible in sitemap?

Thank you very much for help.

Anna


-
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: i18n - greek sample

2002-12-16 Thread Konstantin Piroumian
Great!

The official way of submiting patches is through Bugzilla, but it'd be
faster if you send it directly me by [EMAIL PROTECTED]

Please, include also the image of the Greece flag.

Konstantin

From: "Cocoon User" <[EMAIL PROTECTED]>

>
> we have add greek language in i18n refactored sample
>
> where can we send all this files to be part of the official
> i18n refactored samples
>
>
> Stavros Kounis
> http://www.osmosis.gr
>


-
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: i18n and xmlform combination- HELP

2002-12-11 Thread Konstantin Piroumian
i18n and xmlform combination- HELPPlease do not use HTML messages!

Try to remove the LocaleAction and leave the:




if this helps, move the action to the beginning of the matcher and wrap with
it all the contents. Do not forget to change other parameters, e.g.:


---^

Konstantin


- Original Message -
From: Hong Gia Dinh
To: [EMAIL PROTECTED]
Sent: Wednesday, December 11, 2002 13:23
Subject: i18n and xmlform combination- HELP





-Original Message-
From: Hong Gia Dinh
Sent: 10 December 2002 15:10
To: '[EMAIL PROTECTED]'
Subject: RE: i18n and xmlform combination-HELP


I just applied i18n into the XMLForm sample of Cocoon2.1 like this, but it
cant apply i18n
in sitemap i declare :


http://www.ascc.net/xml/schematron"/>


























and my start.xsp like this:

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



start?locale=en
English


start?locale=fr
French










homepage







and my userIdentity.xsp like this :

http://apache.org/xsp";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:i18n="http://apache.org/cocoon/i18n/2.0";>
http://xml.apache.org/cocoon/xmlform/2002";>



wizard?cocoon-action-start=true&locale=en
English



wizard?cocoon-action-start=true&locale=fr

French




personal_information

.
and wizard2html.xsl :




http://www.w3.org/1999/XSL/Transform";
xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002";
exclude-result-prefixes="xalan"
xmlns:i18n="http://apache.org/cocoon/i18n/2.0";>




XMLForm - Cocoon Feedback Wizard













but every time i click to change from english to french in the userIdentify
form and even in the english form the part "

personal_information

" always display 'personal_information' (message key)- not 'Personal
Information'
although i define the messages files and in sitemap :

messages

translation
true

for the directory and the file
i am really getting crazy with it!!
can somebody tell me what i did wrong ???
thanks very very much in advance
GD











-Original Message-
From: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]]
Sent: 10 December 2002 13:54
To: '[EMAIL PROTECTED]'
Subject: AW: i18n and xmlform combination-HELP


have you set the {locale} variable correctly or are you sure this working.
my sitemap looks like this:
- code -
 
   
 
   
 
- /code 
try to set the locale parameter to a hard coded value to see if this is
working:
eg.  
to reference a dictionary like dict_tw.xml
ciao Lars
-Ursprüngliche Nachricht-
Von: Hong Gia Dinh [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 9. Dezember 2002 18:38
An: [EMAIL PROTECTED]
Betreff: i18n and xmlform combination-HELP


could sb explain me why i cant use the message key in the message when i use
i18n and xmlform ?
i applied the sample in the how-to i18n and xml form for my application but
it cant read the message key ?


what will the link i will call for translation in xmlform?
thanks very much in advance
GD
-
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: i18n transformer and serializer charset

2002-12-10 Thread Konstantin Piroumian
From: "Kirchhoff, Lars" <[EMAIL PROTECTED]>

> Hello
>
> I'm currently trying to create an application, which should be running
> in english, german, thai and several other asian languages.
> The i18n transformer is working correctly, but to display the characters
> in the correct manner it is needed to use the specific charset in the meta
> tag of html.
> Therefore I tried to setup the sitemap with different serializers
according
> the different languages and tried to use the locale variable to select one
> of the serializers. But this doesn't work.
>
> here are some snippets of my sitemap:
>
> - code -
> ...
>src="org.apache.cocoon.serialization.HTMLSerializer">
>TIS-620
>  
>src="org.apache.cocoon.serialization.HTMLSerializer">
>UTF-8
>  

Why don't you use UTF-8 for all the languages? That works in the Cocoon 2.1
i18n sample for such languages as Japanese, Chinese and Korean (and many
others).

>
> ...
>
>  
>
>  

I'm not sure that this is supported. Are you using the compiled sitemap
engine or interpreted?

>
> ...
> - code -
>
> At first is this possible at all? As far as I read the documentation or
the
> mailling list archives I could find anything.
> At second is it possible to get the http request paramater oder session
> parameter in the sitemap.

You can easily get either request parameters, request and session attributes
in the sitemap using input modules from the latest release, e.g.:



See Input modules sample (/samples/module) in C2.1 for details.

Konstantin

>
> Any help is appreciated. thanks
>
> ciao Lars
>
> -
> 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]>
>
>


-
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: get real path is always null in TomCat

2002-12-10 Thread Konstantin Piroumian
(To moderator: please remove alias for my @protek.com email for this list
and I'll subscribe with correct address)
Comments below:

From: "Charlene Mitchell" <[EMAIL PROTECTED]>

> Hi,
>
> The TomCat guys confirmed getRealPath returns null,
> and this is how it is supposed to be - because
> embedded TomCat does not expand the war file (and
> Jetty does).
>
> Anyone searching on this can look in the tomcat mail
> archives under the subject "getRealPath is null"

This is not a Tomcat specific behavior. According to Servlet specification,
the getRealPath() can return null at the servlet container discretion (this
can happen also for security reasons).

Konstantin

>
> HTH someone in the future
>
> Charlene
>
> PS - damn helpful the people on the Jetty and TomCat
> lists, unlike  :-)
>
> __
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
>
> -
> 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]>
>
>


-
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: [SUMMARY] input.xsl / xsp:exit-page / xsp:init-page (was: Can you explain a little more about that?)

2002-12-05 Thread Konstantin Piroumian

From: "Antonio Gallardo" <[EMAIL PROTECTED]>
> Christian Haul dijo:
> > Konstantin Piroumian wrote:
> >> Hi!
> >>
> >> Why the names of tags are not:
> >> 
> >> 
> >> etc.?
> >
> > Good point. My reasoning was that get-parameter is the most visible /
> > most used tag from the request logicsheet. And since I see this as a
> > replacement, I thought differences should be minimal.
>
> I agree too. Is better stay at the formal specification:
>
> tag is official called elements
> parameter is official called attribute.
>
> Can you make the change Konstantin?

I'll be able to do it only in the evening today (about 6 hours later). Hope
this won't be too late.

Konstantin

>
> Antonio Gallardo
>
> >
> > Feel free to change the tag names -- I won't be able to do it today and
> > the release is coming up. We need to decide and act on this fast and I
> > will be effectively offline for the rest of today starting now.
> > There is an example quoted in
> > src/documentation/xdocs/userdocs/concepts/modules.xml Be sure to change
> > that as well.
> >
> > Chris.
> >
> > --
> > C h r i s t i a n   H a u l
> > [EMAIL PROTECTED]
> >  fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08


-
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: [SUMMARY] input.xsl / xsp:exit-page / xsp:init-page (was: Can you explain a little more about that?)

2002-12-05 Thread Konstantin Piroumian
Hi!

Why the names of tags are not:


etc.?

I think it would be more consistent than having .

Regards,
  Konstantin

From: "Christian Haul" <[EMAIL PROTECTED]>
> Antonio Gallardo wrote:
> > Hi Christian:
>  >
> > I saw you recently commited this changes:
> >
> > 1- New Logicsheet for use with InputModules. (CH)
>
> Antonio,
>
> input.xsl is a very simple logicsheet, it contains three tags
> ,  and
>  which just call the similar methods on an
> InputModule.
>
> References to modules are obtained at first access and are released at
> the end of the page. Consecutive accesses reuse the cached references.
>
> Apart from a mandatory parameter @module the tags should behave very
> much like the same tags from request.xsl
>
> Only drawback is that default values are limited to java.lang.String.
>
> It is based on logicsheet-utils.xsl so it takes  for any
> parameter.
>
> An example can be found on the concepts document for modules.
>
> > 2- add xsp.xsl now includes all xsp:init-page tags. Additional
> > xsp:exit-page tag for cleanup operations. (CH)
>
> All top-level  tags will be included at the end of the
> page, i.e. after endDocument() is called. exit-page may only contain
> java code. A similar tag exists with init-page which is fired just
> before startDocument() is called.
>
> Both can be used to initialize local variables / clean up. Since they
> are outside the document scope, they _cannot_ be used to output anything
> to the client like headers or footers.
>
> > I use XSP and I will be glad to learn a little about this new features.
> >
> > Two months ago you helped me with autonumeric-module for PosgreSQL
Databse
> > using modular database. I dont saw the module into the cocoon.xconf. Of
> > course I have it already in my cocoon.xconf ;-) Thanks again.
> >
> > 
> >  >
class="org.apache.cocoon.components.modules.database.PgsqlAutoIncrementModul
e"/>
> > 
> >
> > All I can said about it is that work fine. I have it already into
> > production without any problem. :-D
> >
> > Can you include it into the cocoon.xconf or there is another policies
> > about what include into cocoon.xconf?
>
> According to my own repository it is in cocoon.xconf -- oh wait -- not
> for 2.1. OK, will fix that.
>
> BTW it is now possible to specify a different sequence name than the
> default one. See javadocs for details.
>
> Now, you've got the complete story, you write some docs ;-)
> Maybe you can get this up on the Wiki?
>
> Chris.
>
> --
> C h r i s t i a n   H a u l
> [EMAIL PROTECTED]
>  fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08
>
>
> -
> 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]>
>
>


-
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: i18n more!!

2002-11-27 Thread Konstantin Piroumian
i18n more!!Take a look at the LocaleAction.
It provides mechanism for setting user's locale for a session, request, in a
cookie. And it uses either request parameter or the client's locale or a
cookie to determine selected locale for the first time.

See
http://xml.apache.org/cocoon/apidocs/org/apache/cocoon/acting/LocaleAction.h
tml for more.

Konstantin

- Original Message -
From: Hong Gia Dinh
To: [EMAIL PROTECTED]
Sent: Wednesday, November 27, 2002 12:54
Subject: i18n more!!


I 'm a new user in cocoon,
I have the case :
i have a web site trying to apply cocoon into it.
i have 2 languages, english and french
now if in one page i choose a language such as 'french' i want all next page
from that on will be in french. how can i do that?
how can i know the current language i chose?
can u all tell me?
cheers
GD


-
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: i18n translator and thai support

2002-11-27 Thread Konstantin Piroumian
Hi!

Probably, you are using a wrong editor to edit your dictionary files and it
somehow mangles the encoding.
I usually use XML Spy to edit this kind of exotic languages and I've
successfully edited the Chinese, Japanese and Korean translations (they are
in C2.1 only).

Regards,
  Konstantin


- Original Message -
From: "Kirchhoff, Lars" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 12:06
Subject: i18n translator and thai support


> Hi,
>
> I played around with the i18n translator and it worked perfectly for
german
> and english translation. But now I tried to create a dictonary for thai
> language and it's not working. I always get the english dictonary. I
figured
> out that, if the dictonary file [for instances messages_th.xml] is wrong
or
> has wrong statements in it, the other dictonaries are tried.
> After this I simply tried to put some thai characters in the xsp code and
> got the following error:
>
>  error ===
> The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode
notifies
> that org.apache.cocoon.ProcessingException says:
>
> Invalid byte 2 of 2-byte UTF-8 sequence.
>
> More precisely:
>
> org.apache.cocoon.ProcessingException: Invalid byte 2 of 2-byte UTF-8
> sequence.: java.io.UTFDataFormatException: Invalid byte 2 of 2-byte UTF-8
> sequence.
>  /error ===
>
> can anyone give me a suggestions what I can do? The funny thing is that
the
> date-time function of i18n transformer is working and shows the date in
thai
> fonts.
>
> Thanks in advance
>
> best regards
> Lars Kirchhoff
>
> -
> 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]>
>
>


-
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: Barf on JSPGenerator on Hello.jsp (HELP!)

2002-06-05 Thread Konstantin Piroumian



This can be a problem somewhere in the page. SAXException 
means that you have wrong XML.
 
BTW, I was able to run JSP samples without coping 
jasper-compiler.jar in Tomcat 4.0.1 (but I'm not sure about the version of 
Cocoon: 2.0.3 or 2.1-dev).
 
Konstantin

  - Original Message - 
  From: 
  Rob 
  Kelley 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, June 04, 2002 11:32 
  PM
  Subject: Barf on JSPGenerator on 
  Hello.jsp (HELP!)
  
  Hi:
  I'm running cocoon 2.0.2 on Tomcat  4.0.1 (Windows).  I've 
  been trying to run the hello example for the jsp:
  http://127.0.0.1:8080/cocoon/jsp/hello
  I get the same error (stack trace at end of 
  email):"SAXException JspGenerator.generate()" 
  My sitemap entry is:
         
          
     
  My cocoon.xconf jsp-engine is:          
    
  
  And I'm at wit's end. How do I get JSPs to work?
  Please help!
  Rob
  Stack Trace:
  org.apache.cocoon.ProcessingException: SAXException 
  JspGenerator.generate() at 
  org.apache.cocoon.generation.JspGenerator.generate(JspGenerator.java:132) 
  at 
  org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:251) 
  at 
  org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399) 
  at org.apache.cocoon.www.sitemap_xmap.matchN105B4(C:\Program Files\Apache 
  Tomcat 
  4.0\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:7741) 
  at org.apache.cocoon.www.sitemap_xmap.process(C:\Program Files\Apache 
  Tomcat 
  4.0\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3119) 
  at org.apache.cocoon.www.sitemap_xmap.process(C:\Program Files\Apache 
  Tomcat 
  4.0\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:2617) 
  at org.apache.cocoon.sitemap.Handler.process(Handler.java:222) at 
  org.apache.cocoon.sitemap.Manager.invok! e(Manager.java:179) at 
  org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154) 
  at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at 
  org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998) at 
  javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) 
  at 
  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) 
  at 
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) 
  at 
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
  at 
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
  at 
  org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) 
  at org.apache.catalina.core.StandardPipeline.invo! 
  keNext(StandardPipeline.java:566) at 
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
  at 
  org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) 
  at 
  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) 
  at 
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
  at 
  org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) 
  at 
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) 
  at 
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) 
  at 
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) 
  at 
  org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) 
  at 
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) 
  at org.apache.cat! 
  alina.core.StandardPipeline.invoke(StandardPipeline.java:472) at 
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at 
  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163) 
  at 
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
  at 
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) 
  at 
  org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011) 
  at 
  org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106) 
  at java.lang.Thread.run(Unknown Source) 
   -- 
  
  
  Do You Yahoo!?Sign-up 
  for Video Highlights of 2002 FIFA World Cup


Re: Sitemap schema

2002-05-31 Thread Konstantin Piroumian

I am working on a XML Schema for sitemap for my current needs. Now it
validates correctly the root, samples root and i18n samples sitemaps
correctly. I am going to make some cleanup and then will post it here for
comments. Hope to finish it today.

Konstantin

- Original Message -
From: "Bert Van Kets" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 31, 2002 3:54 PM
Subject: RE: Sitemap schema


Here's an updated version that works with 2.1-dev
I haven't checked with sub sitemaps and I need to add tag/attribute
references to make it really useful.
Bert

At 11:42 31/05/2002 +0200, you wrote:
>Rogier Peters showed me the Sitemap DTD (Cocoon
>root\documentation\resources\entities\sitemap-v02.dtd). That will do.
>
>Arjé
>
>-Oorspronkelijk bericht-
>Van: Arjé Cahn
>Verzonden: 30 May 2002 11:48
>Aan: [EMAIL PROTECTED]
>Onderwerp: Sitemap schema
>
>
>All,
>
>In response to Leona's question ("development tools that support Cocoon
>2") I was wondering wheter there exists a schema for the Cocoon 2 sitemap.
>Is anyone working on this?
>
>Regards,
>
>Arjé Cahn
>
>
>-
>Content Management Department
>Hippo Webworks
>Grasweg 35
>1031 HW Amsterdam
>The Netherlands
>Tel  +31 (0)20 6345173
>Fax +31 (0)20 6345179
>arje(at)hippo(dot)nl / www.hippo.nl
>
>
>
>
>-
>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]>
>
>
>-
>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]>








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

-
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: Global parameters

2002-05-29 Thread Konstantin Piroumian

From: "Geoff Howard" <[EMAIL PROTECTED]>

> I believe that there is currently no way to do this, but there happened to
> be a similar proposal recently on the dev mailing list.  You should be
able
> to find the discussion here:
> http://marc.theaimsgroup.com/?t=10224924482&r=1&w=2

Which resulted in implementation of 'global-parameters' for a pipeline.
Thanks to Carsten.

Konstantin

>
> Geoff Howard
>
>
> -Original Message-
> From: Eduardo Godoy [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 28, 2002 12:49 PM
> To: [EMAIL PROTECTED]
> Subject: Global parameters
>
>
> Hi Folks,
> I'd like to know how to define a "global" parameter for all my
pipeline
> ...
> for example... the "Soap Host name" ... this parameter has to be used by
XSP
> and Actions.
>
> Right now I have to define the parameter for each  and for each 
> so, maybe this is not the best way to define the global parameters ... any
> idea? or something to read ?
>
>
> Thanks
> Eduardo.
>
> -
> 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]>
>

-
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: problems with i18n transformer in cocoon 2.0.2 - is this a bug?

2002-05-29 Thread Konstantin Piroumian

problems with i18n transformer in cocoon 2.0.2 - is this a bug?I've just
checked the source from the 2.0.3 branch from CVS and the correct line is
already there:
StringBuffer pathToChild = new
StringBuffer(pathToParent).append('/').append(child.getNodeName());

Couldn't find in logs if it was incorrect before the 2.0.2 version, but
there is no differences in that line between 2.0.2 and 2.0.3.

I've also checked i18n sample with 'cache-at-startup' option and it also
works fine (2.1-dev version). As there is no difference in 2.0.3 and 2.1
versions of XMLResourceBundle then something's wrong at your site.

Regards,
  Konstantin


- Original Message -
From: Brian Buckley
To: [EMAIL PROTECTED]
Sent: Wednesday, May 29, 2002 2:20 PM
Subject: problems with i18n transformer in cocoon 2.0.2 - is this a bug?


cocoon version: 2.0.2
servlet engine: tomcat 4.0.3
OS: windows 2000
JDK: 1.4.0
I am trying to add internationalisation to my site by using i18n.  After a
day fruitlessly trying to figure out where I am going wrong I added some
debug printlns to the I18nTransformer source.  My setup is as follows:
 sitemap: ***

messages
translations
true   <- I added this
to make debugging easier as the cache is a simple hash table

 .
 .

   


 





*** dictionary: **
in $TOMCAT_HOME/webapps/myapp/translations
   /messages.xml
   /messages_en.xml
   /...etc,etc
*** messages contain: *

Go to Secure Login
Welcome
 ... etc, etc

** xsp: **

login.redirect
Now.  At the browser I am getting the 'login.welcome' and 'login.redirect'
keys untranslated.  My debug statements showed that the string passed into
XMLResourceBundle.getString(String key) was
"/catalogue/message[@key='login.welcome']", but the XMLResourceBundle cache
contained the key "/message[@key='login.welcome']".  Clearly a mismatch. So
I looked at the code:
I18nTransformer.getString() method prepends the key to be passed to the
XMLResourceBundle.getString() with I18N_CATALOGUE_PREFIX.
I18N_CATALOGUE_PREFIX is the string constant "/catalogue/message".
XMLResourceBundle.cacheAll(Node parent, String pathToParent) is initially
entered with a pathToParent of "" from init().  The pathToChild StringBuffer
takes this as the initial buffer value in the line:
StringBuffer pathToChild = new
StringBuffer(pathToParent).append(child.getNodeName());
If I change the initial call to cacheAll with a pathToParent of "/", and
change the above line to
StringBuffer pathToChild = new
StringBuffer(pathToParent).append(parent.getNodeName()).append('/').append(c
hild.getNodeName());
I reproduce the expected key in the cache hashtable, and everything works.
Is this a bug in cocoon 2.0.2 or is there an alternative solution to this
without changing cocoon source code?
Thanks,
Brian Buckley.

-
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: html2jpg

2002-05-28 Thread Konstantin Piroumian

From: "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]>

> Would it not be handy to get a image of for example www.cnn.com. I think
> so... But unfortunately not everything is well formed (x)html

Making an image from www.cnn.com will be like writing a rendering engine for
a browser. Is it worth? ;)

And how would you use those images?

KP

>
> -Oorspronkelijk bericht-
> Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
> Verzonden: dinsdag 28 mei 2002 11:44
> Aan: [EMAIL PROTECTED]
> Onderwerp: Re: html2jpg
>
>
> From: "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]>
>
> > Tidy doesn't work when you have , this wil not be converted to
.
> > This cause an error saying br misses a closing tag
>
> This is either a bug in Tidy or can be configured. See the docs.
> Otherwise, why to use it if you have already well-formed XHTML?
>
> Konstantin
>
> >
> > -Oorspronkelijk bericht-
> > Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
> > Verzonden: dinsdag 28 mei 2002 10:36
> > Aan: [EMAIL PROTECTED]
> > Onderwerp: Re: html2jpg
> >
> >
> > From: "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]>
> >
> > > Hi,
> > >
> > > I want to make a jpg from a html. Is there someone who at least
converts
> > > html to svg?
> >
> > Are you sure that want html2jpg and not xml2jpg?
> > There is a sample in cocoon for performing: XML -> SVG -> JPG
generation.
> > For using HTML for this you should use Tidy to generate XHTML from it
and
> > then use an XHTML -> SVG -> JPG pipeline.
> >
> > Konstantin
> >
> > >
> > > thanks,
> > >
> > > Edgar
> > >
> > > -
> > > Please check that your question has not already been answered in the
> > > FAQ before posting. <http://xml.apache.org/cocoon/faqs.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/faqs.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/faqs.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/faqs.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/faqs.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/faqs.html>

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




Re: html2jpg

2002-05-28 Thread Konstantin Piroumian

From: "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]>

> Tidy doesn't work when you have , this wil not be converted to .
> This cause an error saying br misses a closing tag

This is either a bug in Tidy or can be configured. See the docs.
Otherwise, why to use it if you have already well-formed XHTML?

Konstantin

>
> -Oorspronkelijk bericht-
> Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
> Verzonden: dinsdag 28 mei 2002 10:36
> Aan: [EMAIL PROTECTED]
> Onderwerp: Re: html2jpg
>
>
> From: "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]>
>
> > Hi,
> >
> > I want to make a jpg from a html. Is there someone who at least converts
> > html to svg?
>
> Are you sure that want html2jpg and not xml2jpg?
> There is a sample in cocoon for performing: XML -> SVG -> JPG generation.
> For using HTML for this you should use Tidy to generate XHTML from it and
> then use an XHTML -> SVG -> JPG pipeline.
>
> Konstantin
>
> >
> > thanks,
> >
> > Edgar
> >
> > -
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.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/faqs.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/faqs.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/faqs.html>

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




Re: html2jpg

2002-05-28 Thread Konstantin Piroumian

From: "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]>

> Hi,
>
> I want to make a jpg from a html. Is there someone who at least converts
> html to svg?

Are you sure that want html2jpg and not xml2jpg?
There is a sample in cocoon for performing: XML -> SVG -> JPG generation.
For using HTML for this you should use Tidy to generate XHTML from it and
then use an XHTML -> SVG -> JPG pipeline.

Konstantin

>
> thanks,
>
> Edgar
>
> -
> 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]>
>

-
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: Real dumb question - how to concatenate XML files

2002-05-27 Thread Konstantin Piroumian

You don't know what is the format of your source XML files?
Or you don't know how to declare aggregation in sitemap?
Or something else?

If you don't know what is the content of your XML files then how would you
use an XSLT stylesheet to render them?

Konstantin

- Original Message -
From: "daniel robinson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 28, 2002 10:43 AM
Subject: Re: Real dumb question - how to concatenate XML files


yes, this is what was in the FAQ, but I had no idea of what the format of
the
XML should be.

"Hahn Kurt (CHA)" wrote:

> I don't know about cInclude, but maybe aggregation would meet your needs.
> Did you have a look at it?
> K
>
> -Message d'origine-
> De : daniel robinson [mailto:[EMAIL PROTECTED]]
> Envoyé : mardi, 28. mai 2002 07:37
> À : [EMAIL PROTECTED]
> Objet : Real dumb question - how to concatenate XML files
>
> Ok.  This is a dumb one, for many reasons - but I've been trying to
> figure it out for hours and have been all over the mail archives to try
> and figure it out.
>
> Say I have 3 XML files and I want to use them with an XSLT to respond to
>
> a request.  What is the best way to do this?  I checked out the FAQ but
> had no idea WHAT WAS SUPPOSED TO BE INSIDE THE XML files being
> concatenated.  An example would be VERY USEFUL.  I tried using cinclude
> but that didn't help.
>
> Sorry for being such a noob.
>
> -
> 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]>
>
> -
> 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]>


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


-
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: cocoon actions

2002-05-27 Thread Konstantin Piroumian

> From: Jim [mailto:[EMAIL PROTECTED]]
>
> Hi,
>
> I'm new to cocoon, and I'm having a few difficulties with actions.
>
> I've tried writing the sample HelloWorld action, but I'm not
> sure what to do
> with it.  I'm able to compile it, but where do I put it?  I
> modified the
> code slightly - making it part of a package I call 'Security'
> and commenting
> out the body of the method (except for a return null;).  I'm
> trying to make
> a skeleton I can work from.  (And Security-related actions
> are what I'll be
> working on to start)

Change it to return an empty Map: return new HashMap();

>
> I put it in the cocoon/WEB-INF/classes/Security subdirectory,
> and I added
> the following to WEB-INF/web.xml:
>
> 
> Addons
> WEB-INF/classes
> 

You don't need to do it. If you put your compiled classes into the
WEB-INF/classes or your JAR-files into the WEB-INF/lib then the servlet
container will load those classes automatically.

>
> Of course, I also modified my sitemap appropriately:
> 
>   src="org.apache.cocoon.acting.FormValidatorAction"/>
>  
>  
> ...
> 
>  
>   
>   
>  
> 
>
> If it helps, here is a portion of the error I'm getting:
>
> org.apache.cocoon.components.language.LanguageException:
> Error compiling
> sitemap_xmap: Line 602, column 19: variable action_set_login
> not found in
> class org.apache.cocoon.www.inv.sitemap_xmap Line 602, column
> 36: method
> actions

Check the source of your sitemap. Look in tomcat/work/ directory for
sitemap_xmap.java.

Konstantin

>
> Thanks in advance,
> Jim Vlasblom
>


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




[TEST] Please ignore

2002-05-27 Thread Konstantin Piroumian

Trying to find out why my messages don't reach the list.

Konstantin


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




Test

2002-05-27 Thread Konstantin Piroumian

Ignore please.

Sorry for inconvenience. 
_
Konstantin Piroumian
Lead Developer
_

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

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




Re: Cocoon on BEA Weblogic6.1 SP2

2002-05-27 Thread Konstantin Piroumian

From: "Atul Gulve" <[EMAIL PROTECTED]>

> Hi,
>
> I have deployed cocoon(2.0.1) application on bea WebLogic6.1 SP2.

Great!

Could you please tell us how you did it?

>
> The first cocoon welcome page is shown properly.
> Now, the problem I am facing is, bea is not loading sub sitemaps.
>
> I am getting following error on the browser.
>
> Cocoon 2 - Internal server error
>
> --
--
>
> type fatal
>
> message The current URI doesn't start with given prefix
>
> description java.lang.RuntimeException: The current URI doesn't start with
> given prefix
>
> sender org.apache.cocoon.servlet.CocoonServlet
>
> source Cocoon servlet
>
> request-uri
>
> /cocoon/documents/doclist.html
>
> path-info
>
> /documents/doclist.html
>
> 
>
>
>
>
> If I put all mappings in the main sitemap then it works. But I want to
have
> different sitemaps for different directories under my webapp.
>
>
> Could anyone tell me what to do?

See Cocoon logs to see if this is a Cocoon error. If you give more info on
the source of the error then we'll try to help.

Konstantin

>
> Thanks in advance for your help.
>
> atul
>
> _
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
> -
> 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]>
>

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




[FYI] Cocoon on WebLogic 7.0

2002-05-27 Thread Konstantin Piroumian

Hi, cocooners!

I was able to install Cocoon 2.1-dev on WebLogic 7.0. It required some minor
changes to Cocoon.java and CocoonServlet.java and renaming all the jar files
with dots to something without dots (e.g.: myjar-1.0.jar -> myjar.jar).

After starting the server I could successfully access the start page and
several samples (including most of the Hello World, the XMLForm sample). Due
to a bug in Weblogic's version of Xalan i18n samples failed to run (it was a
NPE somewhere in toSAX(), saying something about wrong DTMs). There were
also other problems with Calculator example and some others.

How to install:

- get the latest source (2.1-dev)
- hack Cocoon.java and CocoonServlet.java: comment out the parts where
Cocoon sets system properties (JAXP properties). They are marked with
'FIXME's from Vadim
- build Cocoon
- copy cocoon webapp directory (not the WAR!) to
user_projects/mydomain/myserver/applications.
- rename all the JARs in WEB-INF/lib with dots to something without dots

And that's all. No need to change server configuration or so. I could even
run Cocoon after removing xerces and xalan libs from WEB-INF/libs. But note,
that WLs versions are a little out of date and buggy.

Konstantin

P.S. Vadim, the patch for WL 6.1 broke the server startup with an exception
like: MethodNotFound or so.

_________
Konstantin Piroumian
Lead Developer
ICQ#: 2297575
( Work Tel#:  +7 095 795 0520 * 1288
+ More ways to contact me
i See more about me
_

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

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




Re: Setting actions in sitemap

2002-05-22 Thread Konstantin Piroumian

Setting actions in sitemapOops, typo...

Mike,

configuring actions on their declaration differ from passing params in a
pipeline. Your --> action <-- should implement Configurable interface to be
configured. See how the other actions are configured (you can extend one of
the *Configurable*Action classes).

Konstantin
- Original Message -
From: Mike Ash
To: '[EMAIL PROTECTED]'
Sent: Wednesday, May 22, 2002 7:04 PM
Subject: Setting actions in sitemap


I have an action defined as
   
  
   
first off is this possible?
I know that this is done as well in the form validator, .
 
   

 


however it appears that everytime I use it I would have to put in the
parameter for the descriptor file,.  I was hoping to set the config file
once in the declaration of the action in the sitemap is it possible.

-
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: Setting actions in sitemap

2002-05-22 Thread Konstantin Piroumian
Title: Setting actions in sitemap



Mike,
 
configuring actions on their declaration differ from passing 
params in a pipeline. Your pipeline should implement Configurable interface to 
be configured. See how the other actions are configured (you can extend one 
of the *Configurable*Action classes).
 
Konstantin

  - Original Message - 
  From: 
  Mike Ash 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Wednesday, May 22, 2002 7:04 
  PM
  Subject: Setting actions in sitemap
  
  I have an action defined as 
            
   
  first off is this possible? 
  I know that this is done as well in the form 
  validator, . 
    
             
  however it appears that everytime I use it I would 
  have to put in the parameter for the descriptor file,.  I was hoping to 
  set the config file once in the declaration of the action in the sitemap is it 
  possible.


  1   2   >