load sitemap parameters into cocoon serializers

2003-01-17 Thread Yury Mikhienko
Hi all!

I need the answer on simple (may be) question:

Why does not implemets procedure

   setup(
  SourceResolver resolver,
  MapobjectModel,
  String src,
  Parameters par) 

in cocoon Serializers (implements configure(Configuration configuration) only)?

How I can implement loading sitemap parameters into cocoon serializers like as in 
setup() procedure (like in generators, transformers), if it possible?

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

-
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: Cocoon Portal - User Roles

2003-01-17 Thread Wolle
Hi,

thank you for the tip. :-) I will have a try.

Wolfgang


*Hi,
*
*try using the log transformer between your transformation step
*with the login.xsl and the sql transformer and you will see,
*if the correct xml is outputted by your stylesheet.
*If this is correct, put the log transformer behind the sql
*transformer and you will see what the sql transformer does.
*
*Maybe this gives a clue.
*
*Carsten
*
*Carsten Ziegeler
*Open Source Group, SN AG
*
*
* -Original Message-
* From: Wolle [mailto:[EMAIL PROTECTED]]
* Sent: Thursday, January 16, 2003 2:09 PM
* To: [EMAIL PROTECTED]
* Subject: RE: Cocoon Portal - User Roles
*
*
* Hi Guys,
*
* I tried all this. Maybe somebody can give some completing hints.
* I described all in the file email.txt
*
* Thank You
*
* Wolfgang
*
*
*
* *
* *Since the the new role function in the portal sample is mapped to
* *new-role uri=cocoon:raw:/sunrise-newrole/ uri, it is using
* this sitemap
* *snippet right?
* *
* *map:match pattern=sunrise*
* *map:generate src=resources/sunrise{1}.xml/
* *map:transform type=session/
* *map:transform type=cinclude/
* *map:transform type=write-source/
* *map:transform src=styles/portal.xsl/
* *map:serialize type=xml/
* */map:match
* *
* *and the documentations says that
* *
* *The new-role resource creates a new role in the system. It gets the
* *parameters type with the value role and role with the new rolename.
* *
* *Where is the type and role parameter?
* *and why does it have to serialized in an xml type in the end?
* *
* *
* *You need to take a look at the file sunrise-newrole.xml. That
* file contains
* *most of the dirty work. The transformers session, cinclude and
* writesource
* *act on the information contained in there. Because
* sunrise-newrole.xml also
* *flows through the pipeline it is then formatted by the stylesheet and
* *returned to the browser. It is serialized to xml because it is being used
* *inside the portal (in this case).
* *
* *If you wanted to write this to a database you would need to change the
* *sunrise-newrole.xml and use the sqltransformer instead of cinclude and
* *write-source. In all this should take you around 5 minutes or
* less to adapt.
* *:-)
* *
* *So it really is quite simple really.
* *
* *Matthew
* *--
* *Open Source Group   Cocoon { Consulting, Training, Projects }
* *=
* *Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn
* *Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
* *-
* *Cocoon book:
* *  http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20
* *Weblog:
* *  http://radio.weblogs.com/0103021/
* *=
* *
* *  -Original Message-
* *  From: Richard Reyes [mailto:[EMAIL PROTECTED]]
* *  Sent: Tuesday, November 12, 2002 12:53 PM
* *  To: cocoon-users
* *  Subject: RE: Cocoon Portal - User Roles
* *
* *
* *
* *
* *  Hi Matthew / Guys,
* *
* *  Just want to confirm some things
* *
* *  Since the the new role function in the portal sample is mapped to
* *new-role uri=cocoon:raw:/sunrise-newrole/ uri, it is using
* this sitemap
* *snippet right?
* *
* *  map:match pattern=sunrise*
* *  map:generate src=resources/sunrise{1}.xml/
* *  map:transform type=session/
* *  map:transform type=cinclude/
* *  map:transform type=write-source/
* *  map:transform src=styles/portal.xsl/
* *  map:serialize type=xml/
* *  /map:match
* *
* *  and the documentations says that
* *
* *  The new-role resource creates a new role in the system. It gets the
* *parameters type with the value role and role with the new rolename.
* *
* *  Where is the type and role parameter?
* *  and why does it have to serialized in an xml type in the end?
* *
* *  Also, for the sunrise-newrole resource, the only thing this
* pipeline does
* *is save a new role in the xml file ( sunrise-roles.xml )? whose
* responsible
* *for displaying the next page after saving the new role?
* *
* *  And since this sitemap snippet is called inside a map:pipeline internal
* *only clause I think it is being called by the portal generator or action.
* *
* *  If in case I'd used custom actions over this pipeline, How would I know
* *the parameters that
* *  have been passed and are being expected by the caller of this pipeline?
* *
* *  Thanks a lot
* *  Richard
* *- Original Message -
* *From: Richard Reyes
* *To: cocoon-users
* *Cc: Alex
* *Sent: Tuesday, November 12, 2002 7:18 PM
* *Subject: Re: Cocoon Portal - User Roles
* *
* *
* *Hi Matthew,
* *
* *Thanks for the reminder!
* *
* *
* *Hi,
* *
* *each function of the portal 

Re: sitemap matcher woes

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

 Hi All,

 Currently my sitemap is setup like the following:

 map :match pattern=w3c.rss
 map :generate src=http://www.w3.org/2000/08/w3c-synd/home.rss/
 map :transform src=/path/to/getRSS.xsl/
 map :serialize type=html/
 /map

 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:

 map :match pattern=*.rss
 map :generate src={1}.rss/
 map :transform src=/path/to/getRSS.xsl/
 map :serialize type=html/
 /map

 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:

map :match pattern=**/*.rss - this will match any path/file.rss
or
map :match pattern= - this will match any request without a path or a
file (default matcher)
or
map :match pattern=**/ - 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. 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]




org.xml.sax.SAXParseException: Content is not allowed in prolog.

2003-01-17 Thread Eduardo Zurita



Hello community,

 Can somebody help me about the 
problem below?

 I have the following two 
pipelines:

 map:pipeline 
