DO NOT REPLY [PATCH QUEUE] Summary March 22 2003

2003-03-21 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:  28 
***


---
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
---
12173:[PATCH] SQLTransformer Query object prematurely closes conne
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12173

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
---
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
---
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]
RESOLUTION:  
STATUS:  NEW
---
15100:[patch]/[donation] Sample app xml form popup with sourcewrit
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15100

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
15150:[PATCH]: HSSFSerializer Support for Gnumeric MergedRegions
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15150

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
15525:[PATCH] simple patch to add fallback element in XIncludeTran
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15525

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

REVIEWER:[EMAIL PROTECTED]
RESOLUTION:  
STATUS:  NEW
---
16262:[Patch] new MultiPartFileAction
---
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16262

REVIEWER: 

OpenOffice Flat-XML and XIndice

2003-03-21 Thread Stephan Meinl
Hi folks,
I am working on an CMS with OpenOfficeWriter and Xindice. I am using the
FlatXML-Filter of OpenOffice to produce raw XML which I wanted to store
in Xindice and retrieve it with Cocoon. Everthing seemed to work fine
until I tried to retrieve such a document via Cocoon. (Retrieval from a
JAVA-program works fine.) When I type something like
http://localhost:8080/cocoon/xmldb/xaps/test.xml I get a loud complaint
from the browser saying that only the XML-Declaration was given back and
the root element is missing.
I tried the same with parts of the document (i.e. settings.xml or
content.xml) which worked fine even with Cocoon. Only if I try to get
the whole thing it doesn't work.
Testing with Alexander Schatten's "XIndice-Browser" also works.
There is nothing special with that document - does anyone have an idea
what went wrong in Cocoon?

Environment is: Cocoon 2.0.4, Tomcat 4.1.18, WinXP Prof., Xindice 1.0
Stacktrace in Tomcat log says:
2003-03-21 23:38:25 StandardWrapperValve[Cocoon2]: Servlet.service() for
servlet Cocoon2 threw exception
java.lang.IllegalStateException
at
org.apache.coyote.tomcat4.CoyoteResponseFacade.reset(CoyoteResponseFacad
e.java:251)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1115)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247

I am not that experienced with JAVA to say whether this message is the
reason. Can anyone help?
Thanks a lot,
Stephan



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



Re: Problems basic-link in xsl-fo

2003-03-21 Thread J.Pietschmann
Jessica Niewint wrote:
No, for me it is even impossible to build the PDF. So I will rebuild 
cocoon this afternoon. May something is wrong.
It seems that the tag basic-link is non know or accepted by the PDF.
We got also problems to display a gif . And this on to different servers 
with two different cocoon releases. May there is a connections. Since I 
am not a "Cocoon-Specialist" , there could be also something wrong with 
the sitemap.
Unlikely.

For me is only strange that everything work fine, only if I 
try to use the basic-link tag I got the message that the PDF is damaged. 
I really do not have a clue ...
Well, that's common.

The general strategy is to reduce the complexity of the problem:
1. Get your source XML as a file, if you don't have already.
2. Get a FOP binary distribution. Read the docs on how to run the
  command line application and the standalone XSLT transformation
http://xml.apache.org/fop/running.html
3. Run your source XML with your XSLT through Xalan, as described,
  in order to get a FO file. Are there problems at this point?
4. Run FOP on the FO file from the last step. Are there problems?
5. Check the FOP FAQ
  http://xml.apache.org/fop/faq.html
J.Pietschmann

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


content management systems - who is using a cms with cocoon?

2003-03-21 Thread Chris Dietz


Anybody using a CMS(content management system) with Cocoon?

I would like to hear what you are using.

I am looking into Wyona/Lenya and forrest.

-chris

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



[ANN] New Cocoon Training Dates

2003-03-21 Thread Lajos
Hi folks -

I'll be offering my two Cocoon classes again this spring, in Colorado 
(US). Cocoon Fundamentals will be from 4/22-23, followed by Advanced 
Cocoon from 4/24-25. Course details and registration info can be found 
at http://www.galatea.com/training/courses. We'd like 5 participants in 
each class and so far have 3 in each.

I will most likely be giving a summer course as well, so let me know if 
you are interested.

Regards,

Lajos
[EMAIL PROTECTED]
800.711.4901


   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)
   _  _
  / \ /
 /___\  /
/ \   /
 http://www.galatea.com -- powered by AzSSL

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


SOLVED: Re: AW: Antwort: Multiple pdf with one match?

2003-03-21 Thread Eric di Domenico
Here is how to write a pdf(more or less because I am attempting to 
print but this should work for writing a PDF)

Sitemap:







test.xml:

http://apache.org/cocoon/source/1.0";>

http://www.w3.org/1999/XSL/Format"; 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
	
		
			
		
	
	
	
		
			Hello I am the printer
		
	




This means it's possible to create files and save them on the server 
before returning from the pipeline and as soon as I get my 
PrintSource working then printing will also be possible without having 
any ugly Javascript hack

Ciao

Eric

On Vendredi, mars 21, 2003, at 09:58 America/Montreal, Eric di Domenico 
wrote:

I disagree,

I bet you can do this with a FileSource and the pdf serializer 
don't exactly know how yet... but I am working on something right now 
to be able to print from the server.

I will post something on the subject if I get it to work later today

Ciao

Eric

On Vendredi, mars 21, 2003, at 09:04 America/Montreal, Scherler, 
Thorsten wrote:

Thanks Manfred.

One Request - One Response! You are so right!

So really no work around! -> Ok, back to JavaScript!

Thanks again
Thorsten
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 21. März 2003 14:59
An: [EMAIL PROTECTED]
Betreff: Antwort: Multiple pdf with one match?


Hi Thorsten!

There is one big Problem: ONE request ends up in ONE response, there 
is no
way around! (http standard)

But...

if you submit your form to a pipeline which produces a frameset 
splitted up
in three areas, every area could call the real pipeline for producing 
PDF

Your idea doing it by JavaScript with three new windows is also 
pssible!

regards
manfred


[EMAIL PROTECTED] am 21.03.2003 14:30:51

Bitte antworten an [EMAIL PROTECTED]@inet

An:  [EMAIL PROTECTED]
Kopie:
Thema:   Multiple pdf with one match?
Hello group,

I want to do the following:
I have on html-Form where I put the date. With this date there should 
be
called 3 different piplines resulting 3 DIFFERENT pdf files.

Some thoughts:
I thought about open 3 different browser windows where each is for one
resulting pdf.
I can do that with JavaScript but would prefer to do it server sided.
Any ideas or links or hints?

King regards
Thorsten
Mit freundlichem Gruss,

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

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








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


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


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


Re: Redirection limit exceeded & IBM Java2 SDK 1.4

2003-03-21 Thread Maxime Levesque
  I experienced the same thing, and haven't found why IBM's jdk behaves 
this way,
I'm curious to know, but too lazy to investigate ;)

Kochin Chang wrote:

 Hi,

There appears to be a problem with the combination of Cocoon 2.0.4 and 
IBM Java2 SDK 1.4. Recently I installed a server with following 
components:
+ Red Hat Linux 7.3
+ IBM Java2 SDK 1.4
+ Tomcat4 4.1.18
+ Cocoon 4.0.2

After copied cocoon.war into the tomcat4's webapps folder, restarted 
tomcat4, and entered http://localhost:8080/cocoon/ into my browser, I 
received a "Redirection limit exceeded" pop-up message. Then I tested 
the link http://localhost:8080/cocoon/welcome, and got a "Resource not 
found" error. I checked cocoon's logs, but could not find anything 
suspicious.

It turned out that IBM Java2 SDK 1.4 is the culprit. Once I replaced 
it with Sun SDK 1.4.1, cocoon's welcome screen came up successfully, 
and all links works as expected.

Is this a known issue? Is there a workaround to this?

Regards,
Kochin Chang


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


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


Re: cocoon-view as possible security problem?

2003-03-21 Thread Tony Collen
On Fri, 21 Mar 2003, Geoff Howard wrote:



