What DTD's do you use for a plain site?

2002-09-28 Thread Justin Fagnani-Bell

What Doctypes are people using for general information to be displayed 
at HTML?

I'm doing a very simple site which will be mostly static HTML. The data 
is basically intended for presentation only, so there isn't much of a 
datatype I need to model, the only reason I'm going for cocoon is to 
swap out look and feel easily.

So far my experience with Cocoon has been with data I could come up 
with a logical XML dialect for. But for presentation orientated data I 
find myself just using html, which I know I shouldn't.

Any suggestions? I'm about to check out DocBook, but is that maybe 
overkill?

Thanks,
   Justin


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




post data in XML format

2002-09-28 Thread Geoff Howard

The other answer you received about using standard
HTML forms is probably the way you should go, but as
to the specific question you asked about generating
xml at the browser, there is a way to do this if your
situation allows you to stay IE only - The
XMLHTTPConnection ActiveXObject.  The following links
should get you started: 

http://jibbering.com/2002/4/httprequest.html
http://www.15seconds.com/issue/991125.htm

Disclaimer: there have been security problems related
to this feature and I haven't followed whether it has
been disabled in default configurations, or also
whether it has been removed from IE 6 generation.

That part was not a cocoon question.

Handling the data once it gets in is.  If you do the
XMLHTTPConnection, you'll get at the data as part of
the request body, most likely in the POST body - this
has been discussed before and you can search the mail
list archives for specific instructions.

HTH, 
Geoff Howard

__
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.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]>




Re: [Q] Cocoon 2.1 on JBoss+Tomcat

2002-09-28 Thread Ivelin Ivanov


Another advancement.

The cocoon.war build for JDK 1.4 from C2.1 HEAD, works great with
JBoss-2.4.9_Tomcat-4.0.4 after following the instructions on the Cocoon
Install page for c2.0.3.

JBoss 3.0 is still a challenge.



- Original Message -
From: "Ivelin Ivanov" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 28, 2002 9:56 AM
Subject: [Q] Cocoon 2.1 on JBoss+Tomcat


>
> I have tried to run the latest C2.1 with JBoss + Tomcat.
> I get the same error with both JBoss 3.0 + Tomcat 4.0.4 and JBoss 2.4.9 +
> Tomcat 4.0.4
>
> It appears like a JNDI misconfiguration.
>
> Has someone done it before, that can give me a clue?
>
> I would like to get this working and add a section on the "Installation"
> page.
>
> -
>
> Cocoon 2 - Internal server error
>
> type fatal
> message Failed to load sitemap from
>
file:/C:/devtools/jboss-3.0.2_tomcat-4.0.4/bin/jndi:/localhost/cocoon/sitema
> p.xmap
> description org.apache.cocoon.ProcessingException: Failed to load sitemap
> from
>
file:/C:/devtools/jboss-3.0.2_tomcat-4.0.4/bin/jndi:/localhost/cocoon/sitema
> p.xmap: org.apache.cocoon.ResourceNotFoundException: Resource not found.:
> org.apache.excalibur.source.SourceNotFoundException: Resource not found
>
file:/C:/devtools/jboss-3.0.2_tomcat-4.0.4/bin/jndi:/localhost/cocoon/sitema
> p.xmap
> sender org.apache.cocoon.servlet.CocoonServlet
> source Cocoon servlet
> request-uri
> /cocoon/
> path-info
>
> stack-trace
> org.apache.cocoon.ProcessingException: Failed to load sitemap from
>
file:/C:/devtools/jboss-3.0.2_tomcat-4.0.4/bin/jndi:/localhost/cocoon/sitema
> p.xmap: org.apache.cocoon.ResourceNotFoundException: Resource not found.:
> org.apache.excalibur.source.SourceNotFoundException: Resource not found
>
file:/C:/devtools/jboss-3.0.2_tomcat-4.0.4/bin/jndi:/localhost/cocoon/sitema
> p.xmap
>  at
>
org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.build(DefaultT
> reeBuilder.java:393)
>  at
>
org.apache.cocoon.components.treeprocessor.TreeProcessor.setupRootNode(TreeP
> rocessor.java:401)
>  at
>
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
> or.java:320)
>  at
>
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
> or.java:308)
>  at org.apache.cocoon.Cocoon.process(Cocoon.java:595)
>
>
>
> -=Ivelin=-
>
>
> -
> 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]>




subsitemap and JSP

2002-09-28 Thread Sushil Bhattarai

