Re: Hello and question

2003-01-21 Thread John Austin
As always, ... it depends ...

You haven't said how many different time-series files you will
be using and you haven't said how often these will be updated
and/or queried.

Your proposed solution may be appropriate and quite simple to
implement or it may be a disaster in the making. Outsiders
can't help you without much more information.


On Tue, 2003-01-21 at 16:47, Brent Eades wrote:
 Hello,
 
 A word of introduction... I belonged to the list a year or so back, 
 but got sidetracked from Cocoon for awhile. Now I'm back tinkering 
 with 2.04, and have no shortage of questions.
 
 Here's one (a rather broad and newbie-ish one.) In my project I have 
 a large number of XML files that correspond to time series. Each is 
 the same format:
 
 timeSeries
   seriesNameP12345/seriesName
   observation
 
   date2001-03-12/date
   value1.25/value
 
   date2001-03-13/date
   value1.28/value
 
   /observation  
 /timeSeries
 
 ... etc.
 
 Now: using the various mechanisms available through Cocoon, how best 
 would I query a given file (directly, as opposed to through a 
 database) via an HTML form, e.g., to extract and display only 
 selected dates/values?
 
 I have a vague grasp of various ways I could do this if my data were 
 to reside in an intermediate DBMS of some sort, but the objective 
 here is to store each time series as an XML source file only, while 
 still being able to query it.
 
 Does this make any sense? :)
 
 -
 Brent Eades, Almonte, Ontario
  http://www.almonte.com
  http://www.bankofcanada.ca
 
 
 -
 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]
-- 
John Austin [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: PDF Double Dipping -- FOP bug?

2002-09-16 Thread John Austin

On Thursday 12 September 2002 08:47 pm, you wrote:

I have seen the same behaviour in 2.0.3. Pretty annoying when the most
resource-intensive part of our system has this flaw.

 I know the subject line is pretty stupid, but hell, it's been a long
 day.

 I have started to use Cocoon to generate HTML and PDF output from a
 database.  It works great but I noticed that whenever I generate a PDF
 file the same query always get executed twice, while the equivalent HTML
 generation uses only one request.  This is especially noticeable as one
 of my queries take a minute long.  Cocoon also seem to reprocess the XML
 whenever I ask for the PDF transformation - this is evident from the
 double spike in the processing power usage (I am running Windows 2000
 and you can see the two hills prominently in the Task Manager)

 I am wondering if I am doing anything wrong, but I noticed that it seems
 to be doing the same thing even to the hello.pdf example on a fresh,
 plain installation of Tomcat/Cocoon.

 This leads me to wonder: is this a bug in FOP?  Has anyone seen/solve
 this?

 Thanks in advance!

 Paul

 p.s. Tomcat 4.0.4, Cocoon 2.0.3, Windows 2000  Windows XP, JDK1.4 
 1.3.1

-
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: Giving up! Cocoon too big, slow and confusing

2002-06-28 Thread John Austin

On Thursday 27 June 2002 05:26 pm, you wrote:
 I understand the complaints and agree with many of them, but I think
 that they are somewhat abstract or ambiguous.

 may you detail them so that they can be solved?

Ok. Where is the documentation for Pipeline Components ?

Where is an in-depth description of each type of G enerator ?

 it would be very helpful for all of us.

 Thanks to all the contributors to the cocoon project, it is a great
 product, but
 remember that one of the principles of programming is being humble to
 accept that things can be improved.
 Regards

 for example
 Documentation is scarce [ what part is scarce? all of it?

There is no depth to the documentation. One doesn't have to go very far 
to run out of documentation.

 XSP? ] Documentation is outdated   [the same]
 few examples  [which functionality needs more
 examples urgently?]

The Tutorial. How do I write a simple data-base backed application ?

 stabilization [any comments? ]
 etc

As I said earlier, it feels like there is a stampede to generate 
features and no discipline to complete the existing project. I suspect 
that this is due to personality traits and intellectual capabilities of 
some of the developers. In my career, I have encountered many 
superlative individuals. A small number of these have immense 
capacities for rote memorization. This is a distinct ability of some 
individuals and is as great a gift as abstact reasoning and other 
intellectual skills. Unfortunately, gifted individuals often fail to 
realize that half of us are below average in everything ;-). Hell, 
we're all below average in something.