> >>So, at the end, I would do:
> >>
> >>1) turn off views from the default sitemap. NOTE: this will turn off the
> >>ability to make static snapshots of your webapp from the cocoon CLI!

Well, this is obviously not good for us... so...

> >>2) write a pretty detailed comment in the default sitemap telling what
> >>views are, how they work briefly and what potential security issues do
> >>they make.

This is probably the best idea.  I would *really* hope someone who is
deploying Cocoon in a production environment would at least be able to
read the sitemap in this spot :^)

> >>3) keep the view parameter name hardcoded as it is.
> >>
> >>Thoughts? anybody against this?

In retrospect, my idea for being able to change the parameters was not a
good idea... and it would add unneeded complexity to everything.  #2 is
the best (and easiest) IMO.


Tony


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



Redirection limit exceeded & IBM Java2 SDK 1.4

2003-03-21 Thread Kochin Chang
 Hi,

There appears to be a problem with the combination of Cocoon 2.0.4 and 
IBM Java2 SDK 1.4. Recently I installed a server with following components:
+ Red Hat Linux 7.3
+ IBM Java2 SDK 1.4
+ Tomcat4 4.1.18
+ Cocoon 4.0.2

After copied cocoon.war into the tomcat4's webapps folder, restarted 
tomcat4, and entered http://localhost:8080/cocoon/ into my browser, I 
received a "Redirection limit exceeded" pop-up message. Then I tested 
the link http://localhost:8080/cocoon/welcome, and got a "Resource not 
found" error. I checked cocoon's logs, but could not find anything 
suspicious.

It turned out that IBM Java2 SDK 1.4 is the culprit. Once I replaced it 
with Sun SDK 1.4.1, cocoon's welcome screen came up successfully, and 
all links works as expected.

Is this a known issue? Is there a workaround to this?

Regards,
Kochin Chang


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


Any Cocoon People in Berlin, Germany?

2003-03-21 Thread Ines Robbers
Hallo!

Gibt es hier in der Liste Cocoon-Kenner aus Berlin?
Ich bin auf der Suche nach MitstreiterInnen für ein Gründungsprojekt.

Freue mich auf Antwort!

Ines



Hi there,

Are there any people from Berlin working with Cocoon and interested in
meeting up?

Ines



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



RE: transform xsp generated xml to pdf

2003-03-21 Thread Frank Daly
Thanks a million Joerg, 

That worked.

Enjoy your weekend,

Frank

-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED] 
Sent: 21 March 2003 16:40
To: [EMAIL PROTECTED]
Subject: Re: transform xsp generated xml to pdf

Hello Frank,

it's good to hear, that at least the static XML works. So there are not
more 
so many possibilities. If 'test2.pdf' works (returns a PDF), something
must 
be wrong with the other pipeline. Did you really request 'result.xml'?
If 
you get XML with this request, there must be another matching pipeline,
i.e. 
not the one below is used.

Can you temporarily clean up your sitemap (remove all pipelines) and add

some test pipelines:


 
 


This one should return the XML you already have as static file.


 
 
 


This one should return the XSL FO representation of the latter PDF.


 
 
 


And this one should return the PDF itself.

Try to request 'result.xml', 'result_fo.xml' and 'result.pdf' in the
browser 
and see what you get.

Regards,

Joerg

Frank Daly wrote:
> Thanks for your post Joerg
> 
> My pipeline is 
> 
>
>  
>   
>  
>   
> 
> The funny thing is I copied the XML from IE6 into a text file,
deleteted
> the minus signs, set up a new pipeline as below and this works.
> 
>  
>  
>   
>  
>   
> 
> Frank
> 
> 
> -Original Message-
> From: Joerg Heinicke [mailto:[EMAIL PROTECTED] 
> Sent: 21 March 2003 15:45
> To: [EMAIL PROTECTED]
> Subject: Re: transform xsp generated xml to pdf
> 
> Hello Frank,
> 
> Frank Daly wrote:
> 
>>Hi
>>
>>I have worked through Leigh Dodds, IBM Developer Works, excellent
>>tutorial
>>showing how to use cocoon to query databases.  I am able to generate
> 
> the
> 
>>xml data and output this in IE6.  My problem starts when I try to
>>transform this data to xsl:fo and then pdf.
>>
>>My xml file contains child nodes.  The xml outputted to IE6 contains
>>minus
>>signs, -, to allow a user to close the parent node and hide the child
>>nodes.
>>Could it be these minus signs that prevents the pdf file being
>>generated?
> 
> 
> Uh? What has the presentation in IE6 to do with the XML itself? IE
only 
> transforms the XML it gets to the HTML with the minus signs you see
when
> 
> viewing XML in IE. If you see such a page without any error message
from
> IE, 
> it's correct XML.
> 
> In which way did you try to get PDF? You must transform your XML into
> XSL 
> FO, which can then be serialized to PDF. How does your pipeline look
> like?
> 
> 
>>I just get a blank screen.  I'm using tomcat 4.1.18 and cocoon 2.
>>
>>If there is an example on the web, I'd appreciate a link.
>>
>>TIA
>>
>>Frank
> 
> 
> Regards,
> 
> Joerg
> 

-- 

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de


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


---Legal
Disclaimer---

The above electronic mail transmission is confidential and intended only
for the person to whom it is addressed. Its contents may be protected by
legal and/or professional privilege. Should it be received by you in
error please contact the sender at the above quoted email address. Any
unauthorised form of reproduction of this message is strictly
prohibited. The Institute does not guarantee the security of any
information electronically transmitted and is not liable if the
information contained in this communication is not a proper and complete
record of the message as transmitted by the sender nor for any delay in
its receipt.





---Legal  Disclaimer---

The above electronic mail transmission is confidential and intended only for the 
person to whom it is addressed. Its contents may be protected by legal and/or 
professional privilege. Should it be received by you in error please contact the 
sender at the above quoted email address. Any unauthorised form of reproduction of 
this message is strictly prohibited. The Institute does not guarantee the security of 
any information electronically transmitted and is not liable if the information 
contained in this communication is not a proper and complete record of the message as 
transmitted by the sender nor for any delay in its receipt.




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



xform repeat and java beans: null pointer exception

2003-03-21 Thread Barber, Dan
Title: xform repeat and java beans: null pointer exception






Hi,


There might be a simple solution to this problem, but I have not been able to find it.  Here is the problem:


I have a Java Bean that returns an array of objects.  I try to display the list using the xf:repeat in an xml file.  Here's the bean, xml and sitemap entries:

--

Cocoon version 2.1 latest CVS files

---

Notes: I have all log levels set to DEBUG.  I haven't found any useful info listed in the log file.


-

start.xml

--




http://xml.apache.org/cocoon/xmlform/2002">




Dummy

    


   

    

  







--

Bean

--

public class RuleSetHelperBean

{

    public RuleSetHelperBean() 

    {

        dummys[0] = new String("blah1");

        dummys[1] = new String("blah2");

    }


    public String[] getDummys()

    {

        return dummys;

    }


    public String getDummys(int idx)

    {

        return dummys[idx];

    }


    protected String dummys[] = new String[2];

}


--

Sitemap entries (relevant to this problem)

--



  

.

  

    


  

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

  

  

  

  


-

Browser exception

-

An error occurredorg.apache.cocoon.ProcessingExceptionFailed to execute pipeline.org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.NullPointerExceptionOriginal exception : java.lang.NullPointerException at org.apache.xalan.transformer.TransformerIdentityImpl.flushStartDoc(TransformerIdentityImpl.java:888) at org.apache.xalan.transformer.TransformerIdentityImpl.startPrefixMapping(TransformerIdentityImpl.java:931) at org.apache.cocoon.xml.dom.DOMStreamer$NamespaceNormalizingDOMStreamer.startNode(DOMStreamer.java:442) at org.apache.cocoon.xml.dom.DOMStreamer$NamespaceNormalizingDOMStreamer.stream(DOMStreamer.java:259) at org.apache.cocoon.xml.dom.DOMStreamer.stream(DOMStreamer.java:173) at org.apache.cocoon.xml.XMLUtils.serializeNode(XMLUtils.java:230) at org.apache.cocoon.xml.XMLUtils.serializeNodeToXML(XMLUtils.java:181) at org.apache.cocoon.transformation.AbstractSAXTransformer.endRecording(AbstractSAXTransformer.java:496) at org.apache.cocoon.transformation.XMLFormTransformer.endTransformingElement(XMLFormTransformer.java:965) at org.apache.cocoon.transformation.AbstractSAXTransformer.endElement(AbstractSAXTransformer.java:355) at org.apache.cocoon.components.sax.XMLTeePipe.endElement(XMLTeePipe.java:124) at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:579) at org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespaceBinder.java:897) at 