map:match pattern="qeq.html" 
map:generate type="jsp" 
src=""/ 
map:serialize type="xml"/ 
/map:match /map:pipeline 
map:pipeline map:match 
pattern="qeq2.html" map:generate 
type="file" 
src=""/ 
map:serialize type="xml"/ 
/map:match /map:pipeline

The second pipeline has a type "file" generate with 
source in test.xml. This source is the output obtained from executing the 
qeq.jsp outside Cocoon. 

The test.xml content is:

?xml version="1.0"?!DOCTYPE 
BAPI[!ENTITY nbsp "#160;"!ENTITY iexcl 
"#161;"!ENTITY cent "#162;"!ENTITY pound 
"#163;"!ENTITY curren "#164;"!ENTITY yen 
"#165;"!ENTITY brvbar "#166;"!ENTITY sect 
"#167;"!ENTITY uml "#168;"!ENTITY copy 
"#169;"!ENTITY ordf "#170;"!ENTITY laquo 
"#171;"!ENTITY not "#172;"!ENTITY shy 
"#173;"!ENTITY reg "#174;"!ENTITY macr 
"#175;"!ENTITY deg "#176;"!ENTITY plusmn 
"#177;"!ENTITY sup2 "#178;"!ENTITY sup3 
"#179;"!ENTITY acute "#180;"!ENTITY micro 
"#181;"!ENTITY para "#182;"!ENTITY middot 
"#183;"!ENTITY cedil "#184;"!ENTITY sup1 
"#185;"!ENTITY ordm "#186;"!ENTITY raquo 
"#187;"!ENTITY frac14 "#188;"!ENTITY frac12 
"#189;"!ENTITY frac34 "#190;"!ENTITY iquest 
"#191;"!ENTITY Agrave "#192;"!ENTITY Aacute 
"#193;"!ENTITY Acirc "#194;"!ENTITY Atilde 
"#195;"!ENTITY Auml "#196;"!ENTITY Aring 
"#197;"!ENTITY AElig "#198;"!ENTITY Ccedil 
"#199;"!ENTITY Egrave "#200;"!ENTITY Eacute 
"#201;"!ENTITY Ecirc "#202;"!ENTITY Euml 
"#203;"!ENTITY Igrave "#204;"!ENTITY Iacute 
"#205;"!ENTITY Icirc "#206;"!ENTITY Iuml 
"#207;"!ENTITY ETH "#208;"!ENTITY Ntilde 
"#209;"!ENTITY Ograve "#210;"!ENTITY Oacute 
"#211;"!ENTITY Ocirc "#212;"!ENTITY Otilde 
"#213;"!ENTITY Ouml "#214;"!ENTITY times 
"#215;"!ENTITY Oslash "#216;"!ENTITY Ugrave 
"#217;"!ENTITY Uacute "#218;"!ENTITY Ucirc 
"#219;"!ENTITY Uuml "#220;"!ENTITY Yacute 
"#221;"!ENTITY THORN "#222;"!ENTITY szlig 
"#223;"!ENTITY agrave "#224;"!ENTITY aacute 
"#225;"!ENTITY acirc "#226;"!ENTITY atilde 
"#227;"!ENTITY auml "#228;"!ENTITY aring 
"#229;"!ENTITY aelig "#230;"!ENTITY ccedil 
"#231;"!ENTITY egrave "#232;"!ENTITY eacute 
"#233;"!ENTITY ecirc "#234;"!ENTITY euml 
"#235;"!ENTITY igrave "#236;"!ENTITY iacute 
"#237;"!ENTITY icirc "#238;"!ENTITY iuml 
"#239;"!ENTITY eth "#240;"!ENTITY ntilde 
"#241;"!ENTITY ograve "#242;"!ENTITY oacute 
"#243;"!ENTITY ocirc "#244;"!ENTITY otilde 
"#245;"!ENTITY ouml "#246;"!ENTITY divide 
"#247;"!ENTITY oslash "#248;"!ENTITY ugrave 
"#249;"!ENTITY uacute "#250;"!ENTITY ucirc 
"#251;"!ENTITY uuml "#252;"!ENTITY yacute 
"#253;"!ENTITY thorn "#254;"!ENTITY yuml 
"#255;"!ELEMENT BAPI 
(FIELD*,STRUCTURE*,TABLE*)!ATTLIST BAPI NAME CDATA "" 
!ELEMENT FIELD EMPTY!ATTLIST FIELD NAME CDATA "" 
!ATTLIST FIELD DESCRIPTION CDATA "" !ATTLIST FIELD TYPE 
CDATA "" !ATTLIST FIELD LENGTH CDATA "" !ATTLIST FIELD 
VALUE CDATA "" !ELEMENT STRUCTURE (FIELD*)!ATTLIST 
STRUCTURE NAME CDATA "" !ATTLIST STRUCTURE TYPE CDATA "" 
!ELEMENT TABLE (ROW*,LINE*)!ATTLIST TABLE NAME CDATA "" 
!ATTLIST TABLE TYPE CDATA "" !ATTLIST TABLE OPTIONAL 
CDATA "" !ELEMENT ROW EMPTY!ATTLIST ROW NAME CDATA "" 
!ATTLIST ROW DESCRIPTION CDATA "" !ATTLIST ROW TYPE 
CDATA "" !ATTLIST ROW LENGTH CDATA "" !ELEMENT LINE 
(VALUE*)!ELEMENT VALUE (#PCDATA)]BAPI 
NAME="BAPI_WHO_PARAMS"TABLE NAME="WHO_PARAMS" TYPE="" 
OPTIONAL=""ROW NAME="NEXTURL" DESCRIPTION="URL para submitir" 
TYPE="VARCHAR" LENGTH="255"/ROW NAME="PASO" DESCRIPTION="Informacion 
a mostrar" TYPE="NUMBER" LENGTH="1"/ROW NAME="NPERSONAL" 
DESCRIPTION="Numero de empleado" TYPE="CHAR" LENGTH="10"/ROW 
NAME="APELLIDOS" DESCRIPTION="Apellidos" TYPE="VARCHAR" 
LENGTH="30"/ROW NAME="NOMBRE" DESCRIPTION="Nombre" TYPE="VARCHAR" 
LENGTH="30"/ROW NAME="ORGEHLIST" DESCRIPTION="Unidad Organizativa" 
TYPE="LINK" LENGTH="8"/ROW NAME="STELLLIST" DESCRIPTION="Funcion" 
TYPE="LINK" 
LENGTH="8"/LINEVALUEhttp://pc1.intranet.xx/webapp/SapHRWeb/xindex.jsp?t=samp;f=who/VALUEVALUE1/VALUEVALUE/VALUE/VALUE/VALUEhttp://pc1.intranet.xx/webapp/SapHRWeb/xindex.jsp?t=samp;f=bunidorg/VALUEVALUEhttp://pc1.intranet.xx/webapp/SapHRWeb/xindex.jsp?t=samp;f=bfuncion/VALUE/LINE/TABLE/BAPI

Well, now the problem:

When I try the first pipeline, I get the error 
"org.xml.sax.SAXParseException: Content is not allowed in prolog."
When I try the second, I get the following 
serialized data:

?xml version="1.0" 
encoding="UTF-8"?!DOCTYPE BAPIBAPI 
NAME="BAPI_WHO_PARAMS"TABLE NAME="WHO_PARAMS" TYPE="" 
OPTIONAL=""ROW NAME="NEXTURL" DESCRIPTION="URL para submitir" 
TYPE="VARCHAR" LENGTH="255"/ROW NAME="PASO" DESCRIPTION="Informacion 
a mostrar" TYPE="NUMBER" LENGTH="1"/ROW NAME="NPERSONAL" 
DESCRIPTION="Numero de empleado" TYPE="CHAR" LENGTH="10"/ROW 
NAME="APELLIDOS" DESCRIPTION="Apellidos" TYPE="VARCHAR" 
LENGTH="30"/ROW NAME="NOMBRE" DESCRIPTION="Nombre" TYPE="VARCHAR" 
LENGTH="30"/ROW NAME="ORGEHLIST" DESCRIPTION="Unidad Organizativa" 
TYPE="LINK" LENGTH="8"/ROW NAME="STELLLIST" 

Re: form encoding UTF-8 / ISO-8859-1

2003-01-17 Thread Murad Jura
I think these kind of problem because of servlet container's illegal 
encoding interpreation. Cocoon fix this by wrapping a real request
object obtained from container to 
org.apache.cocoon.environment.HttpRequest as you now. But in you case a 
JspGenerator invokes a real page using the unwrapped request.

I think you can fix this by implementing a simple 
org.apache.cocoon.components.request.RequestFactory to provide your own 
HttpServletRequest wrapper which should perform a parameter decoding 
(see org.apache.cocoon.environment.HttpRequest). Your factory should be 
registered in your web.xml file as request-factory init parameter.

Has anybody other suggestions? Is this the simplest solution?


CARLETTA ANGELO wrote:
--- Reçu de   INFETUDE.G145193 02/250.96.71  17-01-03 08.26

Hi.

I have add de next line in web.xml of my application but whitou effect
init-param
  param-namecontainer-encoding/param-name
  param-valueISO-8859-1/param-value
/init-param
init-param
  param-nameform-encoding/param-name
  param-valueUTF-8/param-value
/init-param

In attachement, the sitemap.xmap and web.xml
Angelo




From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Fri, 17 Jan 2003 12:21:46 +0500
Subject: Re: form encoding UTF-8 / ISO-8859-1

Artur Bialecki wrote:


I looked at the javadoc for java.lang package (jdk1.3.1)
and java.nio.charset.Charset (jdk1.4.1) and it
looks like the UTF-8 is the correct name.




I have a feeling setting the container encoding to ISO-8859-1
is what fixed your problem.




Another word of caution is the java.net.URLEncoder class that
doesn't play nice with UTF-8 in pre 1.4 jdk version.




Artur...






-Original Message-
From: Murad Jura [mailto:[EMAIL PROTECTED]]
Sent: January 16, 2003 6:55 AM
To: [EMAIL PROTECTED]
Subject: Re: form encoding UTF-8 / ISO-8859-1


Martin Koeppe wrote:



Hello,

I'm using a recent developer version of cocoon 2.1 (Jan 9 2003),
tomcat 4.1.12 on SuSE Linux 8.0 Kernel 2.4.20,
and I found a problem with parsing the request parameters from a GET
request:

The browser (both Mozilla and IE) sends them as UTF-8, but cocoon
interprets them as ISO-8859-1. The problem can be seen e.g.


with form



validator: if you enter a non-ASCII7 character, and there


is something not



correct for the form validator within ANOTHER field, you


get the first



field back changed.

I have enabled container-encoding and form-encoding in


web.xml, and



set both to utf-8, but with no success (no change in behaviour).

1) Can someone help?


I looked at the source, too:
org.apache.cocoon.environment.http.HttpRequest

There are getCharacterEncoding() and setCharacterEncoding().
Whereas get...() is mapped to the servlet engine function,
set...() seems to be implemented within cocoon.

In my experiments a call to set...(UTF-8) directly before


reading the



parameters within a flow script didn't work, either. (no change)
get...() always returned null.

2) Can someone explain the idea of the set...() function,