Anyway, I have seen a lot of code written by genius-level people who 
fail to understand that many of us do not memorize well. 

The documentation is as important as (more important than) the code 
because nothing gets widely accepted unless it is understandable. Look 
at Perl as an example. Larry had some weird ideas and implemented them. 
These didn't hold the language back BECAUSE the documentation was 
excellent. Now Cocoon has lots of new ideas but it lacks explanation 
through documentation. The FAQ ... lets not go there ... I can never 
even FIND an FAQ  ...

The slope of the learning curve is steep and there is nothing to hold 
on to. When you do find a hand-hold, it breaks off!

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




Giving up! Cocoon too big, slow and confusing

2002-06-26 Thread John Austin

I'm back from a short vacation in beautiful Chicago (it really is much 
nicer than Toronto or Montreal) and have waded back in to Cocoon for a 
couple of days.

After just a few hours of poking around I have decided that it will be 
much simpler for me to simply hand-code a whole hat-full of servlets 
than to try and pull any meaning out of Cocoon and it's documentation.
Fifteen hours on the Interstate wasn't as challenging as trying to 
figure out how one should check a Web Form this month but I didn't have 
that feeling of travelling backwards half of the time. I was also able 
to predict and achieve forward progress (for a change).

Thanks guys, but no thanks. 

Maybe I'm getting old, but I really don't understand the need for all 
of the complexity and the lack of documentation in this product.

On the other hand, I used to feel the same way about the mind-numbing 
complexity of a certain thirty-year-old mainframe operating system 
(MVS) produced by IBM back in the sixties and it's patching system 
(SMP4). So it can't just be my age. 

Anyway, Cocoon has cost me far morte (a typo that's better than the 
original word) time than it was worth. The chief problems appear to 
have been endlessly re-invented terminology for an overwhelming number 
of 'new concepts' and a complete lack of consistency between different 
components (i.e. functional code, non-functional examples, unbuildable 
documentation and a website that doesn't match up with any single 
released version of the project).

I have a lot of respect for the ability of the people who have built 
this project, but I want them to know that their project appears to be 
out-of-control and could become very difficult to manage. If 
experienced developers (like myself) can't figure out how to use enough 
features in the product to make it worth using, then penetration will 
be limited and all of your efforts will be wasted. There is more to 
this business than stuffing in features at the expense of documentation 
and testing. You have a lot of very good ideas, but the execution of 
the project as a whole seems to be suffering.

I know that I will often look at my JSP and servlet code and think 'XSP 
and Cocoon were sooo much better!' until I remember that I wasn't ever 
able to use enough of Cocoon to make a profit.

Oh, well, at least all of my test systems have bags of memory now!

-
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: multipart/forms binary upload in mysql

2002-06-08 Thread John Austin

On Wednesday 05 June 2002 07:31 pm, you wrote:

I use PostgreSQL but use a Blob. There is a note somewhere in the 
Momjian book to the effect that it is easy to get file perms problems. 
Remember that the file will be read by the database engine with the 
effective userid of the database engine not the id used by your Servlet 
container to generate and submit the SQL statements.

 Has anyone successfully configured mysql to store binary data in blob
 fields?

 As soon as I try to upload e. g. an image I get an
 _org.apache.cocoon.ProcessingException:
 Could not add record: java.io.FileNotFoundException:
 org.apache.cocoon.components.request.multipart.FilePartFile@2bfa91
 (Datei oder Verzeichnis nicht gefunden)_

 The file itself is correctly uploaded in the upload-dir

 I used the howto from
 http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=101468178609584w=
2 but only getting the error above.

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

2002-06-03 Thread John Austin