Thanks!

Dan Barber






Re: transform xsp generated xml to pdf

2003-03-21 Thread Joerg Heinicke
Hello Frank,

it's good to hear, that at least the static XML works. So there are not more 
so many possibilities. If 'test2.pdf' works (returns a PDF), something must 
be wrong with the other pipeline. Did you really request 'result.xml'? If 
you get XML with this request, there must be another matching pipeline, i.e. 
not the one below is used.

Can you temporarily clean up your sitemap (remove all pipelines) and add 
some test pipelines:





This one should return the XML you already have as static file.






This one should return the XSL FO representation of the latter PDF.






And this one should return the PDF itself.

Try to request 'result.xml', 'result_fo.xml' and 'result.pdf' in the browser 
and see what you get.

Regards,

Joerg

Frank Daly wrote:
Thanks for your post Joerg

My pipeline is 

   
 
  
 
  
The funny thing is I copied the XML from IE6 into a text file, deleteted
the minus signs, set up a new pipeline as below and this works.
 
 
  
 
  
Frank

-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED] 
Sent: 21 March 2003 15:45
To: [EMAIL PROTECTED]
Subject: Re: transform xsp generated xml to pdf

Hello Frank,

Frank Daly wrote:

Hi

I have worked through Leigh Dodds, IBM Developer Works, excellent
tutorial
showing how to use cocoon to query databases.  I am able to generate
the

xml data and output this in IE6.  My problem starts when I try to
transform this data to xsl:fo and then pdf.
My xml file contains child nodes.  The xml outputted to IE6 contains
minus
signs, -, to allow a user to close the parent node and hide the child
nodes.
Could it be these minus signs that prevents the pdf file being
generated?


Uh? What has the presentation in IE6 to do with the XML itself? IE only 
transforms the XML it gets to the HTML with the minus signs you see when

viewing XML in IE. If you see such a page without any error message from
IE, 
it's correct XML.

In which way did you try to get PDF? You must transform your XML into
XSL 
FO, which can then be serialized to PDF. How does your pipeline look
like?


I just get a blank screen.  I'm using tomcat 4.1.18 and cocoon 2.

If there is an example on the web, I'd appreciate a link.

TIA

Frank


Regards,

Joerg

--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: transform xsp generated xml to pdf

2003-03-21 Thread Frank Daly
Thanks for your post Joerg

My pipeline is 

   
 
  
 
  

The funny thing is I copied the XML from IE6 into a text file, deleteted
the minus signs, set up a new pipeline as below and this works.

 
 
  
 
  

Frank


-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED] 
Sent: 21 March 2003 15:45
To: [EMAIL PROTECTED]
Subject: Re: transform xsp generated xml to pdf

Hello Frank,

Frank Daly wrote:
> Hi
> 
> I have worked through Leigh Dodds, IBM Developer Works, excellent
> tutorial
> showing how to use cocoon to query databases.  I am able to generate
the
> xml data and output this in IE6.  My problem starts when I try to
> transform this data to xsl:fo and then pdf.
> 
> My xml file contains child nodes.  The xml outputted to IE6 contains
> minus
> signs, -, to allow a user to close the parent node and hide the child
> nodes.
> Could it be these minus signs that prevents the pdf file being
> generated?

Uh? What has the presentation in IE6 to do with the XML itself? IE only 
transforms the XML it gets to the HTML with the minus signs you see when

viewing XML in IE. If you see such a page without any error message from
IE, 
it's correct XML.

In which way did you try to get PDF? You must transform your XML into
XSL 
FO, which can then be serialized to PDF. How does your pipeline look
like?

> I just get a blank screen.  I'm using tomcat 4.1.18 and cocoon 2.
> 
> If there is an example on the web, I'd appreciate a link.
> 
> TIA
> 
> Frank

Regards,

Joerg

-- 

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de


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


---Legal
Disclaimer---

The above electronic mail transmission is confidential and intended only
for the person to whom it is addressed. Its contents may be protected by
legal and/or professional privilege. Should it be received by you in
error please contact the sender at the above quoted email address. Any
unauthorised form of reproduction of this message is strictly
prohibited. The Institute does not guarantee the security of any
information electronically transmitted and is not liable if the
information contained in this communication is not a proper and complete
record of the message as transmitted by the sender nor for any delay in
its receipt.





---Legal  Disclaimer---

The above electronic mail transmission is confidential and intended only for the 
person to whom it is addressed. Its contents may be protected by legal and/or 
professional privilege. Should it be received by you in error please contact the 
sender at the above quoted email address. Any unauthorised form of reproduction of 
this message is strictly prohibited. The Institute does not guarantee the security of 
any information electronically transmitted and is not liable if the information 
contained in this communication is not a proper and complete record of the message as 
transmitted by the sender nor for any delay in its receipt.




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



RE: XSL and script code - please help

2003-03-21 Thread adam . kaczmarz
Hi,

I recommend:

http://www.zvon.org/
(very short, very useful and informative tutorials on XSLT)
http://www.w3.org/TR/xpath#corelib - list of functions.
http://www.mulberrytech.com/xsl/xsl-list/

hope it  helps, cheers, A.

> -is there a fract() function ? I know that a floor
> function exists. 
> 
> - But what about the loop ?
> 
> - What about passing variables to this code (and
> getting them back into the XSL script) ?
> 
> - Do I need further (script-)extensions to XSL to do
> this ?

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!


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



Re: transform xsp generated xml to pdf

2003-03-21 Thread Joerg Heinicke
Hello Frank,

Frank Daly wrote:
Hi

I have worked through Leigh Dodds, IBM Developer Works, excellent
tutorial
showing how to use cocoon to query databases.  I am able to generate the
xml data and output this in IE6.  My problem starts when I try to
transform this data to xsl:fo and then pdf.
My xml file contains child nodes.  The xml outputted to IE6 contains
minus
signs, -, to allow a user to close the parent node and hide the child
nodes.
Could it be these minus signs that prevents the pdf file being
generated?
Uh? What has the presentation in IE6 to do with the XML itself? IE only 
transforms the XML it gets to the HTML with the minus signs you see when 
viewing XML in IE. If you see such a page without any error message from IE, 
it's correct XML.

In which way did you try to get PDF? You must transform your XML into XSL 
FO, which can then be serialized to PDF. How does your pipeline look like?

I just get a blank screen.  I'm using tomcat 4.1.18 and cocoon 2.

If there is an example on the web, I'd appreciate a link.

TIA

Frank
Regards,

Joerg

--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: What produces those warnings mean? Can I suppress them?

2003-03-21 Thread Tsui, Alban
Yeah I have tried changing the log level to error instead of warn and it
seems to work but is there something that I need to worry about because of
that huge amount of warnings!? Everytime I hit the page again on my brwoser
I get a couple more of 

WARN(2003-03-21) 14:43.09:843   [core.manager]
 (/application/admin/en/test)
 HttpProcessor[21010][4]/ExcaliburComponentSelector: Attempted to release a
 null component.
WARN(2003-03-21) 14:43.09:843   [core.manager]
 (/application/admin/en/test)
 HttpProcessor[21010][4]/ExcaliburComponentSelector: Attempted to release a
 null component.

It would be better if I can suppress it at the root of the problem. Thanks
for your suggestion. 

Anyone else has any more ideas?

Cheers
Alban