in combination



with decode(), i.e. why that should work? Or: what should


be done to get



it work?

3) Why doesn't get...() return the value that was set before with
set...(), i.e. why is the servlet value returned, whereas the cocoon
internal value seems to be used?


Thanks in advance

Martin Koeppe




-



Please check that your question  has not already been


answered in the



FAQ before posting.


http://xml.apache.org/cocoon/faq/in dex.html


To


unsubscribe, e-mail:
[EMAIL PROTECTED]


For additional commands, e-mail:


[EMAIL PROTECTED]

Hello Martin,

I want to inform you that I solved such problem by setting
the web.xml's
container-encoding parameter to ISO-8859-1 and the form-encoding
parameter to UTF8 (not UTF-8 because UTF8 is the
internal Java's
name of this encoding type, see Java Documentation).


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




Thank you Artur!

I have tested both UTF-8 and UTF8 and in all cases I have obtained
successfull results. But I have to set form-encoding parameter to
UTF-8/UTF8 to get my russian data in the correct form.

Murad Jura.


-
Please check that your question  has not already 

Re: SQL Transformer substitute-value woes with 2.0.4

2003-01-17 Thread Jeremy Quinn

On Thursday, Jan 16, 2003, at 12:21 Europe/London, Andrew Savory wrote:



Hi,