I have JSP generator and Reader sample in the cocoon page working fine from 
the main sitemap. However, when I try the exact sample in subsitemap, it 
throws errror. I even tried by declaring JSP generator and reader in 
subsitemap, hoping that was the problem. Has anyone used JSP in subsitemap 
successfully ?? Any suggestions on how I can fix it ?

Thanks
Sushil

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




Re: jndi, oracle, generator

2002-09-28 Thread apurva zaveri


opps!

I made the obcious changes like

   env.put (Context.PROVIDER_URL,
"file:/rertndb/JNDI"); in binding.

read this in below as:

I made the obvious changes like

   OracleOCIConnectionPool cpool = new
OracleOCIConnectionPool("apurva","apffapz",
"jdbc:oracle:oci:@RERTNDB", null);

it was RERTN before.




--- apurva zaveri <[EMAIL PROTECTED]> wrote:
> hello,
> 
> I have a wierd problem. I am almost about to kill
> myself for this.
> It would seem this has nothing to with cocoon but it
> has.
> 
> 
> 
>String ln = "jdbc/db";
>Hashtable env = new Hashtable (5);
>env.put (Context.INITIAL_CONTEXT_FACTORY,
> 
> "com.sun.jndi.fscontext.RefFSContextFactory");
>env.put (Context.PROVIDER_URL,
> "file:/rertn/JNDI");
>ctx = new InitialContext(env);
>OracleOCIConnectionPool cpool = new
> OracleOCIConnectionPool("apurva","apffapz",
> "jdbc:oracle:oci:@RERTNDB", null);
>ctx.unbind(ln);
>ctx.bind (ln,cpool);
> 
> 
> This is a snippet of code from a java file that i
> use
> to bind a OracleOCIConnectionPool obj with JNDI. In
> the
> same class i also do a look up like this:
> 
> OracleOCIConnectionPool cpool =
> (OracleOCIConnectionPool) ctx.lookup (ln);
> OracleOCIConnection conn = (OracleOCIConnection)
> cpool.getConnection();
> 
> 
> works fine. I used this lookup code from the cocoon
> generator for months not a problem. Everything 
> worked fine. 
> It is a windows 2000 server with oracle 9i DB.
> Tomcat,cocoon,oracle on the same server.
> 
> I uninstalled oracle 9i and installed oracle 9i
> second
> release. Since orcale did not let me
> keep the same oracle instance name, I changed the
> instance name from "rertn" to "rertndb".
> I made the obcious changes like
> 
>env.put (Context.PROVIDER_URL,
> "file:/rertndb/JNDI"); in binding.
> 
> I compiled the application and none of the generator
> works anymore. I almost got a stroke for a moment
> nothing in the application works. What is wierd is
> that the class file which does the binbing,
> as you know also has a look-up, the look-up for the
> obj works there and i can fire queries. So it seems
> there is nuthing wrong with the OCI driver.
> 
> When i say the generator do not work means: it stops
> excecution at 
> 
> OracleOCIConnectionPool cpool =
> (OracleOCIConnectionPool) ctx.lookup (ln);
>  throws no exception.
> 
> I tried to do a look-up from an independent jsp
> page.
> No exception in caught but the page shows
> 
> java.lang.UnsatisfiedLinkError: make_c_state error.
> (which is runtime i believe)
> 
> HELP!
> 
> -Apurva Zaveri
> 
> 
> 
> 
> 
> 
> 
> 
> __
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> http://sbc.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]>
> 


__
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.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]>




jndi, oracle, generator

2002-09-28 Thread apurva zaveri

hello,

I have a wierd problem. I am almost about to kill
myself for this.
It would seem this has nothing to with cocoon but it
has.



   String ln = "jdbc/db";
   Hashtable env = new Hashtable (5);
   env.put (Context.INITIAL_CONTEXT_FACTORY,

"com.sun.jndi.fscontext.RefFSContextFactory");
   env.put (Context.PROVIDER_URL, "file:/rertn/JNDI");
   ctx = new InitialContext(env);
   OracleOCIConnectionPool cpool = new
OracleOCIConnectionPool("apurva","apffapz",
"jdbc:oracle:oci:@RERTNDB", null);
   ctx.unbind(ln);
   ctx.bind (ln,cpool);


This is a snippet of code from a java file that i use
to bind a OracleOCIConnectionPool obj with JNDI. In
the
same class i also do a look up like this:

OracleOCIConnectionPool cpool =
(OracleOCIConnectionPool) ctx.lookup (ln);
OracleOCIConnection conn = (OracleOCIConnection)
cpool.getConnection();


