Re: External Graphics in XSL:FO (SVG chart)

2002-10-21 Thread J.Pietschmann
Timothy Larson wrote:

My guess is that FOP does not know much about Cocoon, and cannot fetch
files from anywhere except the filesystem.


No, FOP can use http URLs.

Unfortunately, the original message was  unparsable for me,
but I suspect something is wrong with the pipeline generating
the SVG, perhaps it's serialized as text instead of XML.
Another possibility could be that the original poster complained
about a known problem where SVG text is mangled.

J.Pietschmann


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

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




Re: External Graphics in XSL:FO (SVG chart)

2002-10-21 Thread Sreenivasan N.
Is there any possiblity to create pdf which contain dynamic generated 
images (in my case it is a pie chart) which is part of a pipeline. I hope 
this question is clear to J.Pietschmann.

Here is my code for XSP which is working when serialize as html

map:match pattern=xmlsvg.svg
   map:generate src=docs/samples/hello-page.xsp type=serverpages/
   map:transform src=stylesheets/page/simple-page2svg.xsl/
map:serialize type=svg2jpeg/
   /map:match

map:match pattern=xsp/hello1
  map:generate src=docs/samples/xsp/hello1.xsp type=serverpages/
  map:transform src=stylesheets/dynamic-page2html.xsl/
  map:serialize/
   /map:match

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

xsp:page
  language=java
  xmlns:xsp=http://apache.org/xsp;
  xmlns:esql=http://apache.org/cocoon/SQL/v2;
  xmlns:source=http://apache.org/cocoon/source/1.0;


  html


 table border=0 cellspacing=2 cellpadding=2 align=center 
width=100%
 tr
  td colspan=3 align=centerfont face=arial,helvetica,sanserif 
color=#00HELLO/font/td
 /tr
  tr
  td width=30%/td
  td width=40% align=centerimg border=0 
src=/cocoon23/xmlsvg.svg//td
  td width=30% align=centerfont face=arial,helvetica,sanserif 
color=#00bversion 2.0.3/b/font/td
 /tr
/table



   content



BR/
BR/
BR/
   esql:connection
esql:poolora/esql:pool
body bgcolor=lightgreen
 table  border =1 
bordercolor=blue align=center



   trth PROJECTID /th
th DEFECTS_ESTIMATED 
/th

   /tr




esql:execute-query
  esql:queryselect * from PAT_DEFECT_ESTIMATION where PROJECTID 
in('ATSE02','PPIDGIR') and DEFECTS_ESTIMATED not in(0) /esql:query
  esql:results
esql:row-results
  tr
  tdesql:get-string column=PROJECTID//td
  tdesql:get-string column=DEFECTS_ESTIMATED//td
  /tr

/esql:row-results
  /esql:results

/esql:execute-query

/table

/body



   /esql:connection





   /content
   /html

/xsp:page

The actual problem is when i try to generate a pdf where there is a image 
which has to be generated from the pipeline rather than giving something 
like fo external-graphic src(test.gif).

regards
Sreenivasan.


At 10:54 PM 10/21/02 +0200, you wrote:
Timothy Larson wrote:

My guess is that FOP does not know much about Cocoon, and cannot fetch
files from anywhere except the filesystem.


No, FOP can use http URLs.

Unfortunately, the original message was  unparsable for me,
but I suspect something is wrong with the pipeline generating
the SVG, perhaps it's serialized as text instead of XML.
Another possibility could be that the original poster complained
about a known problem where SVG text is mangled.

J.Pietschmann


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

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









Attitudes are much more important than aptitudes.
Nothing is impossible for a willing heart

Sreenivasan N.
Sony SARD
Ext 5816

Email. [EMAIL PROTECTED]
Per: [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]