As far as I can tell, using substitute-value with SQL Transformer does 
not
work in 2.0.4 (and there aren't any examples of it in the samples,
something I'll rectify if I ever get the darn thing working!).

Here's what I've got:


snip/


  SELECT DISTINCT contributor_id, name FROM foo WHERE 
contributor_id='substitute-value sql:name=contributor_id/'
/sql:query

snip/



... as far as I can tell, the substitute value just doesn't work. I've
tried swapping {1} for 1 in the sitemap, and that doesn't help.

Any ideas?


I use this in 2.1 successfully, did you try leaving the quotes out?

ie.

	SELECT DISTINCT contributor_id, name FROM foo WHERE contributor_id = 
substitute-value sql:name=contributor_id/

this is how mine look ...

regards Jeremy


-
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: form encoding UTF-8 / ISO-8859-1

2003-01-17 Thread CARLETTA ANGELO
--- Reçu de   INFETUDE.G145193 02/250.96.71  17-01-03 10.59

--- Reçu de   INFETUDE.G145193 02/250.96.71  17-01-03 08.26

Hi.

I have add de next line in web.xml of my application but whitout effect
init-param
  param-namecontainer-encoding/param-name
  param-valueISO-8859-1/param-value
/init-param
init-param
  param-nameform-encoding/param-name
  param-valueUTF-8/param-value
/init-param

The web.xml
!DOCTYPE web-app

PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN

http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;



web-app id=WebApp_ID
  display-nameVagen avec Cocoon2/display-name
  descriptionWeb module  for Vagen Web Transactions/description

!-- Debut Ajouté par Carletta.  (VaGen) --
  servlet id=Servlet_2
 servlet-namevgnt/servlet-name
 display-namevgnt/display-name
 descriptionGateway for NT web transactions/description
 servlet-classcom.ibm.hpt.gateway.GatewayServlet/servlet-class
 init-param id=InitParam_2
param-namehptGatewayProperties/param-name
param-
valuec:/tomcat/webapps/VagenWebModule/gwnt.properties/param-value
 /init-param
  /servlet
!-- fin Ajouté par Carletta.  --

  servlet

servlet-nameCocoon2/servlet-name

display-nameCocoon2/display-name

descriptionThe main Cocoon2 servlet/description

servlet-classorg.apache.cocoon.servlet.CocoonServlet/servlet-class

!-- Debut Ajouté par Carletta.  --
init-param
  param-namecontainer-encoding/param-name
  param-valueISO-8859-1/param-value
/init-param
init-param
  param-nameform-encoding/param-name
  param-valueUTF-8/param-value
/init-param
!-- fin Ajouté par Carletta.  --
...

/web-app


Without Cocoon, the send form (from JSP) is Western European(ISO) and with
Cocoon, the send form is UTF-8

Angelo




From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Fri, 17 Jan 2003 12:21:46 +0500
Subject: Re: form encoding UTF-8 / ISO-8859-1

Artur Bialecki wrote:
 I looked at the javadoc for java.lang package (jdk1.3.1)
 and java.nio.charset.Charset (jdk1.4.1) and it
 looks like the UTF-8 is the correct name.

 I have a feeling setting the container encoding to ISO-8859-1
 is what fixed your problem.

 Another word of caution is the java.net.URLEncoder class that
 doesn't play nice with UTF-8 in pre 1.4 jdk version.

 Artur...



-Original Message-
From: Murad Jura [mailto:[EMAIL PROTECTED]]
Sent: January 16, 2003 6:55 AM
To: [EMAIL PROTECTED]
Subject: Re: form encoding UTF-8 / ISO-8859-1


Martin Koeppe wrote:

Hello,

I'm using a recent developer version of cocoon 2.1 (Jan 9 2003),
tomcat 4.1.12 on SuSE Linux 8.0 Kernel 2.4.20,
and I found a problem with parsing the request parameters from a GET
request:

The browser (both Mozilla and IE) sends them as UTF-8, but cocoon
interprets them as ISO-8859-1. The problem can be seen e.g.

with form

validator: if you enter a non-ASCII7 character, and there

is something not

correct for the form validator within ANOTHER field, you

get the first

field back changed.

I have enabled container-encoding and form-encoding in

web.xml, and

set both to utf-8, but with no success (no change in behaviour).

1) Can someone help?


I looked at the source, too:
org.apache.cocoon.environment.http.HttpRequest

There are getCharacterEncoding() and setCharacterEncoding().
Whereas get...() is mapped to the servlet engine function,
set...() seems to be implemented within cocoon.

In my experiments a call to set...(UTF-8) directly before

reading the

parameters within a flow script didn't work, either. (no change)
get...() always returned null.

2) Can someone explain the idea of the set...() function,

in combination

with decode(), i.e. why that should work? Or: what should

be done to get

it work?

3) Why doesn't get...() return the value that was set before with
set...(), i.e. why is the servlet value returned, whereas the cocoon
internal value seems to be used?


Thanks in advance

Martin Koeppe



-

Please check that your question  has not already been

answered in the

FAQ before posting.

http://xml.apache.org/cocoon/faq/in dex.html

To

unsubscribe, e-mail:
[EMAIL PROTECTED]

For additional commands, e-mail:

[EMAIL PROTECTED]

Hello Martin,

I want to inform you that I solved such problem by setting
the web.xml's
container-encoding parameter to ISO-8859-1 and the form-encoding
parameter to UTF8 (not UTF-8 because UTF8 is the
internal Java's
name of this encoding type, see Java Documentation).


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