works fine. I used this lookup code from the cocoon
generator for months not a problem. Everything 
worked fine. 
It is a windows 2000 server with oracle 9i DB.
Tomcat,cocoon,oracle on the same server.

I uninstalled oracle 9i and installed oracle 9i second
release. Since orcale did not let me
keep the same oracle instance name, I changed the
instance name from "rertn" to "rertndb".
I made the obcious changes like

   env.put (Context.PROVIDER_URL,
"file:/rertndb/JNDI"); in binding.

I compiled the application and none of the generator
works anymore. I almost got a stroke for a moment
nothing in the application works. What is wierd is
that the class file which does the binbing,
as you know also has a look-up, the look-up for the
obj works there and i can fire queries. So it seems
there is nuthing wrong with the OCI driver.

When i say the generator do not work means: it stops
excecution at 

OracleOCIConnectionPool cpool =
(OracleOCIConnectionPool) ctx.lookup (ln);
 throws no exception.

I tried to do a look-up from an independent jsp page.
No exception in caught but the page shows

java.lang.UnsatisfiedLinkError: make_c_state error.
(which is runtime i believe)

HELP!

-Apurva Zaveri








__
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.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]>




RE: Master-Detail form using Cocoon

2002-09-28 Thread Artur Bialecki



> -Original Message-
> From: Ivelin Ivanov [mailto:[EMAIL PROTECTED]] 
> Sent: September 28, 2002 11:20 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Master-Detail form using Cocoon
> 
> 
> 
> forms:
> 
> http://xml.apache.org/cocoon/userdocs/concepts/xmlform.html
> 
> (follow the howto link for examples)
> 
> databases:
> http://xml.apache.org/cocoon/userdocs/concepts/databases.html
> 
> 
> - Original Message -
> From: "Antonio Gallardo Rivera" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, September 28, 2002 2:27 AM
> Subject: Master-Detail form using Cocoon
> 
> 
> Hi folks,
> 
> Can someone provide an example of a lets said a invoice or 
> something similar
> using Cocoon and database?
> 
> Antonio Gallardo
> 
> -
> 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: [Q] Cocoon 2.1 on JBoss+Tomcat

2002-09-28 Thread Ivelin Ivanov


A slight advancement:

The problem is still there with JBoss 3.0,
but with JBoss 2.4.9 I got to a point where Cocoon is reported deployed but
the when I try to hit the home page, the server returns a 302 redirect to
the home page, which of course causes an infinite loop.

GET /cocoon/ HTTP/1.0


HTTP/1.1 302 Moved Temporarily
Content-Type: text/html
Connection: close
Date: Sat, 28 Sep 2002 15:27:05 GMT
X-Cocoon-Version: @version@
Location: http://localhost:8080/cocoon/
Server: Apache Tomcat/4.0.4 (HTTP/1.1 Connector)

Apache Tomcat/4.0.4 - Error
report
Apache To
mcat/4.0.4 - HTTP Status 302 - Moved Temporarilytype Status reportmessage Moved
Temporarilydescription The requested resource (Moved Temporarily) has moved temporarily to a
new locatio
n.



- Original Message -
From: "Ivelin Ivanov" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 28, 2002 9:56 AM
Subject: [Q] Cocoon 2.1 on JBoss+Tomcat


>
> I have tried to run the latest C2.1 with JBoss + Tomcat.
> I get the same error with both JBoss 3.0 + Tomcat 4.0.4 and JBoss 2.4.9 +
> Tomcat 4.0.4
>
> It appears like a JNDI misconfiguration.
>
> Has someone done it before, that can give me a clue?
>
> I would like to get this working and add a section on the "Installation"
> page.
>
> -
>
> Cocoon 2 - Internal server error
>
> type fatal
> message Failed to load sitemap from
>
file:/C:/devtools/jboss-3.0.2_tomcat-4.0.4/bin/jndi:/localhost/cocoon/sitema
> p.xmap
> description org.apache.cocoon.ProcessingException: Failed to load sitemap
> from
>
file:/C:/devtools/jboss-3.0.2_tomcat-4.0.4/bin/jndi:/localhost/cocoon/sitema
> p.xmap: org.apache.cocoon.ResourceNotFoundException: Resource not found.:
> org.apache.excalibur.source.SourceNotFoundException: Resource not found
>
file:/C:/devtools/jboss-3.0.2_tomcat-4.0.4/bin/jndi:/localhost/cocoon/sitema
> p.xmap
> sender org.apache.cocoon.servlet.CocoonServlet
> source Cocoon servlet
> request-uri
> /cocoon/
> path-info
>
> stack-trace
> org.apache.cocoon.ProcessingException: Failed to load sitemap from
>
file:/C:/devtools/jboss-3.0.2_tomcat-4.0.4/bin/jndi:/localhost/cocoon/sitema
> p.xmap: org.apache.cocoon.ResourceNotFoundException: Resource not found.:
> org.apache.excalibur.source.SourceNotFoundException: Resource not found
>
file:/C:/devtools/jboss-3.0.2_tomcat-4.0.4/bin/jndi:/localhost/cocoon/sitema
> p.xmap
>  at
>
org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.build(DefaultT
> reeBuilder.java:393)
>  at
>
org.apache.cocoon.components.treeprocessor.TreeProcessor.setupRootNode(TreeP
> rocessor.java:401)
>  at
>
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
> or.java:320)
>  at
>
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
> or.java:308)
>  at org.apache.cocoon.Cocoon.process(Cocoon.java:595)
>
>
>
> -=Ivelin=-
>
>
> -
> 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: Master-Detail form using Cocoon