-Original Message-
From: Girish Patil [mailto:[EMAIL PROTECTED]
Sent: 21 March 2003 15:10
To: [EMAIL PROTECTED]
Subject: Re: What produces those warnings mean? Can I suppress them?


Did you try changing the debug level in the web.xml of your implementation.?

"Tsui, Alban" wrote:

> I have got a simple xsp
> 
>language="java"
>   xmlns:xsp="http://apache.org/xsp";
> >
> 
> 
> 
> hello
>
> 
> 
> 
>
> with the following pipeline:
>
> 
>  src="lang/{1}/xsp/test.xsp"/>
> 
> 
>
> But I keep on getting the following warnings in my core.log. (my logkit is
> set to warning level) Anyone's got any clue to suppress these? I have
spent
> the whole day to try to track down the problem but I could not find
> anything. Could it be something in the sitemaps or cocoon implementation
> itself? My version of cocoon is 2.0.3.
>
> WARN(2003-03-21) 14:42.54:781   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
> an uninitialized ComponentLocator:
> org.apache.cocoon.generation.GeneratorSelector
> WARN(2003-03-21) 14:42.54:796   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
> an uninitialized ComponentLocator:
> org.apache.cocoon.transformation.TransformerSelector
> WARN(2003-03-21) 14:42.54:796   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
> an uninitialized ComponentLocator:
> org.apache.cocoon.serialization.SerializerSelector
> WARN(2003-03-21) 14:42.54:796   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
> an uninitialized ComponentLocator:
org.apache.cocoon.reading.ReaderSelector
> WARN(2003-03-21) 14:42.54:796   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
> an uninitialized ComponentLocator: org.apache.cocoon.acting.ActionSelector
> WARN(2003-03-21) 14:42.54:796   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
> an uninitialized ComponentLocator:
> org.apache.cocoon.matching.MatcherSelector
> WARN(2003-03-21) 14:42.54:796   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
> an uninitialized ComponentLocator:
> org.apache.cocoon.selection.SelectorSelector
> WARN(2003-03-21) 14:42.55:031   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
> an uninitialized ComponentLocator:
> org.apache.cocoon.generation.GeneratorSelector
> WARN(2003-03-21) 14:42.55:031   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
> an uninitialized ComponentLocator:
> org.apache.cocoon.transformation.TransformerSelector
> WARN(2003-03-21) 14:42.55:031   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
> an uninitialized ComponentLocator:
> org.apache.cocoon.serialization.SerializerSelector
> WARN(2003-03-21) 14:42.55:031   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
> an uninitialized ComponentLocator:
org.apache.cocoon.reading.ReaderSelector
> WARN(2003-03-21) 14:42.55:031   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
> an uninitialized ComponentLocator: org.apache.cocoon.acting.ActionSelector
> WARN(2003-03-21) 14:42.55:031   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
> an uninitialized ComponentLocator:
> org.apache.cocoon.matching.MatcherSelector
> WARN(2003-03-21) 14:42.55:031   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburCom

RE: XSL and script code - please help

2003-03-21 Thread Delis, Christopher E.
"for loops" and the use of variables (like in imperative languages like
C/Java) are implemented differently in xslt.  recursion is often used.  i
recommend doing a search on "functional programming" and "xslt" in google.
there are probably many examples of how to write "functions" similar to
yours in xslt..

-Original Message-
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 3/21/03 6:55 AM
Subject: XSL and script code - please help

Hi all,
 
I am currently developing a histogram (svg) to be
included in the Cocoon portal.
The current solution for generation of the SVG code is
XSL only. 

Now I would like to add an algorithm for
y-axis autoscaling (see 'pseudocode' below). I am not
sure how to do this in pure XSL e.g. 

-is there a fract() function ? I know that a floor
function exists. 

- But what about the loop ?

- What about passing variables to this code (and
getting them back into the XSL script) ?

- Do I need further (script-)extensions to XSL to do
this ?

Best regards,

Holger

***

iReg=1;

regA=10**floor((max-min)/#-of-tics);



iReg++;

reg9=regA*floor(min/regA);

reg8=reg9+#-of-tics*regA;

if(max>reg8){   (would exit the loop if <=)

if(fract(iReg/4)==0)

{regA=1.25*regA;}

else

{regA=2*regA;}

{



*

___
The ALL NEW CS2000 from CompuServe
 Better!  Faster! More Powerful!
 250 FREE hours! Sign-on Now!
 http://www.compuserve.com/trycsrv/cs2000/webmail/





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

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



RE: Castor and Cocoon

2003-03-21 Thread Lyall, Keith
Title: RE: Castor and Cocoon





Hi Gary,


If you look in the scratchpad area of the source (src\scratchpad\webapp\samples\castor) there is an example of how to do a Castor transformation. 

Keith.


-Original Message-
From: Howard, Gary [mailto:[EMAIL PROTECTED]]
Sent: 21 March 2003 14:09
To: '[EMAIL PROTECTED]'
Subject: Castor and Cocoon



I have a Java object that I am trying to turn into XML in my custom
generator class.  I am trying to use Castor to do this.  I am not sure how
to integrate Castor into the generator class.  My concern is how I set the
ContentHandler.  Does anyone have any input.  There was not much on the web
about this.


Thanks,
Gary


Custom generator:


public void generate() throws SAXException, IOException
    {
  try
  {
    ClaimActivity claim = new ClaimActivity();
    claim.setInsuredName("Joe Shmoe");


    // the org.xml.sax.ContentHandler is inherited
    // through org.apache.cocoon.xml.AbstractXMLProducer
    Marshaller.marshal(new ClaimActivity(), contentHandler);
  }
  catch (ValidationException valex)
  {
    valex.printStackTrace();
  }
  catch (MarshalException marex)
  {
    marex.printStackTrace();
  }
    }



Her is the error that I am getting:


   <101017>
<[ServletContext(id=546240
3,name=cocoon,context-path=/cocoon)] Root cause of ServletException
java.lang.NoClassDefFoundError: org/apache/xml/serialize/XMLSerializer
    at org.exolab.castor.xml.Marshaller.initialize(Marshaller.java:383)
    at org.exolab.castor.xml.Marshaller.(Marshaller.java:329)
    at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:665)
    at COPRGenerator.generate(COPRGenerator.java:43)
    at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(Ca
chingEventPipeline.java:258)
    at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(C
achingStreamPipeline.java:412)
    at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invo
ke(SerializeNode.java:148)
    at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNo
de.invokeNodes(AbstractParentProcessingNode.java:84)
    at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNod
e.invoke(PreparableMatchNode.java:164)
    at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNo
de.invokeNodes(AbstractParentProcessingNode.java:108)
    at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode..invok


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



  This electronic mail system is used for information purposes and is
  not intended to form any legal contract or binding agreement.
  The content is confidential and may be legally privileged. Access
  by anyone other than the addressee(s) is unauthorised and any
  disclosure, copying, distribution or any other action taken in
  reliance on it is prohibited and maybe unlawful

  All incoming and outgoing e-mail communications and attachments
  are scanned automatically by software designed to detect and remove
  any material containing viruses or other unauthorised content.  While
  we undertake best endeavours to ensure that this content checking
  software is up to date, recipients should take steps to assure themselves
  that e-mails received are secure.






Re: What produces those warnings mean? Can I suppress them?

2003-03-21 Thread Girish Patil
Did you try changing the debug level in the web.xml of your implementation.?

"Tsui, Alban" wrote:

> I have got a simple xsp
> 
>language="java"
>   xmlns:xsp="http://apache.org/xsp";
> >
> 
> 
> 
> hello
>
> 
> 
> 
>
> with the following pipeline:
>
> 
>  src="lang/{1}/xsp/test.xsp"/>
> 
> 
>
> But I keep on getting the following warnings in my core.log. (my logkit is
> set to warning level) Anyone's got any clue to suppress these? I have spent
> the whole day to try to track down the problem but I could not find
> anything. Could it be something in the sitemaps or cocoon implementation
> itself? My version of cocoon is 2.0.3.
>
> WARN(2003-03-21) 14:42.54:781   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
> an uninitialized ComponentLocator:
> org.apache.cocoon.generation.GeneratorSelector
> WARN(2003-03-21) 14:42.54:796   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
> an uninitialized ComponentLocator:
> org.apache.cocoon.transformation.TransformerSelector
> WARN(2003-03-21) 14:42.54:796   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
> an uninitialized ComponentLocator:
> org.apache.cocoon.serialization.SerializerSelector
> WARN(2003-03-21) 14:42.54:796   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
> an uninitialized ComponentLocator: org.apache.cocoon.reading.ReaderSelector
> WARN(2003-03-21) 14:42.54:796   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
> an uninitialized ComponentLocator: org.apache.cocoon.acting.ActionSelector
> WARN(2003-03-21) 14:42.54:796   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
> an uninitialized ComponentLocator:
> org.apache.cocoon.matching.MatcherSelector
> WARN(2003-03-21) 14:42.54:796   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
> an uninitialized ComponentLocator:
> org.apache.cocoon.selection.SelectorSelector
> WARN(2003-03-21) 14:42.55:031   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
> an uninitialized ComponentLocator:
> org.apache.cocoon.generation.GeneratorSelector
> WARN(2003-03-21) 14:42.55:031   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
> an uninitialized ComponentLocator:
> org.apache.cocoon.transformation.TransformerSelector
> WARN(2003-03-21) 14:42.55:031   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
> an uninitialized ComponentLocator:
> org.apache.cocoon.serialization.SerializerSelector
> WARN(2003-03-21) 14:42.55:031   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
> an uninitialized ComponentLocator: org.apache.cocoon.reading.ReaderSelector
> WARN(2003-03-21) 14:42.55:031   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
> an uninitialized ComponentLocator: org.apache.cocoon.acting.ActionSelector
> WARN(2003-03-21) 14:42.55:031   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
> an uninitialized ComponentLocator:
> org.apache.cocoon.matching.MatcherSelector
> WARN(2003-03-21) 14:42.55:031   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
> an uninitialized ComponentLocator:
> org.apache.cocoon.selection.SelectorSelector
> WARN(2003-03-21) 14:42.55:046   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Attempted to release a
> org.apache.cocoon.sitemap.DefaultSitemapComponentSelector but its handler
> could not be located.
> WARN(2003-03-21) 14:42.55:046   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Attempted to release a
> org.apache.cocoon.sitemap.DefaultSitemapComponentSelector but its handler
> could not be located.
> WARN(2003-03-21) 14:42.55:046   [core.manager]
> (/application/admin/en/test)
> HttpProcessor[21010][4]/ExcaliburComponentManager: Attempted to release a
> org.apache.cocoon.sitemap.DefaultSitemapComponentSelector but its handler
> could not be located.
> WARN(2003-03-21) 14:42.55:

What produces those warnings mean? Can I suppress them?

2003-03-21 Thread Tsui, Alban
I have got a simple xsp 

http://apache.org/xsp";
>



hello





with the following pipeline:







But I keep on getting the following warnings in my core.log. (my logkit is
set to warning level) Anyone's got any clue to suppress these? I have spent
the whole day to try to track down the problem but I could not find
anything. Could it be something in the sitemaps or cocoon implementation
itself? My version of cocoon is 2.0.3.


WARN(2003-03-21) 14:42.54:781   [core.manager]
(/application/admin/en/test)
HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
an uninitialized ComponentLocator:
org.apache.cocoon.generation.GeneratorSelector
WARN(2003-03-21) 14:42.54:796   [core.manager]
(/application/admin/en/test)
HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
an uninitialized ComponentLocator:
org.apache.cocoon.transformation.TransformerSelector
WARN(2003-03-21) 14:42.54:796   [core.manager]
(/application/admin/en/test)
HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
an uninitialized ComponentLocator:
org.apache.cocoon.serialization.SerializerSelector
WARN(2003-03-21) 14:42.54:796   [core.manager]
(/application/admin/en/test)
HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
an uninitialized ComponentLocator: org.apache.cocoon.reading.ReaderSelector
WARN(2003-03-21) 14:42.54:796   [core.manager]
(/application/admin/en/test)
HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
an uninitialized ComponentLocator: org.apache.cocoon.acting.ActionSelector
WARN(2003-03-21) 14:42.54:796   [core.manager]
(/application/admin/en/test)
HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
an uninitialized ComponentLocator:
org.apache.cocoon.matching.MatcherSelector
WARN(2003-03-21) 14:42.54:796   [core.manager]
(/application/admin/en/test)
HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
an uninitialized ComponentLocator:
org.apache.cocoon.selection.SelectorSelector
WARN(2003-03-21) 14:42.55:031   [core.manager]
(/application/admin/en/test)
HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
an uninitialized ComponentLocator:
org.apache.cocoon.generation.GeneratorSelector
WARN(2003-03-21) 14:42.55:031   [core.manager]
(/application/admin/en/test)
HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
an uninitialized ComponentLocator:
org.apache.cocoon.transformation.TransformerSelector
WARN(2003-03-21) 14:42.55:031   [core.manager]
(/application/admin/en/test)
HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
an uninitialized ComponentLocator:
org.apache.cocoon.serialization.SerializerSelector
WARN(2003-03-21) 14:42.55:031   [core.manager]
(/application/admin/en/test)
HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
an uninitialized ComponentLocator: org.apache.cocoon.reading.ReaderSelector
WARN(2003-03-21) 14:42.55:031   [core.manager]
(/application/admin/en/test)
HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
an uninitialized ComponentLocator: org.apache.cocoon.acting.ActionSelector
WARN(2003-03-21) 14:42.55:031   [core.manager]
(/application/admin/en/test)
HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
an uninitialized ComponentLocator:
org.apache.cocoon.matching.MatcherSelector
WARN(2003-03-21) 14:42.55:031   [core.manager]
(/application/admin/en/test)
HttpProcessor[21010][4]/ExcaliburComponentManager: Looking up component on
an uninitialized ComponentLocator:
org.apache.cocoon.selection.SelectorSelector
WARN(2003-03-21) 14:42.55:046   [core.manager]
(/application/admin/en/test)
HttpProcessor[21010][4]/ExcaliburComponentManager: Attempted to release a
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector but its handler
could not be located.
WARN(2003-03-21) 14:42.55:046   [core.manager]
(/application/admin/en/test)
HttpProcessor[21010][4]/ExcaliburComponentManager: Attempted to release a
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector but its handler
could not be located.
WARN(2003-03-21) 14:42.55:046   [core.manager]
(/application/admin/en/test)
HttpProcessor[21010][4]/ExcaliburComponentManager: Attempted to release a
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector but its handler
could not be located.
WARN(2003-03-21) 14:42.55:046   [core.manager]
(/application/admin/en/test)
HttpProcessor[21010][4]/ExcaliburComponentManager: Attempted to release a
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector but its handler
could not be located.
WARN(2003-03-21) 14:42.55:046   [core.manager]
(/application/admin/en/test)
HttpProcessor[21010][4]/ExcaliburComponentManager: Attempted to release 

Re: AW: Antwort: Multiple pdf with one match?

2003-03-21 Thread Eric di Domenico
I disagree,

I bet you can do this with a FileSource and the pdf serializer 
don't exactly know how yet... but I am working on something right now 
to be able to print from the server.

I will post something on the subject if I get it to work later today

Ciao

Eric

On Vendredi, mars 21, 2003, at 09:04 America/Montreal, Scherler, 
Thorsten wrote:

Thanks Manfred.

One Request - One Response! You are so right!

So really no work around! -> Ok, back to JavaScript!

Thanks again
Thorsten
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 21. März 2003 14:59
An: [EMAIL PROTECTED]
Betreff: Antwort: Multiple pdf with one match?


Hi Thorsten!

There is one big Problem: ONE request ends up in ONE response, there 
is no
way around! (http standard)

But...

if you submit your form to a pipeline which produces a frameset 
splitted up
in three areas, every area could call the real pipeline for producing 
PDF

Your idea doing it by JavaScript with three new windows is also 
pssible!

regards
manfred


[EMAIL PROTECTED] am 21.03.2003 14:30:51

Bitte antworten an [EMAIL PROTECTED]@inet

An:  [EMAIL PROTECTED]
Kopie:
Thema:   Multiple pdf with one match?
Hello group,

I want to do the following:
I have on html-Form where I put the date. With this date there should 
be
called 3 different piplines resulting 3 DIFFERENT pdf files.

Some thoughts:
I thought about open 3 different browser windows where each is for one
resulting pdf.
I can do that with JavaScript but would prefer to do it server sided.
Any ideas or links or hints?

King regards
Thorsten
Mit freundlichem Gruss,

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

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








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


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


transform xsp generated xml to pdf

2003-03-21 Thread Frank Daly
Hi

I have worked through Leigh Dodds, IBM Developer Works, excellent
tutorial
showing how to use cocoon to query databases.  I am able to generate the
xml data and output this in IE6.  My problem starts when I try to
transform this data to xsl:fo and then pdf.

My xml file contains child nodes.  The xml outputted to IE6 contains
minus
signs, -, to allow a user to close the parent node and hide the child
nodes.
Could it be these minus signs that prevents the pdf file being
generated? I
just get a blank screen.  I'm using tomcat 4.1.18 and cocoon 2.

If there is an example on the web, I'd appreciate a link.

TIA

Frank



---Legal  Disclaimer---

The above electronic mail transmission is confidential and intended only for the 
person to whom it is addressed. Its contents may be protected by legal and/or 
professional privilege. Should it be received by you in error please contact the 
sender at the above quoted email address. Any unauthorised form of reproduction of 
this message is strictly prohibited. The Institute does not guarantee the security of 
any information electronically transmitted and is not liable if the information 
contained in this communication is not a proper and complete record of the message as 
transmitted by the sender nor for any delay in its receipt.




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



Re: Cocoon and database example

2003-03-21 Thread Frank Daly
You should try the ibm developerworks site.  The relevant link is
http://www-105.ibm.com/developerworks/education.nsf/xml-onlinecourse-byt
itle
/AC994D2B8F0B85D086256BC1006B53AC?open&l=472,t=gr

Frank



---Legal  Disclaimer---

The above electronic mail transmission is confidential and intended only for the 
person to whom it is addressed. Its contents may be protected by legal and/or 
professional privilege. Should it be received by you in error please contact the 
sender at the above quoted email address. Any unauthorised form of reproduction of 
this message is strictly prohibited. The Institute does not guarantee the security of 
any information electronically transmitted and is not liable if the information 
contained in this communication is not a proper and complete record of the message as 
transmitted by the sender nor for any delay in its receipt.




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



Re: wget blocks on cocoon pages

2003-03-21 Thread Andrew Savory

Hi Matthias,

On Fri, 21 Mar 2003, Matthias Brunner wrote:

> Accessing a cocoon page with wget takes much longer than usual:
> "wget http://localhost:8080/cocoon/"; takes 20 seconds!

What sort of perceived speed do you get using the "GET" command? Try:

GET -uUesd http://localhost:8080/cocoon/

> Has anyone else experienced this problem? Which programme is to blame
> for this?

I'm not seeing the problem on Linux, JDK 1.4.1, Tomcat 4.1.18, Cocoon
2.0.5-dev, wget 1.8.2.


Andrew.

-- 
Andrew SavoryEmail: [EMAIL PROTECTED]
Managing Director  Tel:  +44 (0)870 741 6658
Luminas Internet Applications  Fax:  +44 (0)700 598 1135
This is not an official statement or order.Web:www.luminas.co.uk

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



Castor and Cocoon

2003-03-21 Thread Howard, Gary
I have a Java object that I am trying to turn into XML in my custom
generator class.  I am trying to use Castor to do this.  I am not sure how
to integrate Castor into the generator class.  My concern is how I set the
ContentHandler.  Does anyone have any input.  There was not much on the web
about this.

Thanks,
Gary

Custom generator:

public void generate() throws SAXException, IOException
{
  try
  {
ClaimActivity claim = new ClaimActivity();
claim.setInsuredName("Joe Shmoe");

// the org.xml.sax.ContentHandler is inherited
// through org.apache.cocoon.xml.AbstractXMLProducer
Marshaller.marshal(new ClaimActivity(), contentHandler);
  }
  catch (ValidationException valex)
  {
valex.printStackTrace();
  }
  catch (MarshalException marex)
  {
marex.printStackTrace();
  }
}


Her is the error that I am getting:

   <101017>
<[ServletContext(id=546240
3,name=cocoon,context-path=/cocoon)] Root cause of ServletException
java.lang.NoClassDefFoundError: org/apache/xml/serialize/XMLSerializer
at org.exolab.castor.xml.Marshaller.initialize(Marshaller.java:383)
at org.exolab.castor.xml.Marshaller.(Marshaller.java:329)
at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:665)
at COPRGenerator.generate(COPRGenerator.java:43)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(Ca
chingEventPipeline.java:258)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(C
achingStreamPipeline.java:412)
at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invo
ke(SerializeNode.java:148)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNo
de.invokeNodes(AbstractParentProcessingNode.java:84)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNod
e.invoke(PreparableMatchNode.java:164)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNo
de.invokeNodes(AbstractParentProcessingNode.java:108)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invok

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



AW: Antwort: Multiple pdf with one match?

2003-03-21 Thread Scherler, Thorsten
Thanks Manfred.

One Request - One Response! You are so right!

So really no work around! -> Ok, back to JavaScript!

Thanks again
Thorsten

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 21. März 2003 14:59
An: [EMAIL PROTECTED]
Betreff: Antwort: Multiple pdf with one match?




Hi Thorsten!

There is one big Problem: ONE request ends up in ONE response, there is no
way around! (http standard)

But...

if you submit your form to a pipeline which produces a frameset splitted up
in three areas, every area could call the real pipeline for producing PDF

Your idea doing it by JavaScript with three new windows is also pssible!

regards
manfred




[EMAIL PROTECTED] am 21.03.2003 14:30:51

Bitte antworten an [EMAIL PROTECTED]@inet

An:  [EMAIL PROTECTED]
Kopie:
Thema:   Multiple pdf with one match?


Hello group,

I want to do the following:
I have on html-Form where I put the date. With this date there should be
called 3 different piplines resulting 3 DIFFERENT pdf files.

Some thoughts:
I thought about open 3 different browser windows where each is for one
resulting pdf.
I can do that with JavaScript but would prefer to do it server sided.

Any ideas or links or hints?

King regards
Thorsten

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

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









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


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



Antwort: Multiple pdf with one match?

2003-03-21 Thread manfred . weigel


Hi Thorsten!

There is one big Problem: ONE request ends up in ONE response, there is no
way around! (http standard)

But...

if you submit your form to a pipeline which produces a frameset splitted up
in three areas, every area could call the real pipeline for producing PDF

Your idea doing it by JavaScript with three new windows is also pssible!

regards
manfred




[EMAIL PROTECTED] am 21.03.2003 14:30:51

Bitte antworten an [EMAIL PROTECTED]@inet

An:  [EMAIL PROTECTED]
Kopie:
Thema:   Multiple pdf with one match?


Hello group,

I want to do the following:
I have on html-Form where I put the date. With this date there should be
called 3 different piplines resulting 3 DIFFERENT pdf files.

Some thoughts:
I thought about open 3 different browser windows where each is for one
resulting pdf.
I can do that with JavaScript but would prefer to do it server sided.

Any ideas or links or hints?

King regards
Thorsten

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

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









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



wget blocks on cocoon pages

2003-03-21 Thread Matthias Brunner
Hello!

First of all: I do not know whether this problem is really 
cocoon-specific, it could also be related to tomcat or wget.
Yet wget seems to be fairly well tested and this problem does not 
occur when other pages are served by tomcat.

Accessing a cocoon page with wget takes much longer than usual:
"wget http://localhost:8080/cocoon/"; takes 20 seconds!
Packet analysis shows that the page is served within milliseconds and 
the connection simply waits for a timeout then.
Therefore "wget --no-http-keep-alive http://localhost:8080/cocoon/"; 
is much faster.

Has anyone else experienced this problem? Which programme is to blame 
for this?

Versions: Linux, Sun JDK 1.4.1_01-b01, Tomcat 4.1.12, Cocoon 2.0.4, 
wget 1.8.2

Best regards!
Matthias Brunner

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



Multiple pdf with one match?

2003-03-21 Thread Scherler, Thorsten
Hello group,

I want to do the following:
I have on html-Form where I put the date. With this date there should be called 3 
different piplines resulting 3 DIFFERENT pdf files.

Some thoughts:
I thought about open 3 different browser windows where each is for one resulting pdf.
I can do that with JavaScript but would prefer to do it server sided.

Any ideas or links or hints?

King regards
Thorsten

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

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



XSL and script code - please help

2003-03-21 Thread hgadm
Hi all,
 
I am currently developing a histogram (svg) to be
included in the Cocoon portal.
The current solution for generation of the SVG code is
XSL only. 

Now I would like to add an algorithm for
y-axis autoscaling (see 'pseudocode' below). I am not
sure how to do this in pure XSL e.g. 

-is there a fract() function ? I know that a floor
function exists. 

- But what about the loop ?

- What about passing variables to this code (and
getting them back into the XSL script) ?

- Do I need further (script-)extensions to XSL to do
this ?

Best regards,

Holger

***

iReg=1;

regA=10**floor((max-min)/#-of-tics);



iReg++;

reg9=regA*floor(min/regA);

reg8=reg9+#-of-tics*regA;

if(max>reg8){   (would exit the loop if <=)

if(fract(iReg/4)==0)

{regA=1.25*regA;}

else

{regA=2*regA;}

{



*

___
The ALL NEW CS2000 from CompuServe
 Better!  Faster! More Powerful!
 250 FREE hours! Sign-on Now!
 http://www.compuserve.com/trycsrv/cs2000/webmail/





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



AW: database forms

2003-03-21 Thread Scherler, Thorsten
hi Stephan,

by the way are you in Spain right now?

see my answer below:

-Ursprüngliche Nachricht-
Von: Stefan Klein [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 21. März 2003 10:48
An: [EMAIL PROTECTED]
Betreff: Re: database forms


>Hi Thorsten,
>
>thanks for your reply. I've been pondering about your mail for a little
>while now. The xsl looks like a clever idea. A few things remain unclear to
>me:
>
>What way do you use to get the data out of the DB. SQL-Transformer?

-> No, because I need more logic (e.g. date format ...) [#1]! I use esql and xsp!
a)cocoon.xconf.snippet


jdbc:odbc:MyDB




b) sitemap.snippet
  

  


  

c) xsp.snippet compare [#1]
...

GETpool


select * from IDM_info_xml Where info1_date = #timeOfDay#

...

d) I call it like that: 
http://localhost:8080/myapp/report-info-D200301Insta.xml?date=13.03.2003


>What do you refer to by static and variable data?
Like I stated I am working with call agent db. For me the adress and the contact 
person are static because they have always the same format. I have to write a 
 for each of this field. 
e.g. 

  Weidmüller GmbH & Co. 
   
   
  P.O. Box 2807 
  33058 
  Paderborn 
   
  05252-960-350 

will be always formated like this and should be on a certain place within my html-form!

Where the campaign is dynamic! I have results of the questions which are formated like 
that:
yes
bigger then ...
There I have to add the question (different table). the table qusetion might look like 
this Did you receive our mailing?. But there can be 1 to n answers and 
questions.

>static=the definition of the form (as in your XML example), variable=the
>data from the DB?
No like I stated before! That was a different example that I fixed at home!

>How do you get the data back into the database? using actions, I suppose?
I am still not really certain about that! I still in development of the html Form. I 
tried with SQL-Transformer and esql and both were working fine. But I think I will 
have a look at actions as well. But still I first have to really decide about the data 
model for the db-server.

>In your example you've only got textboxes. With listboxes ( in HTML)
>it gets a bit trickier, since you'll have to get the possible values from a
>different table first. Have you got an idea for that, too?
>Maybing using XSP-ESQL?
nested esql like that:


GETpool



 select * from IDM_info_xml Where info1_date = #timeOfDay#
 


int xid =;

































  select * from ap_tab where ap_id =xid







































What do you think?

King regards
Thorsten


Reference:
[1] http://wiki.cocoondev.org/Wiki.jsp?page=XSPTransformCustomDate


- Original Message -
From: "Scherler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 20, 2003 5:58 PM
Subject: Re: database forms


> Hi Stefan,
>
> I have to master the same task. I am working in a telephone marketing
> department and writing the call agent DBs. I will introduce the 3 tier
> modell and will have to get rid of my formulars (VBA).
> We have some static fields (which are always the same -> address &
> contact person) and some variable (we have different campaigns where the
> questions to ask will always be different)
>
> I thought about that:
> 1) select a db (pool) => campaign Example
> 2) get the static data with 
> 3) get the variable data and put it in a different tag
> 4) use a transform to create a html form (including validation through
> JavaScript)
>
> to 4)   like that xslt:
>  
> 
>  select="name()"/>
> 
> 
> 
>  select="normalize-space(text())"/>
> 
> 
> 
> 
>
> with this xml:
> http://www.google.com/search"; name="f">
> 
> UTF-8
> UTF-8
> eng
> 
> Google-Search
> 
> document.f.q.focus();
> 
>
> ...
>
> King regards
> Thorsten
>
> Stefan Klein wrote:
>
> >Hi all,
> >
> >I am looking for the quickest way to write database forms. It is
something
> >that I will be doing thousands of times, so the goal is to find some
really
> >efficient way.
> >
> >Ideally it would look something like:
> >table name - selects the table
> >
> >   - a simple input field bound to a  field in
the
> >table
> >
> >  - a
> >listbox bound to a field, entries defines the options visible to the
user,
> >values defines what is internally stored in the field. obviously the
table
> >would be the same (useful for foreign key entries)
> >
> > >
> >
> >The form would be populated automatically with the database values (the
> >current record being selected by a request parameter) and update the
values
> >on submit.
> >
> >What I've been pondering about for quite a while now is what would be the
> >best way to implement this in cocoon.
> >
> >I looked into the "departments and employees"-tutorial delivered with
> >cocoon2, which is quite close to wha