RE: SQL Transformer substitute-value woes with 2.0.4

2003-01-17 Thread Carsten Ziegeler

Jeremy Quinn wrote:
 
   SELECT DISTINCT contributor_id, name FROM foo WHERE 
 contributor_id = 
 substitute-value sql:name=contributor_id/
 
 this is how mine look ...
 
And you do not use the sql namespace on the substitue-value element
(sql:substitue-value sql:name=.../) or have the default namespace
set to sql?

Carsten

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




How to encrypt password in DatabaseAuthenticatorAction??

2003-01-17 Thread Sternath Elmar
Hello,

I use DatabaseAuthenticatorAction and Update/AddDatabaseAction for my login/user 
administration procedure. All user info including password is stored as clear text in 
the database. Is there any solution for password encryption in this context?


Mit freundlichen Grüßen/ Best regards
Elmar Sternath

Siemens AG
Information and Communication Networks
ICN IT CA EB 2 - Web Applications
Mch H/Me19 - 99801-231a

Meglinger Straße 19 (99801-231a) D-84577 München
Tel.:   +49(89)722-24045
Mobil: +49(0)160-5860351
Fax.:  +49(89)722-53384
EMail: [EMAIL PROTECTED]

 Sternath Elmar.vcf 



Sternath Elmar.vcf
Description: Binary data
-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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


Re: SQL Transformer substitute-value woes with 2.0.4

2003-01-17 Thread Jeremy Quinn

On Friday, Jan 17, 2003, at 10:04 Europe/London, Carsten Ziegeler wrote:



Jeremy Quinn wrote:


	SELECT DISTINCT contributor_id, name FROM foo WHERE
contributor_id =
substitute-value sql:name=contributor_id/

this is how mine look ...


And you do not use the sql namespace on the substitue-value element
(sql:substitue-value sql:name=.../) or have the default namespace
set to sql?


yeah, I missed that ;) Whoops!

you need to declare the prefixed namespace if you want to use either:

	substitue-value sql:name=id/
or
	ancestor-value sql:name=id sql:level=1/

execute-query
	xmlns=http://apache.org/cocoon/SQL/2.0;
	xmlns:sql=http://apache.org/cocoon/SQL/2.0;
	

	query
		select *
		from blah
		where id = substitue-value sql:name=id/
	/query

/execute-query


Sorry!!

regards Jeremy


-
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: xinclude performance issues,

2003-01-17 Thread Christoph Gaffga
Hi,

We had the same Problem, instead of aggregating all files from a directory
we had to aggregate all files/components from a list in our DB.
The only solution we found, that would make sence in terms of perfomance,
was to write our own Aggregator. You could simply extend Cocoon Default
Aggregator to do so.

If you are interested in our code, I can send it to you, but, as I said, it
doesn't aggregate a directory, but it's a good piece of code to start with.

Christoph Gaffga
[EMAIL PROTECTED]



- Original Message -
From: icewind [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 17, 2003 12:11 AM
Subject: xinclude performance issues,


 Let me describe what I am doing:

 I have a directory that contains .xml files. In my
 sitemap, I have a pipeline that starts with a
 DirectoryGenerator on this directory. I then have a
 transformation that takes the directorygenerator's
 output and puts some xi:include tags with xpointers to
 some tags in the xml files I am interested in. I then
 run the xinclude transformation and serialize to html.
 This is exactly what is described in this email to the
 list (i was involved in that original email):
 http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=102617106411067w=2

 There is a link to this email in the Cocoon XSLT FAQ
 question titled: What's wrong with use of the
 document() function in Cocoon?

 So, I'm using that method, and it works. The result is
 that I get an html page with the tags I pulled out
 with xinclude for each xml file. It works, but the
 performance is pretty terrible. I have approximately
 30 xml files in the said directory, and the size that
 most of the files is around 30K. (there are a couple
 that are around 200K) I am pulling out 4 tags with
 xinclude. I have Cocoon version 2.0.3 and its running
 with tomcat on a dual 1ghz processor server with 1gb
 ram and raid disks.

 The time for the pipeline to execute is just under 14
 seconds, which is too long. (i measured using a
 stopwatch from the time I requested the page until the
 time i could see it).

 So, I have the usual questions:

 1) If anyone else is using a similar setup, do you
 have similar issues?

 2) What can I do to improve performance?

 Thanks for any suggestions.






 __
 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. 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: How to encrypt password in DatabaseAuthenticatorAction??

2003-01-17 Thread Murad Jura
Hello,

In my point of view the easiest way is to not store real pusswords but 
its digests (in example MD5 or SHA).

Murad Jura.

Sternath Elmar wrote:
Hello,

I use DatabaseAuthenticatorAction and Update/AddDatabaseAction for my login/user administration procedure. All user info including password is stored as clear text in the database. Is there any solution for password encryption in this context?


Mit freundlichen Grüßen/ Best regards
Elmar Sternath

Siemens AG
Information and Communication Networks
ICN IT CA EB 2 - Web Applications
Mch H/Me19 - 99801-231a

Meglinger Straße 19 (99801-231a) D-84577 München
Tel.:   +49(89)722-24045
Mobil: +49(0)160-5860351
Fax.:  +49(89)722-53384
EMail: [EMAIL PROTECTED]

 Sternath Elmar.vcf 




-
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: How to encrypt password in DatabaseAuthenticatorAction??

2003-01-17 Thread Christian Haul
On 17.Jan.2003 -- 11:25 AM, Sternath Elmar wrote:
 Hello,
 
 I use DatabaseAuthenticatorAction and Update/AddDatabaseAction for
 my login/user administration procedure. All user info including
 password is stored as clear text in the database. Is there any
 solution for password encryption in this context?

Yes -- you could use the actions from the modular package and pipe
your pw through the DigestMetaInputModule. There is no authenticator
action but the select action should provide similar enough
functionality.

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]




Cocoon, J2SDK 1.4.1_01 and Tomcat

2003-01-17 Thread Eduardo Zurita