2002-09-28 Thread Ivelin Ivanov


forms:

http://xml.apache.org/cocoon/userdocs/concepts/xmlform.html

(follow the howto link for examples)

databases:
http://xml.apache.org/cocoon/userdocs/concepts/databases.html


- Original Message -
From: "Antonio Gallardo Rivera" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 28, 2002 2:27 AM
Subject: Master-Detail form using Cocoon


Hi folks,

Can someone provide an example of a lets said a invoice or something similar
using Cocoon and database?

Antonio Gallardo

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




[Q] Cocoon 2.1 on JBoss+Tomcat

2002-09-28 Thread Ivelin Ivanov


I have tried to run the latest C2.1 with JBoss + Tomcat.
I get the same error with both JBoss 3.0 + Tomcat 4.0.4 and JBoss 2.4.9 +
Tomcat 4.0.4

It appears like a JNDI misconfiguration.

Has someone done it before, that can give me a clue?

I would like to get this working and add a section on the "Installation"
page.

-

Cocoon 2 - Internal server error

type fatal
message Failed to load sitemap from
file:/C:/devtools/jboss-3.0.2_tomcat-4.0.4/bin/jndi:/localhost/cocoon/sitema
p.xmap
description org.apache.cocoon.ProcessingException: Failed to load sitemap
from
file:/C:/devtools/jboss-3.0.2_tomcat-4.0.4/bin/jndi:/localhost/cocoon/sitema
p.xmap: org.apache.cocoon.ResourceNotFoundException: Resource not found.:
org.apache.excalibur.source.SourceNotFoundException: Resource not found
file:/C:/devtools/jboss-3.0.2_tomcat-4.0.4/bin/jndi:/localhost/cocoon/sitema
p.xmap
sender org.apache.cocoon.servlet.CocoonServlet
source Cocoon servlet
request-uri
/cocoon/
path-info

stack-trace
org.apache.cocoon.ProcessingException: Failed to load sitemap from
file:/C:/devtools/jboss-3.0.2_tomcat-4.0.4/bin/jndi:/localhost/cocoon/sitema
p.xmap: org.apache.cocoon.ResourceNotFoundException: Resource not found.:
org.apache.excalibur.source.SourceNotFoundException: Resource not found
file:/C:/devtools/jboss-3.0.2_tomcat-4.0.4/bin/jndi:/localhost/cocoon/sitema
p.xmap
 at
org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.build(DefaultT
reeBuilder.java:393)
 at
org.apache.cocoon.components.treeprocessor.TreeProcessor.setupRootNode(TreeP
rocessor.java:401)
 at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:320)
 at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:308)
 at org.apache.cocoon.Cocoon.process(Cocoon.java:595)



-=Ivelin=-


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

2002-09-28 Thread Ross Gardler

Cocoon User wrote:
> hi guys
> 
> do u know where can i find tutorial or demostrations or a reference
> about XMLforms in cocoon?

http://xml.apache.org/cocoon/howto/xmlform-wizard/howto-xmlform-wizard.html


Ross

> 
> 
> 
> 
> thanks
> kounis 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: XMLform DEMO

2002-09-28 Thread Antonio Gallardo Rivera

In the CVS of the next comming version 2.1 are some simple examples of 
XMLForms.

Antonio Gallardo

