coocoon renering SVG : Problem with path atribute d=...

2002-03-19 Thread Kai Ulrich



Anny 
one who nows what' going on ?

By 
rendering an SVG I got following exception !


[EmbeddedTomcatSX] 
org.apache.batik.transcoder.TranscoderException: nullEnclosed 
Exception:http://xml.apache.org:-1The attribute 
'd' of the element path is 
required[EmbeddedTomcatSX] at 
org.apache.cocoon.serialization.SVGSerializer.notify(SVGSerializer.java:230)[EmbeddedTomcatSX] 
at 
org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:92)[EmbeddedTomcatSX] 
at 
org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHandler.java:190)[EmbeddedTomcatSX] 
at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1186)[EmbeddedTomcatSX] 
at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3139)[EmbeddedTomcatSX] 
at java.lang.Thread.run(Thread.java:484)[EmbeddedTomcatSX] 
java.lang.RuntimeException: org.apache.batik.transcoder.TranscoderException: 
null


this 
is my xsl stylesheet :

?xml version="1.0" encoding="iso-8859-1"?

xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
version="1.0"

xsl:template match="balken"svg width="250.5" 
height="249.283" viewBox="0 0 250.5 249.283" overflow="visible" 
enable-background="new 0 0 250.5 249.283"xml:space="preserve"
g id="grün02"text 
transform="matrix(1 0 0 1 12.5 90)" enable-background="new 
"tspan x="0" y="0" fill="#66" font-family="'Verdana-Bold'" 
font-size="11"Kennzahl/tspan/textpath 
fill="#E6E6E6" d="M12.5,92h224v12h-224V92z"/
I supose it has todo with this tag (the Error is gone when I 
delete it)xsl:element name = 
"path"  xsl:attribute name = "fill" 
#A2D27C/xsl:attribute xsl:attribute 
name = "d" 
M195.547,103.994h-69.939V92.036h69.939V103.994z/xsl:attribute 
/xsl:element
This 
one works !
path fill="none" 
stroke="#3D7113" d="M195.547,92.036v11.958"/
This 
one does not work as well !
path  
xsl:attribute name = "fill" 
#A2D27C/xsl:attribute xsl:attribute 
name = "d" 
M195.547,103.994h-69.939V92.036h69.939V103.994z/xsl:attribute 
/path

text transform="matrix(1 0 
0 1 198.4775 102.2271)" enable-background="new "tspan 
x="0" y="0" font-family="'Verdana'" 
font-size="11"123%/tspan/text/g

g id="trenner"path 
fill="#FF" stroke="#00" 
d="M125.102,62v162"/text transform="matrix(1 0 0 1 
114.915 53.7266)" enable-background="new "tspan x="0" 
y="0" font-family="'Verdana'" 
font-size="11"Ziel/tspan/text/g/g/svg/xsl:template/xsl:stylesheet



Intresting behaviour of coocoon transforming a JSP to PDF

2002-02-05 Thread Kai Ulrich

hey !
I recogiced an interesting behaviour of coocoon by transforming  a JSP to
PDF !


I want to render a JSP (Struts Tags) with cocoon !
Everything works fine !

1. A servlet arrange the data an puts the beans to the request.

2. forward to the coocoon Servlet
...
RequestDispatcher rd =
tServletContext().getRequestDispatcher( /cocoon/printBasket );
rd.forward( req, res );
...


[web.xml]
...
!-- Cocoon Servlet Mapping --
servlet-mapping
servlet-nameCocoon2/servlet-name
url-pattern/cocoon/*/url-pattern
/servlet-mapping
...

3. piping a print.jsp

   [sitemap.xmap]
   ...
   map:match pattern=cocoon/printBasket
map:generate type=jsp src=print/printBasket.jsp/
map:transform src=stylesheets/print2fo.xsl/
map:serialize type=fo2pdf/
   /map:match
   ...


'
''' But I recogniced an interesting behaviour:
''' By the executing the pipe, the JSP it compiled 3 times and the servlet
is executed 3 times!
''' It seems like cocoon jumps back 2 times !!
''' Is that usual ? Can I do something to get a better performance ?

'


Thanks for Help

the Datas :

- Windows 2000
- JBoss-2.2.2_Tomcat-3.2.2
- StrutsFramework
- coocon 2
- Servlet.jar  v 2.2



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




Rendering a jsp : JSP it compiled 3 times - performance problem

2002-01-31 Thread Kai Ulrich

hey !
My Problem :

I want to render a JSP (Struts Tags) with cocoon !
Everything works fine !
1. A servlet arrange the data an puts the beans to the request.
2. forward to the coocoon Servlet
...
RequestDispatcher rd =
etServletContext().getRequestDispatcher( /cocoon/printBasket );
rd.forward( req, res );
...

[web.xml]
...
!-- Cocoon Servlet Mapping --
servlet-mapping
servlet-nameCocoon2/servlet-name
url-pattern/cocoon/*/url-pattern
/servlet-mapping
...

3. piped to the print.jsp

   [sitemap.xmap]
   ...
   map:match pattern=cocoon/printBasket
map:generate type=jsp src=print/printBasket.jsp/
map:transform src=stylesheets/print2fo.xsl/
map:serialize type=fo2pdf/
   /map:match
   ...

But I have a little performance Pronblem:
- One thing attracted attention : By the executing the pipe, the JSP it
compiled 3 times and the servlet  is executed 2 more times!
Is that usual ? Can I do something to get a better performance ?

Thanks for Help 


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




WG: Rendering a jsp : JSP it compiled 3 times - performance problem

2002-01-31 Thread Kai Ulrich