Hello again,

 I have installed Tomcat 4.1.17 
LE, my J2SDK is 1.4.1_01 and my Cocoon version is 2.04 targetted for JDK 
1.4.

---

Note:Cocoon includes all the packages required to run out of the box 
(included Xerces, Xalan and FOP) so you don't need to download anything else to 
start.
Note:Due to the incompatibilities between JDK 1.3 and JDK 1.4, you 
have to choose between a binary version targetted for JDK 1.2/1.3 and a version 
specially targetted for JDK 1.4. Using a build targetted for one JVM on a 
different JVM may result in runtime errors.
---
 When I have downloaded Tomcat, I 
have chosen the "LE" version because in the Jakarta site I can 
read:

---
JDK 1.4 LE: This is a lightweight binary distribution of 
Tomcat 4, designed to be run on JDK 1.4. It does not include any of the optional 
binaries or the necessary XML parser (which is included in JDK 1.4). This build 
can be run on JDK 1.2+ by adding an XML parser. All the components of this 
distribution are open source software. This package does not contain JavaMail, 
Java Activation Framework, Xerces, JNDI or the JDBC Standard Extension

---

Well, then I have installed Cocoon 
2.04

Have I done the correct installation (versions 
point of view)?

What is the recommended versions (most stable) and 
reliable?

Have I to deactivate Xerces in JDK1.4 or in Cocoon? 
Have I two Xerces?

A little help would be appreciated.

Thanks,

Eduardo.


RE: xinclude performance issues,

2003-01-17 Thread Artur Bialecki


The XIncludeTransformer parses the included file into DOM,
and then streams the included part back into SAX. In my case
I have 1000 pages including parts of 10 others so I hacked
the XIncludeTransformer to keep the DOMs of those 10 pages in
memory. This is not the best solution but it's fastee, 
you should probably look at aggregators instead
(I had to deal with legacy XSP from Cocoon 1.x).

Artur...

 -Original Message-
 From: icewind [mailto:[EMAIL PROTECTED]] 
 Sent: January 16, 2003 6:12 PM
 To: [EMAIL PROTECTED]
 Subject: xinclude performance issues, 
 
 
 Let me describe what I am doing:
 
 I have a directory that contains .xml files. In my
 sitemap, I have a pipeline that starts with a
 DirectoryGenerator on this directory. I then have a
 transformation that takes the directorygenerator's
 output and puts some xi:include tags with xpointers to
 some tags in the xml files I am interested in. I then
 run the xinclude transformation and serialize to html.
 This is exactly what is described in this email to the
 list (i was involved in that original email):
 http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=102617106411067w=2
 
 There is a link to this email in the Cocoon XSLT FAQ
 question titled: What's wrong with use of the
 document() function in Cocoon?
 
 So, I'm using that method, and it works. The result is
 that I get an html page with the tags I pulled out
 with xinclude for each xml file. It works, but the
 performance is pretty terrible. I have approximately
 30 xml files in the said directory, and the size that
 most of the files is around 30K. (there are a couple
 that are around 200K) I am pulling out 4 tags with
 xinclude. I have Cocoon version 2.0.3 and its running
 with tomcat on a dual 1ghz processor server with 1gb
 ram and raid disks. 
 
 The time for the pipeline to execute is just under 14
 seconds, which is too long. (i measured using a
 stopwatch from the time I requested the page until the
 time i could see it).
 
 So, I have the usual questions:
 
 1) If anyone else is using a similar setup, do you
 have similar issues?
 
 2) What can I do to improve performance?
 
 Thanks for any suggestions.
 
 
 
 
  
 
 __
 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. 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: Flow questions

2003-01-17 Thread Christian Haul
On 16.Jan.2003 -- 08:17 PM, Miles Elam wrote:
 The next thought was Actions, but that was just keeping the code 
 relatively out of sight.  It seemed fairly clumsy for any non-trivial 
 amount (more than 100 lines) of logic and made the sitemap kinda crufty 
 as well.
 
 Next came Flow.  Although I didn't have multiple pages to work with as 
 is the case with a wizard, it seemed to make a lot of sense in a 
 predominantly procedural logic approach.  However, I ran into a few 
 snags -- mostly related to lack of documentation (yes, I realize it's 
 alpha and the API may be pulled out from under me...I'm prepared to deal 
 with the search/replace/debug repercussions).  I'll keep my code snippet 
 as short as possible.
 
 function saveShow () {
  var showData;
  try {
var factory  = 
 javax.xml.parsers.DocumentBuilderFactory.newInstance();
var builder  = factory.newDocumentBuilder();
var showDocument = builder.parse( /* Somehow get the XML POST data 
 in here */ );
 
var showData = getShowData(showDocument);
  } catch ( e ) {
sendPageAndContinue(showerror);
  }
 
  try {
var dbConn = /* Somehow get the datasource by name */.getConnection();
var dbStatement = dbConn.createStatement();
// ...snip a whole bunch of extraneous JDBC logic...
  } catch (sqle) {
sendPageAndContinue(showerror);
  }
 }

Why don't you code this in a java class and just use it from flow? Why
would you want to code that in javascript?

 1) How do I get XML POST data into the function (eg. equivalent to 
 StreamGenerator)?

You could write an InputModule for that and copy the relevant parts
from the StreamGenerator or write an InputModule that can connect to
an internal pipeline (the XMLFileModule does something similar).

 2) How do I look up a Cocoon datasource by name in JavaScript/Flow?

If you follow suggestion to 1) you could use the database actions from
the modular package and don't need to. Apart from that, you have
pretty much the same options as inside a java component. See
e.g. system.js and JSCocoon.java for the available objects.

See also
http://marc.theaimsgroup.com/?l=xml-cocoon-devm=103811227701167w=2

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: How to encrypt password in DatabaseAuthenticatorAction??

2003-01-17 Thread Marcelo F. Ochoa
Sternath Elmar wrote:


Hello,

I use DatabaseAuthenticatorAction and Update/AddDatabaseAction for my login/user administration procedure. All user info including password is stored as clear text in the database. Is there any solution for password encryption in this context?