On Monday 03 June 2002 09:45 am, you wrote:
  From: Graaf, Edgar de (fin) [mailto:[EMAIL PROTECTED]]
  It sounds a lot like cocoon, it is much smaller (about 1 MB
  zipped).

 It sounds like stripped down Cocoon 1...

Sounds like closed source too. 

-
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: SQL, Actions, ESQL Help Please!!!

2002-06-03 Thread John Austin

On Monday 03 June 2002 01:50 pm, you wrote:
 On 03.Jun.2002 -- 10:11 AM, daniel robinson wrote:
  Hi,
 
  I've been poking around but I'm clueless (yes, generally as well as
  specifically).

I have some code that simply uses embedded Java in an XSP and a Java 
temp file. This code processes a File that is submitted by the user's 
Applet simulating a FORM with method=PUT.  The user's FILE parameter is 
an XML document produced by the applet. I have to insert the DTD stuff 
because the Serializer I am generating this file from doesn't generate 
the DTD statements.

After the file is pulled into a string and written to a File, I add it 
to my PostgreSQL database as a BLOB.


?xml version=1.0 encoding=ISO-8859-1?

xsp:page
language=java
create-session=yes
xmlns:xsp=http://apache.org/xsp;
xmlns:session=http://apache.org/xsp/session/2.0;
xmlns:xsp-request=http://apache.org/xsp/request/2.0;
xmlns:xsp-response=http://apache.org/xsp/response/2.0;
xmlns:log=http://apache.org/xsp/log/2.0;

  xsp:structure
xsp:includejava.io.*/xsp:include
xsp:includejava.sql.*/xsp:include
  /xsp:structure
page
  content
  xsp:logic
  File output = null;