Re: cocoon-view as possible security problem?

2003-03-21 Thread Geoff Howard
At 03:19 AM 3/21/2003, you wrote:
Stefano Mazzocchi wrote:

Tony Collen wrote:

Browsing the livesites, on a whim I tried this URL:

http://dir.salon.com/?cocoon-view=content

and it worked!  Obviously someone deploying Cocoon should be aware that
this view is "on" by default, and may reveal data in your page you might
not want.  I have yet to see "bad" data get exposed, but there's always
the possibility.


Well, the cocoon "view" was designed to be a standard way for external 
crawlers or spiders to gather 'semantically meaningful' data from URLs 
served by cocoon.

yes, there is the possibility of bad data exposed.



So, at the end, I would do:

1) turn off views from the default sitemap. NOTE: this will turn off the 
ability to make static snapshots of your webapp from the cocoon CLI!

2) write a pretty detailed comment in the default sitemap telling what 
views are, how they work briefly and what potential security issues do 
they make.

3) keep the view parameter name hardcoded as it is.

Thoughts? anybody against this?


What about simply adding an IP matcher in the view that would restrict 
access to the view to a reserved set of clients (localhost by default), 
and direct others to a nice page, or simply a 404 error ? This would leave 
the door open to local debugging and crawnling, and would firmly close it 
to remote "attacks".
I don't see any need for #1 because
- isn't it used by a lot of samples?
- it gives the impression that they are not meant to be public and normally 
expose dangerous data (which they don't - probably)

 If the warning is there, and information/ability is provided on 
strategies to secure views (like Sylvain's good suggestion) that's enough IHMO.

By the way, I think there are bigger security problems in cocoon...

Geoff 

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


Re: cocoon-view as possible security problem? (fwd)

2003-03-21 Thread Sylvain Wallez
Tony Collen wrote:

forwarding this to -users because i am having a little bit of lag and
mistyped the address the first time :P
 

Have a look at my answer on cocoon-dev :
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=104823479001495&w=2
Sylvain

-- Forwarded message --
Date: Thu, 20 Mar 2003 16:14:31 -0500 (EST)
From: Tony Collen <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: cocoon-view as possible security problem?
Browsing the livesites, on a whim I tried this URL:

http://dir.salon.com/?cocoon-view=content

and it worked!  Obviously someone deploying Cocoon should be aware that
this view is "on" by default, and may reveal data in your page you might
not want.  I have yet to see "bad" data get exposed, but there's always
the possibility.
Do we want the views turned off by default, and have a message in the
sitemap about enabling the views?  Would it make more sense to have
thename of the "cocoon-view" parameter be able to be changed via
configuration?  Say I wanted the parameter to be my-view instead of
cocoon-view.  Security through obscurity?
Tony





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



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


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


Re: Problems basic-link in xsl-fo

2003-03-21 Thread Jessica Niewint
No, for me it is even impossible to build the PDF. So I will rebuild cocoon 
this afternoon. May something is wrong.
It seems that the tag basic-link is non know or accepted by the PDF.
We got also problems to display a gif . And this on to different servers 
with two different cocoon releases. May there is a connections. Since I am 
not a "Cocoon-Specialist" , there could be also something wrong with the 
sitemap. For me is only strange that everything work fine, only if I try to 
use the basic-link tag I got the message that the PDF is damaged. I really 
do not have a clue ...

At 22.24 20/03/2003 +0100, you wrote:
Jessica Niewint wrote:
I tried also http:// but  it gives still the error that the pdf is damaged.
In the error-log of cocoon is empty. If I comment out the basic-link tag 
(and leave the block tag where it is) every thing
works fine.
There was some discussion a while ago that there are problems with
external http links. THe PDF should display fine though, only clicking
the link results in an obscure error message.
Can you generate the PDF with the FOP CLI?
J.Pietschmann



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


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


Re: database forms

2003-03-21 Thread Stefan Klein
Hi Thorsten,

thanks for your reply. I've been pondering about your mail for a little
while now. The xsl looks like a clever idea. A few things remain unclear to
me:

What way do you use to get the data out of the DB. SQL-Transformer?

What do you refer to by static and variable data?
static=the definition of the form (as in your XML example), variable=the
data from the DB?

How do you get the data back into the database? using actions, I suppose?

In your example you've only got textboxes. With listboxes ( in HTML)
it gets a bit trickier, since you'll have to get the possible values from a
different table first. Have you got an idea for that, too?
Maybing using XSP-ESQL?
Or using XSL to generate a query that you can send through the
SQLTransformer and the whole through another XSL in your style?
I'll be thinking about it and let you know when I come up with something.

Regards
Stefan

- Original Message -
From: "Scherler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 20, 2003 5:58 PM
Subject: Re: database forms


> Hi Stefan,
>
> I have to master the same task. I am working in a telephone marketing
> department and writing the call agent DBs. I will introduce the 3 tier
> modell and will have to get rid of my formulars (VBA).
> We have some static fields (which are always the same -> address &
> contact person) and some variable (we have different campaigns where the
> questions to ask will always be different)
>
> I thought about that:
> 1) select a db (pool) => campaign Example
> 2) get the static data with 
> 3) get the variable data and put it in a different tag
> 4) use a transform to create a html form (including validation through
> JavaScript)
>
> to 4)   like that xslt:
>  
> 
>  select="name()"/>
> 
> 
> 
>  select="normalize-space(text())"/>
> 
> 
> 
> 
>
> with this xml:
> http://www.google.com/search"; name="f">
> 
> UTF-8
> UTF-8
> eng
> 
> Google-Search
> 
> document.f.q.focus();
> 
>
> ...
>
> King regards
> Thorsten
>
> Stefan Klein wrote:
>
> >Hi all,
> >
> >I am looking for the quickest way to write database forms. It is
something
> >that I will be doing thousands of times, so the goal is to find some
really
> >efficient way.
> >
> >Ideally it would look something like:
> >table name - selects the table
> >
> >   - a simple input field bound to a  field in
the
> >table
> >
> >  - a
> >listbox bound to a field, entries defines the options visible to the
user,
> >values defines what is internally stored in the field. obviously the
table
> >would be the same (useful for foreign key entries)
> >
> > >
> >
> >The form would be populated automatically with the database values (the
> >current record being selected by a request parameter) and update the
values
> >on submit.
> >
> >What I've been pondering about for quite a while now is what would be the
> >best way to implement this in cocoon.
> >
> >I looked into the "departments and employees"-tutorial delivered with
> >cocoon2, which is quite close to what I'd like, but still not it. For
> >example I don't like having to define listboxes and populate the form by
> >using separate esql-statements. What data to fill into the form should
> >already be specified in the form definition.
> >My first idea was to start from there and implement a logicsheet that
would
> >allow me to define tags like the ones above.
> >
> >Then I looked into xmlforms and liked them a lot. However:
> >1. I am still looking for a tag reference. Maybe someone can help out.
> >2. I am still not entirely sure how they might help me. Surely it would
be
> >possible to write a JavaBean that accesses the database, but doing that
> >every time again is not the simplification I am looking for. Is there a
way
> >to reference database fields directly from the forms?
> >
> >
> >Basically, I would be very grateful for any kind of hint you can offer on
> >how to use xmlforms for this or on other ways of accomplishing the task
> >(maybe there would even be ways to take the database description and
> >generate a form from it?). I am quite stuck for ideas, but it seems a
> >standard job so I am sure many people have already found sufficient ways
to
> >do it.
> >
> >
> >Thanks in advance
> >Stefan
> >
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Re: Cocoon and database example