If you are using Oracle, you could use the database package 
DBMS_OBFUSCATION_TOOLKIT 
(http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/appdev.920/a96612/d_obtool.htm#6518).
It can encryt/decryt password with the same algorithm as the database.



Mit freundlichen Grüßen/ Best regards
Elmar Sternath

 

Best regards, Marcelo.

--
Marcelo F. Ochoa - [EMAIL PROTECTED]
Do you Know DB Prism? Look @ http://www.dbprism.com.ar/dbprism/doc/Home.html
More info?
Chapter 21 of the book Professional XML Databases (Wrox Press 
http://www.wrox.com/)
Chapter 8 of the book Oracle  Open Source (O'Reilly 
http://www.oreilly.com/catalog/oracleopen/)
---
Lab. de Sistemas - Fac. de Cs. Exactas - UNICEN
Paraje Arroyo Seco - Campus Universitario
(7000) Tandil - Bs. AS. - Argentina
Te: +54-2293-30 Fax: +54-2293-31




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

2003-01-17 Thread Saqib . N . Ali

Hi Konstantin,
Thanks :) That is exactly what I was looking for. My sitemap looks as
follows:

map:match pattern=http:**.*
map:generate src=http:/{1}.{2}/
map:transform src=/path/to/getRSS.xsl/
map:serialize type=html/

And it can process request such as:
http://my.xml.server:8080/cocoon/mount/rssfeed/http://www.xmlhack.com/rss.php;

In Peace,
Saqib Ali



   

Konstantin

Piroumian   To: [EMAIL PROTECTED] 

kpiroumian@acc:   

pache.org   Subject: Re: sitemap matcher woes 

No Phone Info  

Available  

   

01/17/2003 

01:47 AM   

Please 

respond to 

cocoon-users   

   

   





From: [EMAIL PROTECTED]

 Hi All,

 Currently my sitemap is setup like the following:

 map :match pattern=w3c.rss
 map :generate src=http://www.w3.org/2000/08/w3c-synd/home.rss/
 map :transform src=/path/to/getRSS.xsl/
 map :serialize type=html/
 /map

 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:

 map :match pattern=*.rss
 map :generate src={1}.rss/
 map :transform src=/path/to/getRSS.xsl/
 map :serialize type=html/
 /map

 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:

map :match pattern=**/*.rss - this will match any path/file.rss
or
map :match pattern= - this will match any request without a path or a
file (default matcher)
or
map :match pattern=**/ - 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. 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]




P: cocoon 2.0.4 with WebSphere 5.0

2003-01-17 Thread Johannes_Lorenz
Hello,

i can't get cocoon 2.0.4 running with WebSphere 5.0.
Neither the log files of WAS 5.0 nor the logs of cocoon provide any
information to track down the error.

Was anybody successful?

Any hints are greatly appreciated
yours Johannes


-
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: Flow questions

2003-01-17 Thread Miles Elam
Christian Haul wrote:


Why don't you code this in a java class and just use it from flow? Why
would you want to code that in javascript?


Because JavaScript has no compile step and is simpler.  Unless you are 
expecting a high load on a resource (content inserts and updates are 
expected to be far fewer than reads), what are reasons to use Java?  
Doesn't Rhino compile the JavaScript down to Java bytecodes anyway?  If 
the whole thing is going to take only about a page's worth of code, why 
go through the compile step?

1) How do I get XML POST data into the function (eg. equivalent to 
StreamGenerator)?
   


You could write an InputModule for that and copy the relevant parts
from the StreamGenerator or write an InputModule that can connect to
an internal pipeline (the XMLFileModule does something similar).

 

2) How do I look up a Cocoon datasource by name in JavaScript/Flow?
   


If you follow suggestion to 1) you could use the database actions from
the modular package and don't need to. Apart from that, you have
pretty much the same options as inside a java component. See
e.g. system.js and JSCocoon.java for the available objects.


Thanks, although now I'm a bit confused.  I think you are assuming 
background information that most of us don't have.  1) What is the 
modular package?  2) Where is it? (I'm assuming you don't mean 
matching/modular which is the only directory I see in the cocoon source 
hierarchy.)  3) Do those database actions really simplify things?  I 
didn't think my codebase was all that complex to begin with.  (Hard for 
me to tell because I don't know which actions you are specifically 
talking about.)

Also, the point of this particular item is the consumption of data with 
only a status/result coming out.  There is no real XML-XML 
transformation step.  There is an abrupt end to the pipeline model here 
in favor of a logic-based, programmatic model.  Wouldn't actions muddy 
those waters rather than clean them up?

Also I saw a post that gave an example of access to the component manager.

 var dbSelector = cocoon.componentManager.lookup(
   org.apache.avalon.excalibur.datasource.DataSourceComponent.ROLE + 
Selector
 );
 var datasource = dbSelector.select( datasource name );

That's what I was looking for in the original post.  Of course now you 
have me curious about other options.  I realized that my questions may 
have come over as too simple and basic, but I honestly did look through 
the online documentation, the Wiki, and even bought one of the books on 
Cocoon 2 (the one by Lagos Moczar and Jeremy Aston).  When I tried doing 
searches on the mailing lists for this info, most of the hits gave back 
so many unrelated items that it was taking days of drudgery just to get 
close to an answer.

I'm not just talking about Flow.  Has anyone looked up how to implement 
caching in an XSP file lately -- or anywhere else for that matter?  The 
example has been broken in CVS for some time due to the API change from 
2.0 to 2.1 and no one seems to have updated examples.  I checked the 
source for some insight, but the only obvious places that I knew to look 
were FileGenerator and its ilk, but without outside notes on the overall 
mechanism, I'm at the alchemy stage of development (trying something out 
to see what happens).  For example, I saw Carsten Ziegler's 
TimestampValidity object -- something I know will be useful for what I 
have in mind, but there is nothing in plain view that I saw explaining 
how to get there.  Excalibur's XML Utilities are much the same story.  
Unless you know where the starting point is, it's very difficult to 
follow an object/component hierarchy and flow.