try {

String username = (String)
session:get-attribute name=username default=nobody /;
//System.err.println( username= + username );

String filename = 
xsp-request:get-parameter name=FILENAME /;
//System.err.println( filename= + filename );

String config_data = 
xsp-request:get-parameter name=FILE /;
//System.err.println( config_data= + config_data );

int position = config_data.indexOf( ![CDATA[product]] );

StringBuffer saveString = new StringBuffer( config_data.substring( 0, 
position ) );
![CDATA[
saveString.append( !DOCTYPE product [\n +
!ELEMENT product (page+)\n +
!ELEMENT children (page+)\n +
!ELEMENT Company EMPTY\n +
!ELEMENT page (#PCDATA | Company | children)*\n +
!ATTLIST page level (1 | 2 | 3 | 4 | 5 | 8 ) #REQUIRED\n +
   target CDATA #REQUIRED\n +
   checkbox (true | false) #REQUIRED\n +
\n +
]\n );
]]
saveString.append( config_data.substring( position) );

output = File.createTempFile( phoenix_, .xml );

FileWriter fw   = new FileWriter( output );

fw.write( saveString.toString() );

fw.close();

try {

Class.forName( org.postgresql.Driver );

Connection conn = 
DriverManager.getConnection( 
jdbc:postgresql://192.168.1.100:5432/test, postgres,  );

Statement stmt = conn.createStatement();

String update_statement = UPDATE user_products SET 
product_file=lo_import( \' + output.getAbsolutePath() + \')  +
  where name = \' + username + \' +
   AND productname = \' + filename + \';

//System.err.println( Update statement:  + update_statement );
int rows =  stmt.executeUpdate( update_statement );

//System.err.println( Rows updated:  + rows );

stmt.close();
conn.close();
}
catch(ClassNotFoundException e ) {
System.err.println( Caught:  + e );
e.printStackTrace();// @@@ ToDo exit properly
}
catch(SQLException sqle ) {
System.err.println( Caught:  + sqle );
sqle.printStackTrace(); // @@@ ToDo exit properly
}
}
//output.delete();
catch( Exception e ) {
System.err.println( Caught:  + e );
e.printStackTrace();
}
/xsp:logic
session:set-attribute name=TEMPFILENAME
xsp:logicxsp:exproutput.getAbsolutePath()/xsp:expr/xsp:logic
/session:set-attribute
para
TEMPFILENAME=session:get-attribute name=TEMPFILENAME /
/para
/content
/page
/xsp:page



-
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 startup problem

2002-06-03 Thread John Austin

On Monday 03 June 2002 04:24 pm, you wrote:
 I am using SDK 1.4.0 and Tomcat 4.0.3. I just installed Cocoon 2.0.1
 on a Windows 2000 machine as the directions indicate, but I get a

Without being specific, I will state for you that SDK 1.4.0 appears to 
be problematic with respect to Cocoon and JDBC. You could look for it 
in the mail archives pointed to on http://xml.apache.org/cocoon/

The last time I checked the Cocoon Web site advises against Tomcat 4.0.3
and suggests 4.0.4-b2 or -b3 or somesuch.

Windoze 2000 ... I have no  experience with ...

I was recently unable to connect Apache 2.0.36 ? to Tomcat 4.0.4-b3
and reported a problem finding the connectors. I just use it on port 80 
(sucks, but hey BSD sockets are S ancient)



-
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: 404 not found

2002-06-03 Thread John Austin

On Tuesday 04 June 2002 01:13 am, you wrote:
 Hi all

 Im am trying to use cocoon in conjunction with apache tomcat to serv
 xml pages.  When trying to access .xml pages a 404 error is reported
 even tho the page exists.  I am using cocoon 2.0.2, j2sdk1.4.0,
 tomcat 3.3.1 and apache 1.3.22.  I am using mod_jk and ajp13 to pass
 requests from apache to tomcat.

What is in the logs ? (.../cocoon/WEB-INF/logs/ ...)

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




Database Action assistance request.

2002-05-28 Thread John Austin

I have been poking around trying to find out whether 
DatabaseSelectAction can help me. 

There is very little written about this action and I wonder whether it 
has ever been used (or even tested).

My problem is as follows:

I have a column in a table in a database that I am able to access from 
XSP and Java with no problems. In the interest of elegance I would like 
to make the item available to an XSLT Transformation as a parameter. 

All I want to do is supply the key column 'name', get the corresponding 
row and then use the value of the field 'company' later in my pipeline 
as: {company}.

Sitemap.xmap contains: 

 map:actions
  map:action name=select-user logger=databaseselectaction
src=org.apache.cocoon.acting.DatabaseSelectAction/
/map:actions

And the matching pipeline entry is:

  map:match pattern=process
!-- first validate whether user has logged in --
map:act type=session-validator
  map:parameter name=descriptor
value=context://alpha/descriptors/params.xml/

  map:parameter name=validate value=username/
  !-- generate protected content --
  map:act type=form-validator
map:parameter name=descriptor 
value=context://alpha/descriptors/getfiles_form.xml/

map:parameter name=validate value=filename/

!-- form-validation success --

map:act type=select-user
  map:parameter name=descriptor 
value=context://alpha/descriptors/getuser.xml/

  map:generate type=serverpages src=docs/process.xsp/
  map:transform src=stylesheets/dynamic-page2html.xsl
  /map:transform
  map:serialize/
/map:act
  /map:act

  !-- form-validation failure --
  map:redirect-to uri=pickdoc/

/map:act
!-- session-validation failed == redirect to login-page --
map:redirect-to session=true uri=login/
  /map:match


The value username is captured by a form earlier in the session and 
exists as a session attribute.



root
  parameter name=username type=string nullable=no/
  !--parameter name=company type=string/--

  connectionphoenix/connection
  table name=users
keys
  key param=username dbcol=name type=string mode=form/
/keys
values
  value param=company dbcol=company type=string/
/values
  /table
/root

I include the username in the URL as I don't know how else to supply it 
to the Action. 

I have read the databaseSelectAction code and understand how the SELECT 
statement is generated. 

I have recompiled cocoon.jar with additional  getLogger().debug( 
yadayadayada. ) statements but these never generate output. Anyone 
care to tell me why ?

I have had some success with cocoon but I am finding it difficult to 
get through to some advanced features because of the sparse 
documentation.



-
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: cannot deploy on JBoss 3

2002-05-27 Thread John Austin

On Monday 27 May 2002 06:14 am, you wrote:
 htmldiv style='background-color:'DIVHi,/DIV
  ... snip ...

Charles, not everyone reads HTML. I use KMail and have HTML turned off

-
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: cannot deploy on JBoss 3

2002-05-27 Thread John Austin

On Monday 27 May 2002 11:11 am, you wrote:
 Sorry,

 its that mingin' Hotmail...(I can only use KMail from home) - didn't
 realise it defaulted to HTML. In fact no messages came through
 anyway, so maybe Hotmail is barred...

 I sent it again from a better accountstill frustrated by 2 days
 of problems.

I would expect that you can only post from the address you used when 
you joined the list. Otherwise, the list server can't know you are a 
valid person.

-
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: renewed Newbie Question

2002-05-27 Thread John Austin

On Monday 27 May 2002 03:41 pm, you wrote:



 Well at first thank you for that suggestion. But i think it does not
 exactly match what i wan't to do using cocoon. See the following
 example:

 http://localhost:8080/cocoon/samples/hello/hello-page.xml

Umm ... could you put in a hostname that points to your site.
'localhost' is different for everybody.

-
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: Socket write error apache tomcat cocoon

2002-05-26 Thread John Austin

On Sunday 26 May 2002 06:29, you wrote:
 Hi,

 I'm having a intermetint problems where I'm getting a
 SocketException, socket write error response. The
 configuration is apache and tomcat4.03 with cocoon
 2.02 on Windows 2000 Advanced server. Below is the
 stack trace.

You might get lucky and someone will answer your query but I thought 
I'd send this as well (instead?):

You could trace this with 'ethereal' (ethereal.com) but that is a 
pretty heavy duty tool. I found this soimewhere recently:

In Apache SOAP there is a class that might help trace your socket stuff:

java -classpath soap.jar org.apache.soap.util.net.TcpTunnel.Gui 3 \ 
localhost 80

Treat the listen-port (3) like a proxy and you will be able to 
follow your traffic easily enough. I haven't looked inside for any 
options but it would seem to me to be reasonable that you could add the 
return codes from socket calls to the output quite easily.

-
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: AW: Question: what is {session-id} ? in a sitemap.xmap ?

2002-05-24 Thread John Austin

Thanks. Some of this is starting to become clearer. Unfortunately, it 
seems that the only way to learn Cocoon is to read the source code. 
That isn't going to cut it for much longer. 

It would be nice if there were a list of all of the similar variable 
types and their purposes and how to set them and use them. Perl becomes 
understandable (well ... a bit) when the different types of name are 
explained. 

 unfortunately, it is not enough to set 'fred' as a session attribute,
 who would have to set
 it as a sitemap parameter just as Artur said.
 You can do this inside an action (actions return a java.util.Map and
 you can use the keys
 stored in it as sitemap parameters. I don't know if it is there in
 2.0.1 but in 2.0.2 you can look
 in the docs under User Guide / Concepts / Actions and there at
 'Communication between Sitemap
 and Action'.
 As Artur also pointed out you can call a resource with some
 parameters which you can then use as
 sitemap parameters inside the map:resource tag.

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




Question: what is {session-id} ? in a sitemap.xmap ?

2002-05-23 Thread John Austin

I have been using Cocoon 2.0.1 for a few months now and have run into a 
few brick walls. The most serious limitation is the lack of 
documentation for just about everything. I have worked through a number 
of problems in the past but am currently frustrated by a number of 
questions.

I have often seen expressions in the sitemap like {session-id} and 
{target}. it is clear that these are variables substituted from 
somewhere magical but I cannot for the life of me imagine what.

Can anyone explain where I can find the documentation for these 
constructs ? I suspect that I can use these items to transfer 
information in to parameter lists but need to understand this aspect of 
Cocoon before I can do it.

Thanks.

-
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: Question: what is {session-id} ? in a sitemap.xmap ?

2002-05-23 Thread John Austin

On Thursday 23 May 2002 18:23, you wrote:

Thanks. It is pretty clear that {name} is a variable. My question 
should have been: How do I discover the valid values for {name} ?
The example I was looking at used {session-id} which is intuitively 
linked to the session-id I would get from session:get-attribute 
name=session-id/. Is my inference correct? Does it therefore follow 
that I can use any attribute from the session context ? If I set a 
session attribute named 'fred' with the value 'flintstone' does {fred}
evaluate to 'flintstone' in a sitemap ?

Is the definition of {name} documented anywhere ? Is there any way of 
enumerating defined names ? 

From what I know, basically {name} is a representation of
 a sitemap parameter which are used by sitemap components.
 For example, if your pipeline wants to call another (resource)
 pipeline you with a target parameter you would do it this way
 map:call resource=simple-page
  map:parameter name=target value=some/path/to/something/
 /map:call

 now in your simple-page pipline you can access that target
 paramter with {target} so you can have:
   map:resource name=simple-page
  map:generate type=file src={target}.xml/
  map:transform src=stylesheets/page/simple-page2html.xsl
 map:parameter name=view-source value={target}.xml/
  /map:transform
  map:serialize/
   /map:resource

 Also, if you implement actions the return of the act() method
 is a map that will be added to the session paramters.
 In your action of you do
 sitemapParam.put(session-id, getSessionID()); then
 in your pipeline you can do
 map:match pattern=something
   map:act type=my-action
map:generate src=something/{session-id}/
 ...
  /map:act
 /map:match


-
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: Just starting COCOON

2002-04-14 Thread John Austin

On Friday 18 January 2002 09:13, you wrote:
 I got it up and running, the documentation must be written better in
 Italian because the English version is Terrible!  Thank you very much
 for your help...

The Cocoon Docs are better than the documentation I have written so far 
for the project I am prototyping with Cocoon.

There is a useful web site: http://www.cocooncenter.com/cc/ that is a 
nice start. It may become quite useful. Take a look at the 'Chello' 
project at sourceforge too. 

-
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: FOP debug message meaning

2002-04-10 Thread John Austin

On Tuesday 09 April 2002 15:04, you wrote:
 When running FOP without turning off the debug information written to
 the standard out, text such as this is printed when FOP finishes
 rendering a PDF page:

 Parsing of document complete, stopping renderer
 Initial heap size: 111343Kb
 Current heap size: 107377Kb
 Total memory used: -3966Kb
   Memory use is indicative; no GC was performed
   These figures should not be used comparatively
 Total time used: 5562ms
 Pages rendererd: 10
 Avg render time: 556ms/page


 Most of the info, like total time, average time, etc is
 self-explanatory. But could somebody please explain the meanings of
 the heap and memory size lines?

.. snip ..

Are you asking what a heap is ? or just what the values relate to ?

I use Fop from Cocoon and for my 600k input file C2 uses up over 300Mb 
some times. When I run the same XSL style sheets from a simple (perl) 
driver script, memory usage does not exceed 50Mb.

My C2 machine is a Mandrake 8.0 K6-2 500MHz with 512Mb real memory.
When I was running Cocoon 2.0 with only 256Mb the box died on older 
versions of the stylesheets. I will move to servlets from C2 only if 
this does not get better. 

Anyone else feel that

-
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: what is the easiest way to delopy cocoon application?

2002-04-01 Thread John Austin

On Saturday 09 March 2002 05:16, you wrote:
 On Saturday 09 Mar 2002 8:28 am, John Austin wrote:
  Take a look at http://sourceforge.net/projects/Chello

 should read chello

Sorry. That's right. I've been using chello myself now. Good place to 
start.

-
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: Strange problem around protected area example Complement

2002-03-28 Thread John Austin

On Thursday 28 March 2002 11:03, you wrote:

The example quoted looks like a multi-valued parameter. 

See getParameterValues() in the javax.servlet.ServletRequest class.

-
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: Urgent: Problems in including XML fragment in XSP o/p

2002-03-27 Thread John Austin


 The XSP code snippet is
 
   area
   subarea
   xsp:expr
   itemsXML
 /xsp:expr
   /subarea
   /area
 -
 If I do as above the contents of itemsXML is treated as String only
 and not as XML and hence will not undergo transformation

I was trying to solve a similar problem last week. I have an XML doc 
that I stuff into the session context at one point and I needed to pull 
it out and feed it to a simple XSLT transformation pipeline.

The documentation and the mail archive seemed to suggest that I was 
attempting some sort of pagan rite that had been banned to preserve 
theological purity. I had to fall back on an ancient technology: 
JavaServer Pages. The first version of this code was written as a 
servlet and I needed to get the servlet functionality to work quickly.

The example JSP's in C2 work quite well and I wrote a JSP that did 
exactly what I needed. [Nice to know that a JSP becomes a servlet.]

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




Solved a problem: Redirect extension to Xalan

2002-03-27 Thread John Austin

This note is mostly for the benefit of anyone else searching for help 
with Redirect. Sorry if Xalan is a bit off topic for Cocoon2, but I 
expect that a lot of XSLT users will be using Cocoon as a framework for 
Xalan-J/XSLT-based applications.

I spotted Redirect in Chapter 8(?) of XSLT by Doug Tidwell, August 
2001, O'Reilly and Associates. It does work in Cocoon2 but I had a few 
problems getting it to run. I finally solved it by looking at the 
Xalan-J docs at xml.apache.org as well as the source code for Redirect.

The Redirect class seems to have moved from 
org.apache.xalan.xslt.extensions.Redirect to the more concise
org.apache.xalan.lib.Redirect.

The comments in Redirect are actually useful! (thank you Mr Boag!)

It appears that you need to include several namespaces in the 
stylesheet tag. This was another source of 'the fog of war' for me.

xsl:stylesheet version=1.0
xmlns:lxslt=http://xml.apache.org/xslt;
xmlns:redirect=org.apache.xalan.lib.Redirect
extension-element-prefixes=redirect
... rest omitted ...

This did not work for me when I followed examples from various sources.

I have one minor complaint about Redirect (may apply to all extensions).
This facility is terrific but it is strangely silent when things go 
wrong. For example, I used file=concat(... at one point and created a 
directory named concat(

When I had mis-spelled namespace URI's nothing worked and it did so 
silently. When the lxslt declaration was missing ... same thing. I know 
I had perms wrong and was rewarded again with silence.

Thanks again. Hope this helps.


-
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: what is the easiest way to delopy cocoon application?

2002-03-09 Thread John Austin

On Thursday 07 March 2002 02:20, you wrote:
 What is the easiest way to delopy cocoon application (including
 database)?

 Create a web application archive (WAR) file? If yes, how can I create
 one for my cocoon application (including database)?

Take a look at http://sourceforge.net/projects/Chello it is supposed to 
be a minimalist C2 application. You probably want to clone it as a 
basis for your application (assuming Apache-ish license).

-
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: sent request to servlet from VB

2002-03-08 Thread John Austin

On Friday 08 March 2002 14:49, you wrote:
 Hi all,

 Does anyone know how to call a servlet from VB code?  I want to sent
 the request from IIS to Tomcat without using isapi_redirect.dll.  Is
 possible to do this?  I look forward to your suggestions.


You need to be able to open a socket connection to the appropriate port 
on the appropriate server. Then you send an HTTP message that looks 
like:

GET /servletNameFromTheURL HTTP/1.0 

followed by several lines of the appropriate HTTP headers. The server 
will respond by sending a response containing headers followed by some 
data. The server will finish up by closing the connection.

You can do this from VB code. The only question is what level of 
technical sophistication you bring to the keyboard. You might check out 
some Visual Basic resources on the net. There is almost no difference 
between communicating with a servlet and communicating with most other 
forms of web resource (speed of the response might be better than an 
equivalent CGI). You need to understand how to send an HTTP request and 
how to receive and process the server's HTTP response. 


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