2003-03-21 Thread Stefan Klein
Have you had a look at the SQL-Transformer? That might be what you're
looking for. You're code would be something like:
http://apache.org/cocoon/SQL/2.0";>
  
 select * from news
  


This would get you XML that you can pass through XSL:

Have a look at:
http://xml.apache.org/cocoon/userdocs/transformers/sql-transformer.html

Can tell you though, which jars you'd need for that. You'd have to ask
something who knows more about cocoon than I do.

Stefan

- Original Message -
From: "karthikeyan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 20, 2003 1:30 PM
Subject: Cocoon and database example


> Hi,
>
>   I want to create simple news posting script.  Just wondering which is
>   the best way to go for this.
>
> If i go with ESQL way what are the necessary jar to place in my lib
> folder.  I just dont want to place lots of jar files for something which
> i may not use for right now.
>
>   If you can point my out some tutorial of cocoon working with database
>   that would be great.  I saw the one which comes with cocoon but i want
>   something BARE MINIMUM.
>
>   Something like
>
>   select * from news
>
>   Now I presume that the above tag will return xml data, i need to use
>   XSLT and produce the output.
>
>   How should i go about this.
>
>   Have a great day.
>
> Karthikeyan.
> --
>   karthikeyan
>   [EMAIL PROTECTED]
>
> --
> http://www.fastmail.fm - Send your email first class
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Re: Using XSP in XSL

2003-03-21 Thread Scherler
First read:
http://xml.apache.org/cocoon/userdocs/concepts/index.html
then:
http://wiki.cocoondev.org/Wiki.jsp
shankar wrote:
Hello,
I am new to cocoon.
I need  have a xsp file with element say .
I like to get the value of the element in my XSL..?
How to do ti?
I searched the net and I didn't find proper examples.
Thanks in Advance



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


Re: Antwort: Cocoon on OS/390 Unix System Services

2003-03-21 Thread Oliver Alth

Hi enio,

thanks for your suggestion. Unfortunately, it didn't work.
The same problem as before.

Oliver


__
IBM Deutschland Entwicklung GmbH, Schönaicher Str. 220, D-71032 Böblingen
eServer Software Management, D4357, Intern: 7103-06, Tel. 902-2790,
Tel.: ++49-(0)7031-16-4280, Fax.: 07031-16-2790
Internet: [EMAIL PROTECTED]


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