El Sábado, 28 de Septiembre de 2002 03:37, Cocoon User escribió:
> hi guys
>
> do u know where can i find tutorial or demostrations or a reference
> about XMLforms in cocoon?
>
>
>
>
> thanks
> kounis 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]>




XMLform DEMO

2002-09-28 Thread Cocoon User


hi guys

do u know where can i find tutorial or demostrations or a reference
about XMLforms in cocoon?




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




Re: post data in XML format

2002-09-28 Thread Antonio Gallardo Rivera

El Sábado, 28 de Septiembre de 2002 01:57, Cocoon User escribió:
> think about how POST work. with POST we can send data (single values) from
> a form to server over HTTP
>
> is it possible to send data from a client (IE) using a form(or anything
> else) in XML format

In 2.1-CVS There is XMLForm for form handling and webservices.

Antonio Gallardo
>
> and how can cocoon recieve this xml stuctured data and handle them (create
> the .xml file local or parse this file in memory)

webservices.
>
>
> any suggestion about the technologies i have to look ?
>
>
>
>
> thank
> i dont know if this is the right list
>
> kounis 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: how to access without "cocoon"

2002-09-28 Thread Luca Morandini

Funing,

what about reading the Cocoon FAQ at: 
http://xml.apache.org/cocoon/faq/faq-configure-environment.html ?

Best regards,

- 
   Luca Morandini 
   GIS Consultant 
  [EMAIL PROTECTED] 
http://utenti.tripod.it/lmorandini/index.html 
-
 