I know that people are working on documentation.  I'm not trying to 
sound ungrateful.  Just ranting a bit.

See also
http://marc.theaimsgroup.com/?l=xml-cocoon-devm=103811227701167w=2



Great link!  Thanks!  I vaguely remember it coming down the pipe.  Has 
any documentation come of it yet?  I know there was that sendPage API 
debate, but what about the rest?  It mentions fears about using Flow the 
wrong way (and Stefano's excellent retort regarding JavaScript as just a 
syntax).  Here is my dilemma.  In my setup, Java -- and objects in 
general -- are not the focal point.  This is quite unlike most 
processing systems where the logic and the object model is actually the 
focal point.  For my system, the focal point is XML.  Whatever 
persistence layer is used, the useful contract is the XML -- no matter 
the mechanism to get there, the persistence behavior, or the output 
type.  For distribution, the XML is to be converted to multiple 
formats.  Progammatic logic and objects are seldom used.  In this case, 
I want to persist the XML to a storage medium, but I don't have the 
time, energy, or resources to write a complex XML-Relational bridge.  I 
have just a few different document types that get saved into multiple 
tables.  For reading the info, ESQL is quite capable of doing the job of 

Re: org.xml.sax.SAXParseException: Content is not allowed in prolog.

2003-01-17 Thread J.Pietschmann
Eduardo Zurita wrote:

2) Why the parser says Content is not allowed in prolog?

Because there is something which is not allowed before the
document element (the BAPI...). I guess it's the DOCTYPE
declaration going the wrong way. I suggest deleting the DOCTYPE
template from the JSP.
Other possibilities are a linefeed (empty line) before the
?xml ...? in the JSP or encoding problems.


3) Why in the second pipeline the serialized output includes an 
encoding=UTF-8
UTF-8 is the default encoding, just declared again to be sure.

  and deletes all the defined entities?
The Cocoon XML serializer can't output an internal subset.

J.Pietschmann


-
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: Cocoon, J2SDK 1.4.1_01 and Tomcat

2003-01-17 Thread Joerg Heinicke
Hello Eduardo,

Eduardo Zurita wrote:

Hello again,
 
I have installed Tomcat 4.1.17 LE,

there is already a security update 4.1.18 
(http://jakarta.apache.org/site/news.html#1219.1).

my J2SDK is 1.4.1_01 and my 
Cocoon version is 2.04 targetted for JDK 1.4.
---

*Note:*Cocoon includes all the packages required to run out of the box 
(included Xerces, Xalan and FOP) so you don't need to download anything 
else to start.

*Note:*Due to the incompatibilities between JDK 1.3 and JDK 1.4, you 
have to choose between a binary version targetted for JDK 1.2/1.3 and a 
version specially targetted for JDK 1.4. Using a build targetted for one 
JVM on a different JVM may result in runtime errors.

---

When I have downloaded Tomcat, I have chosen the LE version 
because in the Jakarta site I can read:
 
---
*JDK 1.4 LE:* This is a lightweight binary distribution of Tomcat 4, 
designed to be run on JDK 1.4. It does not include any of the optional 
binaries or the necessary XML parser (which is included in JDK 1.4). 
This build can be run on JDK 1.2+ by adding an XML parser. All the 
components of this distribution are open source software. This package 
does not contain JavaMail, Java Activation Framework, Xerces, JNDI or 
the JDBC Standard Extension
---
 
Well, then I have installed Cocoon 2.04
 
Have I done the correct installation (versions point of view)?
 
What is the recommended versions (most stable) and reliable?

The versions are ok.


Have I to deactivate Xerces in JDK1.4 or in Cocoon? Have I two Xerces?


You don't have two Xerces, but and old one in JDK, which is the wrong 
one. The Cocoon one isn't loaded then. You have to put the Cocoon's one 
into endorsed directory of Tomcat. Conclusion: Copy xalan-xxx.jar, 
xercesImpl-xxx.jar and xml-apis.jar from Cocoon's lib/core directory 
into Tomcat's common/endorsed directory.

Regards,

Joerg

A little help would be appreciated.
 
Thanks,
 
Eduardo


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




DO NOT REPLY [PATCH QUEUE] Summary January 18 2003

2003-01-17 Thread nicolaken
---
 This mail is generated automatically using
 Jakarta Ant. Contents are automatically
 downloaded from Apache's Bugzilla.
---
 Please do not reply to this mail.
---

***
COCOON PATCH QUEUE UPDATE
 
patches in queue:  27 
***


---
9728:[PATCH] CocoonServlet getClassPath() enhancements Tomcat4
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9728

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
11533:[PATCH] Replacement for AvalonToCocoonSource
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11533

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
11549:[PATCH] Replace LogKitManageable through LoggerManageable
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11549

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
11861:[PATCH] extend castortransformer to handle collections
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11861

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
12173:[PATCH] SQLTransformer Query object prematurely closes conne
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12173

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
12235:[PATCH] XPathTransformer
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12235

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
12993:[PATCH] New version of CastorTransformer (includes marshalli
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12993

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
13220:[PATCH] build dist-bin broken in HEAD
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13220

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
14048:[PATCH] No-cache enhancement for ResourceReader component
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14048

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
14117:[PATCH] AuthAction fails in sub-requests
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14117

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
14144:[Patch] add CompressionFilter declaration to web.xml
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14144

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
14327:[PATCH] JSPEngineImpl response charset should be specified w
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14327

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
14803:[PATCH] cacheable.xsp for new AbstractServerPages
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14803

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
14845:[PATCH] Patch to generate a key with new resources in XMLDBT
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14845

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
14986:[PATCH] Enables velocitygenerator to get objects from reques
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14986

REVIEWER:[EMAIL PROTECTED]

Send directly to printer....?

2003-01-17 Thread Antonio Gallardo
Hi,

Is there a way to send a document directly to printer?

I am using XSL-FO and serializing to PDF. But now I need to send a
document directly to printer without presenting it first in the client
browser first. Is there a way to do that?

Thanks in advance.

Antonio Gallardo.



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