-Ursprüngliche Nachricht-
Von: Kai Ulrich [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 31. Januar 2002 11:59
An: [EMAIL PROTECTED]
Betreff: AW: Rendering a jsp : JSP it compiled 3 times - performance
problem


Thanks for you intereset !

the Datas :

- Windows 2000
- JBoss-2.2.2_Tomcat-3.2.2
- StrutsFramework
- coocon 2
- Servlet.jar  v 2.2

Regards, kai


-Ursprüngliche Nachricht-
Von: Piroumian, Konstantin [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 31. Januar 2002 11:26
An: [EMAIL PROTECTED]
Betreff: Re: Rendering a jsp : JSP it compiled 3 times - performance
problem


Hi!

What is your configuration? Platform, servlet engine, etc.

Regards,
Konstantin Piroumian

 hey !
 My Problem :

 I want to render a JSP (Struts Tags) with cocoon !
 Everything works fine !
 1. A servlet arrange the data an puts the beans to the request.
 2. forward to the coocoon Servlet
 ...
 RequestDispatcher rd =
 etServletContext().getRequestDispatcher( /cocoon/printBasket );
 rd.forward( req, res );
 ...

 [web.xml]
 ...
 !-- Cocoon Servlet Mapping --
   servlet-mapping
 servlet-nameCocoon2/servlet-name
 url-pattern/cocoon/*/url-pattern
   /servlet-mapping
 ...

 3. piped to the print.jsp

[sitemap.xmap]
...
map:match pattern=cocoon/printBasket
 map:generate type=jsp src=print/printBasket.jsp/
 map:transform src=stylesheets/print2fo.xsl/
 map:serialize type=fo2pdf/
/map:match
...

 But I have a little performance Pronblem:
 - One thing attracted attention : By the executing the pipe, the JSP it
 compiled 3 times and the servlet  is executed 2 more times!
 Is that usual ? Can I do something to get a better performance ?

 Thanks for Help


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

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


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

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



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

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




AW: Rendering a jsp : JSP it compiled 3 times - performance problem

2002-01-31 Thread Kai Ulrich

Thanks for you intereset !

the Datas :

- Windows 2000
- JBoss-2.2.2_Tomcat-3.2.2
- StrutsFramework
- coocon 2
- Servlet.jar  v 2.2

Regards, kai


-Ursprüngliche Nachricht-
Von: Piroumian, Konstantin [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 31. Januar 2002 11:26
An: [EMAIL PROTECTED]
Betreff: Re: Rendering a jsp : JSP it compiled 3 times - performance
problem


Hi!

What is your configuration? Platform, servlet engine, etc.

Regards,
Konstantin Piroumian

 hey !
 My Problem :

 I want to render a JSP (Struts Tags) with cocoon !
 Everything works fine !
 1. A servlet arrange the data an puts the beans to the request.
 2. forward to the coocoon Servlet
 ...
 RequestDispatcher rd =
 etServletContext().getRequestDispatcher( /cocoon/printBasket );
 rd.forward( req, res );
 ...

 [web.xml]
 ...
 !-- Cocoon Servlet Mapping --
   servlet-mapping
 servlet-nameCocoon2/servlet-name
 url-pattern/cocoon/*/url-pattern
   /servlet-mapping
 ...

 3. piped to the print.jsp

[sitemap.xmap]
...
map:match pattern=cocoon/printBasket
 map:generate type=jsp src=print/printBasket.jsp/
 map:transform src=stylesheets/print2fo.xsl/
 map:serialize type=fo2pdf/
/map:match
...

 But I have a little performance Pronblem:
 - One thing attracted attention : By the executing the pipe, the JSP it
 compiled 3 times and the servlet  is executed 2 more times!
 Is that usual ? Can I do something to get a better performance ?

 Thanks for Help


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

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


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

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



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

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




Rendering a jsp : JSP it compiled 3 times - performance problem

2002-01-25 Thread Kai Ulrich

Hey

My problem :

If I want to render a JSP (Struts Tags) with cocoon !
Everything works fine !
1. A servlet arrange the data an puts the beans to the request.
2. forward to the coocoon Servlet
...
RequestDispatcher rd =
etServletContext().getRequestDispatcher( /cocoon/printBasket );
rd.forward( req, res );
...

[web.xml]
...
!-- Cocoon Servlet Mapping --
servlet-mapping
servlet-nameCocoon2/servlet-name
url-pattern/cocoon/*/url-pattern
/servlet-mapping
...

3. piped to the print.jsp

   [sitemap.xmap]
   ...
   map:match pattern=cocoon/printBasket
map:generate type=jsp src=print/printBasket.jsp/
map:transform src=stylesheets/print2fo.xsl/
map:serialize type=fo2pdf/
   /map:match
   ...

But I have a little performance Pronblem:
- One thing attracted attention : By the executing the pipe, the JSP it
compiled 3 times and the servlet  is executed 2 more times!
Is that usual ? Can I do thome thing to get a better performance ?


Regds, k


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




[EmbeddedTomcatSX] java.lang.OutOfMemoryError

2001-12-05 Thread Kai Ulrich

Hey

My problem !
Im using cocoon2 with jboss !
By creating a PDF file I get following Exception
...
[EmbeddedTomcatSX] java.lang.OutOfMemoryError
[EmbeddedTomcatSX]  no stack trace available
...

In all Documentations they say I supose to rice up the memory of the JAVA VM
by java -Xms32m -Xmx64m ...
But what is the Syntax for ... ?

Thanks
k


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




render dynamic tables jsp2fo

2001-12-04 Thread Kai Ulrich

Hey 
My Problem :
I create a table with a variable amount of coles by an jsp!
Is it there a possibility to create a stylesheet witch conigurates the
fo:table-tag for variable amount of coles ?

k

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