> -Original Message-
> From: funing [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, September 28, 2002 11:08 AM
> To: [EMAIL PROTECTED]
> Subject: how to access without "cocoon"
> 
> 
> Hi!
> I can run my webapp by http://host:8080/cocoon/xxx correctly.
> How to access it without "cocoon" by http://host:8080/xxx ?
> 
> I change the map:pattern but it doesn't work :(
> 
> best regards
> 
> -- 
> funing <[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: how to access without "cocoon"

2002-09-28 Thread Antonio Gallardo Rivera

The easiest way is coping all the files that you find in
$CATALINA_HOME/webapps/cocoon/WEB-INF

into:

$CATALINA_HOME/webapps/myapp

but you will need a new sitemap into this new location

Antonio Gallardo





El Sábado, 28 de Septiembre de 2002 03:07, funing escribió:
> Hi!
> I can run my webapp by http://host:8080/cocoon/xxx correctly.
> How to access it without "cocoon" by http://host:8080/xxx ?
>
> I change the map:pattern but it doesn't work :(
>
> best regards

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




how to access without "cocoon"

2002-09-28 Thread funing

Hi!
I can run my webapp by http://host:8080/cocoon/xxx correctly.
How to access it without "cocoon" by http://host:8080/xxx ?

I change the map:pattern but it doesn't work :(

best regards

-- 
funing <[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: Source Writing Transformer: Adding namespaces

2002-09-28 Thread Alex Romayev


--- Vadim Gritsenko <[EMAIL PROTECTED]>
wrote:
> Alex Romayev wrote:
> 
> >I'm still struggling with this problem.  Let me try
> to
> >state it more clearly:
> >
> >I would like to write XML to a file.  My XML
> contain
> >namespaces.  I declare the namespaces in the root
> >element, just the way I would like it to be in the
> >file and surround my XML with "source:write" tag. 
> >However, SourceWritingTransformer seems to be
> dropping
> >the namespace declarations and writing everything
> >else!
> >
> >Is this is a bug within the transformer or is there
> >another way of getting the namespace declarations
> >written out?
> >
> 
> Could be a bug. Try moving ns declaration into the
> root tag of the 
> document you are writing, i.e. moving declaration
> inside the write tag.
> 
> Vadim

I have, still the same result...  Any other ideas?

Alex

> 
> 
> 
> >I would appreciate any help.
> >
> >-Alex
> >
> >--- Alex Romayev <[EMAIL PROTECTED]> wrote:
> >  
> >
> >>Not sure how I would do that, here is an example:
> >>
> >>What I would like to get is:
> >> >> 
>
>>xmlns:pub="http://www.romayev.com/publication/1.0";>
> >>  
> >>
> >> 
>
>>2001-11-06
> >>  ...
> >>
> >>  
> >>
> >>
> >>Here is the code I use for
> SourceWritingTransformer:
> >>
> >>   >>   
>
>>xmlns:pub="http://www.romayev.com/publication/1.0";>
> >>
> >>  
> >>   
>
>>2001-11-06
> >>...
> >>  
> >>
> >>  
> >>
> >>
> >>--- funing <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >>>Can you use the "insert" tag?
> >>>
> >>>On Thu, 26 Sep 2002 02:17:56 -0700 (PDT)
> >>>Alex Romayev <[EMAIL PROTECTED]> wrote:
> >>>
> >>>  
> >>>
> Hi,
> 
> I'm using Source Writing Transformer to write
> 
> 
> >>XML
> >>
> >>
> >>>to
> >>>  
> >>>
> file.  I need to add namespace declarations to
> 
> 
> >>the
> >>
> >>
> root node, does anyone know how to do this?
> 
> Thanks,
> -Alex
> 
> 
> >>>-- 
> >>>funing <[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]>




Cocoon 2, Docbook and Norman Walsh's Stylesheets

2002-09-28 Thread Gabriele Domenichini

I have succeded in transforming Docbook to pdf and to html on cocoon 2.0.3 
using the stylesheet by Norman Walsh on the official docbook repository 
(http://docbook.sourceforge.net/projects/xsl/index.html). 
Cocoon has some weakness in doing this and I spent 15 days to make it work 
properly, so if you want save some time and you want to do something similar 
you are interested in this mail.
What I learned is that:

1. While xalan can do docbook transformation to xslfo correctly from the 
command line, on cocoon it can't.

2. If you use Saxon instead of xalan the transformation is almost successful 
but not completly: ie. I lost all the sect1/title.

3. If you use Saxon you loose all the xsp capabilities in cocoon (I want to 
make sql transformation with as400 and Oracle)

4. Incremental processing is not suggested for docbook to pdf transformation

The solutions I have found to this problems thanks to all I have read on the 
mailing lists and on the official site is:
1. Setting up cocoon to use xalan and saxon in alternative (defult: xalan) and 
set incremental processing to false in Saxon

2. Renaming saxon.jar to z-saxon.jar (I am not sure if is necessary but in 
this way works)

3. Modifying Saxon to make it use the parser xerces instead of aelfred 

Let'see theese points in detail

1. Setting up cocoon to use xalan and saxon in alternative (defult: xalan) and 
set incremental processing to false in Saxon.
To do this:
1.1 Put saxon652.jar WEB-INF/lib ( in the cocoon directory of course)

1.2 Here are extracts of  what you have to add in cocoon.xconf and 
sitemap.xmap:

# cocoon.xconf 

  
  
  


# sitemap.xmap

false
false

org.apache.cocoon.components.xslt.XSLTProcessor/Saxon

  "



in yor pipeline when you do a transformation from docbook to pdf you will use 
something similar:












In this way if you will leave xslt as the default type of transformation, you 
will use use xalan and all his xsp capabilities for all the the other cocoon 
functions.

2. Renaming saxon.jar z-saxon.jar (I am not sure that is necessary but in this 
way works)

3. Modifying Saxon to make it use xerces instead of aelfred as parser

Change the content of
META-INF/services/javax.xml.parsers.SAXParserFactory from
com.icl.saxon.aelfred.SAXParserFactoryImpl to
org.apache.xerces.jaxp.SAXParserFactoryImpl. That tells
Saxon to use xerces instead of aelfred as parser.

Don't be worried it is not so complicated: you have to extract the file 
(javax.xml.parsers.SAXParserFactory) from saxon.jar edit it (is a text file) 
and to put it again in the same place in saxon.jar

Conclusion:
I must say that the Saxon and xalan problems in using Norman Walsh's 
stylesheets should be addressed inside cocoon developing activity. It 
shouldn't be so hard to make docbook to pdf transformation work.
Comments are welcome.

Gabriele Domenichini

References:
To use different xslt processors or different behaviour of the same:
http://xml.apache.org/cocoon/snippet/snippet-xslt-options.html

To use saxon in alternative the mail from which I took the solution is: 
(http://www.mail-archive.com/cocoon-users@xml.apache.org/msg15968.html) which 
tell exactly what to do:

To change the behavior of saxon there's a mail 
(http://sources.redhat.com/ml/docbook-apps/2002-q2/msg00397.html) which 
explain three workaround. I have choosen the third


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




post data in XML format

2002-09-28 Thread Cocoon User


think about how POST work. with POST we can send data (single values) from
a form to server over HTTP

is it possible to send data from a client (IE) using a form(or anything
else) in XML format

and how can cocoon recieve this xml stuctured data and handle them (create
the .xml file local or parse this file in memory)


any suggestion about the technologies i have to look ?




thank
i dont know if this is the right list

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