Re: XSP+SVG in cocoon-2.0.4

2003-06-30 Thread Gautam Ganguly
hi Derek
  Thanks a lot for your help...and to the one who put those scripts 
  It was a real help to me!!

regards
Gautam

>>> [EMAIL PROTECTED] 06/30/03 02:41AM >>>
Gautam

Look at:

http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=105550804911211&w=2


The use of SVG is well described in a set of sample code.

Derek

>>> [EMAIL PROTECTED] 30/06/2003 01:59:30 >>>
hi there,
I want to display an SVG image along side the web page content on
the users browser(user has Adobe SVG Viewer3.0 installed ) by putting
the SVG document within my XSP page.
    As long as  my pipeline displays the svg as png raster image
using the SVG2PNG serializer,it works fine.But the associated image
properties such as Zoom-In or Zoom-out are lost. For the user to keep
using these properties through IE,i want to pass the raw SVG content
to
the users browser which then will handle the responsibility of
displaying the SVG .
   
My xsp documents looks something like this:

http://apache.org/xsp";>
  
 
Test SVG Page
 
 
 
   You can use the mouse right click event to Zoom-In 
   or Zoom-Out  

   
 
   
   
 



Currently my sitemap pipeline looks like this:
   
   

  

  What is the bext possible way to go about these? Can anyone help me
out on these?

regards,
Gautam






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



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Mailscanner thanks transtec Computers for their support.


-
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: XSP+SVG in cocoon-2.0.4

2003-06-30 Thread Derek Hohls
Gautam

Look at:

http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=105550804911211&w=2

The use of SVG is well described in a set of sample code.

Derek

>>> [EMAIL PROTECTED] 30/06/2003 01:59:30 >>>
hi there,
    I want to display an SVG image along side the web page content on
the users browser(user has Adobe SVG Viewer3.0 installed ) by putting
the SVG document within my XSP page.
As long as  my pipeline displays the svg as png raster image
using the SVG2PNG serializer,it works fine.But the associated image
properties such as Zoom-In or Zoom-out are lost. For the user to keep
using these properties through IE,i want to pass the raw SVG content to
the users browser which then will handle the responsibility of
displaying the SVG .
   
My xsp documents looks something like this:

http://apache.org/xsp";>
  
 
Test SVG Page
 
 
 
   You can use the mouse right click event to Zoom-In 
   or Zoom-Out  

   
 
   
   
 



Currently my sitemap pipeline looks like this:
   
   

  

  What is the bext possible way to go about these? Can anyone help me
out on these?

regards,
Gautam






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



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Mailscanner thanks transtec Computers for their support.


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



XSP+SVG in cocoon-2.0.4

2003-06-29 Thread Gautam Ganguly
hi there,
I want to display an SVG image along side the web page content on
the users browser(user has Adobe SVG Viewer3.0 installed ) by putting
the SVG document within my XSP page.
As long as  my pipeline displays the svg as png raster image
using the SVG2PNG serializer,it works fine.But the associated image
properties such as Zoom-In or Zoom-out are lost. For the user to keep
using these properties through IE,i want to pass the raw SVG content to
the users browser which then will handle the responsibility of
displaying the SVG .
   
My xsp documents looks something like this:

http://apache.org/xsp";>
  
 
    Test SVG Page
 
 
 
   You can use the mouse right click event to Zoom-In 
   or Zoom-Out  

   
 
   
   
 



Currently my sitemap pipeline looks like this:
   
   

  

  What is the bext possible way to go about these? Can anyone help me
out on these?

regards,
Gautam






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



Re: Perplexing PDF SVG question

2003-06-23 Thread Irving Salisbury III
Thanks for the info.  I will go down another path with this. 

Irv

J.Pietschmann wrote:

Irving Salisbury III wrote:

I am using a third partly library that does things like  url( 
#someReference), so I can't get around it.
Why is this not a bug, it seems like something that should be 
supported, and batik even has a bug fix in 1.5b4 (that happens to 
break the library code for me)


Both the SVG and FO spec avoid even talking on how url(#stuff) should
be interpreted if the SVG is embedded in a FO document. Actually,
the whole semantic of embedded content is processor dependent, in
other words we could do what we see fit. Therefore, as I said, this
is spec conformant, read: no bug. I agree that it violates user
assumptions on how the whole mess ought to be resolved. There are a
few hurdles on the way which prevent simple fixes on the FOP side
though.
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: Perplexing PDF SVG question

2003-06-23 Thread J.Pietschmann
Irving Salisbury III wrote:

I am using a third partly library that does things like  url( 
#someReference), so I can't get around it.
Why is this not a bug, it seems like something that should be supported, 
and batik even has a bug fix in 1.5b4 (that happens to break the library 
code for me)
Both the SVG and FO spec avoid even talking on how url(#stuff) should
be interpreted if the SVG is embedded in a FO document. Actually,
the whole semantic of embedded content is processor dependent, in
other words we could do what we see fit. Therefore, as I said, this
is spec conformant, read: no bug. I agree that it violates user
assumptions on how the whole mess ought to be resolved. There are a
few hurdles on the way which prevent simple fixes on the FOP side
though.
J.Pietschmann



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


Re: Perplexing PDF SVG question

2003-06-23 Thread Irving Salisbury III
I am using a third partly library that does things like  url( 
#someReference), so I can't get around it. 

Why is this not a bug, it seems like something that should be supported, 
and batik even has a bug fix in 1.5b4 (that happens to break the library 
code for me)

Irv

J.Pietschmann wrote:

Irving Salisbury III wrote:

I have embedded an SVG image into my xsl:fo document.  It renders 
fine when using command line fop.  However, when I put it in a cocoon 
pipeline, I am getting the following error:

ERROR   (2003-06-23) 08:02.42:903   [sitemap.serializer.fo2pdf.fop] 
...

java.lang.NullPointerException
   at java.net.URL.(URL.java:366)
...

   at org.apache.batik.util.ParsedURLData.buildURL(Unknown Source)


You seem to have an internal reference like 
in an inlined SVG. Don't do this, it wont work. And no, strictly
spoken this is not even a bug. Either reference the SVG as external
graphic, or use a full absolute URL to an external URL for the
reference.
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: Perplexing PDF SVG question

2003-06-23 Thread J.Pietschmann
Irving Salisbury III wrote:

I have embedded an SVG image into my xsl:fo document.  It renders fine 
when using command line fop.  However, when I put it in a cocoon 
pipeline, I am getting the following error:

ERROR   (2003-06-23) 08:02.42:903   [sitemap.serializer.fo2pdf.fop] 
...
java.lang.NullPointerException
   at java.net.URL.(URL.java:366)
...
   at org.apache.batik.util.ParsedURLData.buildURL(Unknown Source)
You seem to have an internal reference like 
in an inlined SVG. Don't do this, it wont work. And no, strictly
spoken this is not even a bug. Either reference the SVG as external
graphic, or use a full absolute URL to an external URL for the
reference.
J.Pietschmann



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


Re: Perplexing PDF SVG question

2003-06-23 Thread Irving Salisbury III




I am running this on windows XP.  Do I still need to do this?

Irv

Torsten Spindler wrote:

  On Mon, 2003-06-23 at 15:27, Irving Salisbury III wrote:
  
  
ERROR   (2003-06-23) 08:02.42:903   [sitemap.serializer.fo2pdf.fop] 
(/medicaid/sequence/first/pdf) Thread-10/PDFRenderer: svg graphic could 
not be built: null

  
  
If you use batik for rendering SVGs you need an X-Server running or Java
configured to run headless (java.awt.headless=true). As the latter may
introduce some problems (according to
http://wiki.cocoondev.org/Wiki.jsp?page=Cocoon2.1m2SetupLinuxredhat8.0) 

I start Xvfb from a start script (on RedHat 7.3):

export DISPLAY=:1
if [ ! -f /tmp/.X1-lock ]; then
/usr/X11R6/bin/Xvfb $DISPLAY -screen 0 800x600x8 &
else
echo "X-Server already running"
fi

Bye,
Torsten
  





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



Re: Perplexing PDF SVG question

2003-06-23 Thread Torsten Spindler
On Mon, 2003-06-23 at 15:27, Irving Salisbury III wrote:
> ERROR   (2003-06-23) 08:02.42:903   [sitemap.serializer.fo2pdf.fop] 
> (/medicaid/sequence/first/pdf) Thread-10/PDFRenderer: svg graphic could 
> not be built: null

If you use batik for rendering SVGs you need an X-Server running or Java
configured to run headless (java.awt.headless=true). As the latter may
introduce some problems (according to
http://wiki.cocoondev.org/Wiki.jsp?page=Cocoon2.1m2SetupLinuxredhat8.0) 

I start Xvfb from a start script (on RedHat 7.3):

export DISPLAY=:1
if [ ! -f /tmp/.X1-lock ]; then
/usr/X11R6/bin/Xvfb $DISPLAY -screen 0 800x600x8 &
else
echo "X-Server already running"
fi

Bye,
Torsten


signature.asc
Description: This is a digitally signed message part


Re: Perplexing PDF SVG question

2003-06-23 Thread Irving Salisbury III
I am on windows XP using cocoon-2.0.4.  I understand the headless issue 
and that is not my problem. 

On the same box, I use the same version of fop (0.20.4), and the command 
line fop.bat file renders it perfectly.  Running inisde cocoon gives me 
the error that I outlined below.

Irv

Schaper, Christoph wrote:

Just guessing: You are on Unix and you don't have the display variable set
when you run  cocoon? 
If this is the case, either point the display variable to your X environment
or, if you don't have one search in the cocoon docu for "headless".

Christoph

-Original Message-
From: Irving Salisbury III [mailto:[EMAIL PROTECTED]
Sent: 23 June 2003 15:27
To: [EMAIL PROTECTED]
Subject: Perplexing PDF SVG question
I have embedded an SVG image into my xsl:fo document.  It renders fine 
when using command line fop.  However, when I put it in a cocoon 
pipeline, I am getting the following error:

ERROR   (2003-06-23) 08:02.42:903   [sitemap.serializer.fo2pdf.fop] 
(/medicaid/sequence/first/pdf) Thread-10/PDFRenderer: svg graphic could 
not be built: null
java.lang.NullPointerException
   at java.net.URL.(URL.java:366)
   at java.net.URL.(URL.java:329)
   at java.net.URL.(URL.java:321)
   at java.net.URL.(URL.java:252)
   at java.net.URL.(URL.java:275)
   at org.apache.batik.util.ParsedURLData.buildURL(Unknown Source)
   at org.apache.batik.util.ParsedURLData.openStreamInternal(Unknown 
Source)
   at org.apache.batik.util.ParsedURLData.openStream(Unknown Source)
   at org.apache.batik.util.ParsedURL.openStream(Unknown Source)
   at 
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown 
Source)
   at org.apache.batik.bridge.DocumentLoader.loadDocument(Unknown Source)
   at org.apache.batik.bridge.URIResolver.getNode(Unknown Source)
   at org.apache.batik.bridge.URIResolver.getElement(Unknown Source)
   at 
org.apache.batik.bridge.BridgeContext.getReferencedElement(Unknown Source)
   at org.apache.batik.bridge.CSSUtilities.convertClipPath(Unknown Source)
   at 
org.apache.batik.bridge.AbstractGraphicsNodeBridge.buildGraphicsNode(Unknown

Source)
   at 
org.apache.batik.bridge.SVGShapeElementBridge.buildGraphicsNode(Unknown 
Source)
   at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
   at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
   at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
   at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
   at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
   at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
   at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
   at org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(Unknown 
Source)
   at org.apache.fop.render.pdf.PDFRenderer.renderSVGArea(Unknown Source)
   at org.apache.fop.svg.SVGArea.render(Unknown Source)
   at 
org.apache.fop.render.pdf.PDFRenderer.renderForeignObjectArea(Unknown 
Source)
   at org.apache.fop.layout.inline.ForeignObjectArea.render(Unknown Source)
   at org.apache.fop.render.AbstractRenderer.renderLineArea(Unknown Source)
   at org.apache.fop.layout.LineArea.render(Unknown Source)
   at org.apache.fop.render.AbstractRenderer.renderBlockArea(Unknown 
Source)
   at org.apache.fop.layout.BlockArea.render(Unknown Source)
   at 
org.apache.fop.render.AbstractRenderer.renderAreaContainer(Unknown Source)
   at org.apache.fop.layout.ColumnArea.render(Unknown Source)
   at org.apache.fop.render.AbstractRenderer.renderSpanArea(Unknown Source)
   at org.apache.fop.layout.SpanArea.render(Unknown Source)
   at 
org.apache.fop.render.AbstractRenderer.renderBodyAreaContainer(Unknown 
Source)
   at org.apache.fop.render.pdf.PDFRenderer.renderPage(Unknown Source)
   at org.apache.fop.render.pdf.PDFRenderer.render(Unknown Source)
   at org.apache.fop.apps.StreamRenderer.queuePage(Unknown Source)
   at org.apache.fop.layout.AreaTree.addPage(Unknown Source)
   at org.apache.fop.fo.pagination.PageSequence.format(Unknown Source)
   at org.apache.fop.apps.StreamRenderer.render(Unknown Source)
   at org.apache.fop.fo.FOTreeBuilder.endElement(Unknown Source)
   at 
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
   at 
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.
java:307)
   at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
684)
   at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2182)
   at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
678)
   at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2182)
   at 
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
Impl.java:2008)
   at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1171)
   at 
org.apache.xalan.transformer

RE: Perplexing PDF SVG question

2003-06-23 Thread Schaper, Christoph
Just guessing: You are on Unix and you don't have the display variable set
when you run  cocoon? 
If this is the case, either point the display variable to your X environment
or, if you don't have one search in the cocoon docu for "headless".


Christoph

-Original Message-
From: Irving Salisbury III [mailto:[EMAIL PROTECTED]
Sent: 23 June 2003 15:27
To: [EMAIL PROTECTED]
Subject: Perplexing PDF SVG question


I have embedded an SVG image into my xsl:fo document.  It renders fine 
when using command line fop.  However, when I put it in a cocoon 
pipeline, I am getting the following error:

ERROR   (2003-06-23) 08:02.42:903   [sitemap.serializer.fo2pdf.fop] 
(/medicaid/sequence/first/pdf) Thread-10/PDFRenderer: svg graphic could 
not be built: null
java.lang.NullPointerException
at java.net.URL.(URL.java:366)
at java.net.URL.(URL.java:329)
at java.net.URL.(URL.java:321)
at java.net.URL.(URL.java:252)
at java.net.URL.(URL.java:275)
at org.apache.batik.util.ParsedURLData.buildURL(Unknown Source)
at org.apache.batik.util.ParsedURLData.openStreamInternal(Unknown 
Source)
at org.apache.batik.util.ParsedURLData.openStream(Unknown Source)
at org.apache.batik.util.ParsedURL.openStream(Unknown Source)
at 
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown 
Source)
at org.apache.batik.bridge.DocumentLoader.loadDocument(Unknown Source)
at org.apache.batik.bridge.URIResolver.getNode(Unknown Source)
at org.apache.batik.bridge.URIResolver.getElement(Unknown Source)
at 
org.apache.batik.bridge.BridgeContext.getReferencedElement(Unknown Source)
at org.apache.batik.bridge.CSSUtilities.convertClipPath(Unknown Source)
at 
org.apache.batik.bridge.AbstractGraphicsNodeBridge.buildGraphicsNode(Unknown

Source)
at 
org.apache.batik.bridge.SVGShapeElementBridge.buildGraphicsNode(Unknown 
Source)
at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
at org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(Unknown 
Source)
at org.apache.fop.render.pdf.PDFRenderer.renderSVGArea(Unknown Source)
at org.apache.fop.svg.SVGArea.render(Unknown Source)
at 
org.apache.fop.render.pdf.PDFRenderer.renderForeignObjectArea(Unknown 
Source)
at org.apache.fop.layout.inline.ForeignObjectArea.render(Unknown Source)
at org.apache.fop.render.AbstractRenderer.renderLineArea(Unknown Source)
at org.apache.fop.layout.LineArea.render(Unknown Source)
at org.apache.fop.render.AbstractRenderer.renderBlockArea(Unknown 
Source)
at org.apache.fop.layout.BlockArea.render(Unknown Source)
at 
org.apache.fop.render.AbstractRenderer.renderAreaContainer(Unknown Source)
at org.apache.fop.layout.ColumnArea.render(Unknown Source)
at org.apache.fop.render.AbstractRenderer.renderSpanArea(Unknown Source)
at org.apache.fop.layout.SpanArea.render(Unknown Source)
at 
org.apache.fop.render.AbstractRenderer.renderBodyAreaContainer(Unknown 
Source)
at org.apache.fop.render.pdf.PDFRenderer.renderPage(Unknown Source)
at org.apache.fop.render.pdf.PDFRenderer.render(Unknown Source)
at org.apache.fop.apps.StreamRenderer.queuePage(Unknown Source)
at org.apache.fop.layout.AreaTree.addPage(Unknown Source)
at org.apache.fop.fo.pagination.PageSequence.format(Unknown Source)
at org.apache.fop.apps.StreamRenderer.render(Unknown Source)
at org.apache.fop.fo.FOTreeBuilder.endElement(Unknown Source)
at 
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
at 
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.
java:307)
at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
684)
at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2182)
at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
678)
at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2182)
at 
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
Impl.java:2008)
at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1171)
at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3135)
at java.lang.Thread.run(Thread.java:536)

Here is the start of the SVG element:




















Any help would be great

Perplexing PDF SVG question

2003-06-23 Thread Irving Salisbury III
I have embedded an SVG image into my xsl:fo document.  It renders fine 
when using command line fop.  However, when I put it in a cocoon 
pipeline, I am getting the following error:

ERROR   (2003-06-23) 08:02.42:903   [sitemap.serializer.fo2pdf.fop] 
(/medicaid/sequence/first/pdf) Thread-10/PDFRenderer: svg graphic could 
not be built: null
java.lang.NullPointerException
   at java.net.URL.(URL.java:366)
   at java.net.URL.(URL.java:329)
   at java.net.URL.(URL.java:321)
   at java.net.URL.(URL.java:252)
   at java.net.URL.(URL.java:275)
   at org.apache.batik.util.ParsedURLData.buildURL(Unknown Source)
   at org.apache.batik.util.ParsedURLData.openStreamInternal(Unknown 
Source)
   at org.apache.batik.util.ParsedURLData.openStream(Unknown Source)
   at org.apache.batik.util.ParsedURL.openStream(Unknown Source)
   at 
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown 
Source)
   at org.apache.batik.bridge.DocumentLoader.loadDocument(Unknown Source)
   at org.apache.batik.bridge.URIResolver.getNode(Unknown Source)
   at org.apache.batik.bridge.URIResolver.getElement(Unknown Source)
   at 
org.apache.batik.bridge.BridgeContext.getReferencedElement(Unknown Source)
   at org.apache.batik.bridge.CSSUtilities.convertClipPath(Unknown Source)
   at 
org.apache.batik.bridge.AbstractGraphicsNodeBridge.buildGraphicsNode(Unknown 
Source)
   at 
org.apache.batik.bridge.SVGShapeElementBridge.buildGraphicsNode(Unknown 
Source)
   at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
   at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
   at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
   at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
   at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
   at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
   at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
   at org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(Unknown 
Source)
   at org.apache.fop.render.pdf.PDFRenderer.renderSVGArea(Unknown Source)
   at org.apache.fop.svg.SVGArea.render(Unknown Source)
   at 
org.apache.fop.render.pdf.PDFRenderer.renderForeignObjectArea(Unknown 
Source)
   at org.apache.fop.layout.inline.ForeignObjectArea.render(Unknown Source)
   at org.apache.fop.render.AbstractRenderer.renderLineArea(Unknown Source)
   at org.apache.fop.layout.LineArea.render(Unknown Source)
   at org.apache.fop.render.AbstractRenderer.renderBlockArea(Unknown 
Source)
   at org.apache.fop.layout.BlockArea.render(Unknown Source)
   at 
org.apache.fop.render.AbstractRenderer.renderAreaContainer(Unknown Source)
   at org.apache.fop.layout.ColumnArea.render(Unknown Source)
   at org.apache.fop.render.AbstractRenderer.renderSpanArea(Unknown Source)
   at org.apache.fop.layout.SpanArea.render(Unknown Source)
   at 
org.apache.fop.render.AbstractRenderer.renderBodyAreaContainer(Unknown 
Source)
   at org.apache.fop.render.pdf.PDFRenderer.renderPage(Unknown Source)
   at org.apache.fop.render.pdf.PDFRenderer.render(Unknown Source)
   at org.apache.fop.apps.StreamRenderer.queuePage(Unknown Source)
   at org.apache.fop.layout.AreaTree.addPage(Unknown Source)
   at org.apache.fop.fo.pagination.PageSequence.format(Unknown Source)
   at org.apache.fop.apps.StreamRenderer.render(Unknown Source)
   at org.apache.fop.fo.FOTreeBuilder.endElement(Unknown Source)
   at 
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
   at 
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.java:307)
   at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:684)
   at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2182)
   at 
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:678)
   at 
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2182)
   at 
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2008)
   at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1171)
   at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3135)
   at java.lang.Thread.run(Thread.java:536)

Here is the start of the SVG element:


   
   

   
   
   


   


   






Any help would be greatly appreciated.

Irv

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


weird svg problem

2003-06-19 Thread rob



Hi,
 
I have a really strange problem when using svg 
inside the  tag.

 
When I don't use cocoon to serve the following page 
everything is fine and I get
an alert, but when cocoon serves the page the 
_javascript_ fails at getSVGDocument
(or getSvgDocument).
 
Here is my simple html page :
 

 
 </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>  function initSvg(id) {<BR>   var 
svg = document.getElementById(id);<BR>   var svgDoc = 
svg.getSVGDocument();<BR>   alert(svgDoc);<BR>  }</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> 
 

 
   data=""  width="100%" 
height="100%"> 
 

 

 
Here is a snippet from my sitemap :
 
          
          

This problem does not occurr when I use the 
 tag - but I prefer
to use  so that I can display a jpeg 
if the SVG plugin is not
installed.
 
I have tried using cocoon 2.04 and 2.1m2 with the same results.
 
Any ideas ?
 
Thanks in advance,
 
Rob Gregory


embed jpg/png/svg image in excel

2003-06-16 Thread Joydeep Bose
Hi, 

I am using gnumeric xml format to specify excel data and serialising it to 
excel format using cocoon HSSFSerialiser. 
Can somebody direct me how I can embed jpg/png or svg images in that excel 
file using the xml format. 

I am using cocoon 2.0.4. Does the HSSFSerialiser that comes with 2.0.4 support 
images ? 
Thanks 
Joydeep 


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



Embed SVG: config example

2003-06-13 Thread Windler Burri, Sarah
Title: Message



Hi
because I did not 
found an example for embed SVG in a HTML file with Cocoon, I used 
a lot of time to build the configuration files below. But now I have it. 
Maybe the script helps someone else in the same 
situation.
Regards 

Sarah 
Windler
 

 
http://apache.org/cocoon/sitemap/1.0">
  
   
src=""/>src=""/> 
 
http://apache.org/xsp" 
    xmlns:xsp-formval="http://apache.org/xsp/form-validator/2.0">String 
entryString = new 
String("");   entryString  
 
 
 
http://apache.org/xsp">  
String entryString = 
request.getParameter("entryString");  
entryString   
 
http://www.w3.org/1999/XSL/Transform"      
xmlns:svg="http://www.w3.org/2000/svg"   
xmlns:xlink="http://www.w3.org/1999/xlink">    
  
     
  
 
    
   
style="stroke: blue; fill: 
lightblue;">   
x="{ $box-width div 2}" 
 
y="{$box-height div 2}"> 
  
dur="10s" 
repeatCount="indefinite"/>  
  
    
   
   
       
 

http://www.w3.org/1999/XSL/Transform" xmlns:fe="http://apache.org/cocoon/fragmentextractor/2.0">   images/[EMAIL PROTECTED]" 
name="SVGEmbed" width="600" 
height="200"  
type="image/svg+xml" pluginspage="http::/www.adobe.com/svg/viewer/install/"/>  

http://www.w3.org/1999/XSL/Transform">    
    [EMAIL PROTECTED]}" action=""mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]}" 
method="POST">         
      
        
     [EMAIL PROTECTED]}" 
value="[EMAIL PROTECTED]"/>  
      [EMAIL PROTECTED]}" size="[EMAIL PROTECTED]}">   
  
      
   

 
http://www.w3.org/1999/XSL/Transform">        
 
 
Embed 
SVG 
     
Embed SVG in 
HTML    
    
    
 
 
   
Revised: 13. Juni 2003 
(sw) 
   
Build with Cocoonhttp://xml.apache.org/cocoon/index.html">Cocoon>.   
 
 
    
 
   

 



java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGDocument

2003-06-12 Thread thomas loubrieu
Hi,

I have a problem with the svg2jpeg serializer.
First I worked with tomcat 4.0.3, cocoon 2.0.4 and j2sdk1.4.1_02 on 
debian linux, and everything was allright.

Now, I have to make my work run on another debian with tomcat 4.0.3, 
cocoon 2.0.4, as before, but j2sdk1.4.0_02.
I get the following error when I use the SVG2JPEG serializer (even with 
the demo example) :

catalina.out :

java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGDocument
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at 
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1631)
at 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:926)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)


Did someone already solve this problem ?

Thanks,

Bye,

Thomas

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


Re: Using dynamic SVG with FOP

2003-06-10 Thread J.Pietschmann
Markus Alin wrote:
We are currently building a reporting application featuring PDF
generation with FOP. Within the FOP we call a url generating a jpeg
image by transforming a XML into a SVG and by serializing this into a
jpeg. This works perfectly for static jpegs but by the start of the jpeg
matcher the application does not seem to have a session and therefore no
XML can be generated (we user readDOMSession transformers).
You can try to embed the dynamic SVGs directly into the
FO as fo:instream-foreign-object. Use aggregation or
XInclude to get the data into the pipeline.
J.Pietschmann

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


Using dynamic SVG with FOP

2003-06-10 Thread Markus Alin
Hi All!!

We are currently building a reporting application featuring PDF
generation with FOP. Within the FOP we call a url generating a jpeg
image by transforming a XML into a SVG and by serializing this into a
jpeg. This works perfectly for static jpegs but by the start of the jpeg
matcher the application does not seem to have a session and therefore no
XML can be generated (we user readDOMSession transformers). This
ofcourse works perfectly when calling the jpeg pipeline stand alone but
it does not work when calling it from inside the XSLT stylesheet
generating the FOP.

Any ideas how to solve this???

The calling code and the jpeg matcher is attached below!! 

Best regards, Markus









   Products
   



  

  
  
  
  




  
  
  


  
  
  


  
  
  






  


===
Markus Alin tel: +41 1 455 70 03
Swissrisk AGfax: +41 1 455 70 01
Räffelstrasse 32mailto:[EMAIL PROTECTED]
8045 Zürich www.swissrisk.com
===


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



AW: All hope lost: Can FragmentExtractor serve SVG images to IE (socket write error) ?

2003-06-07 Thread Christian Kurz
Here's a work-around which worked for me (not a nice one, I know):

- to fix the NPEs: I have replaced the cocoon 2.0.4 files by the 2.1m2
ones for AbstractDOMFragment and DOMStreamer as well as replace the uri
null value for the fragment-id attribute in FragmentExtractorTransformer
by an empty string.

- to fix the message "Could not find fragment ..." in
FragmentExtractorGenerator: add logic to delete the document fragment
after the SECOND request or (in case of using Netscape) after 5 minutes.

- to remove java.net.SocketExceptions from core.log:
try/catch around doc.generate() in FragmentExtractorGenerator eating all
java.net.SocketExceptions.

- to remove java.net.SocketExceptions from error.log:
CocoonServlet.java: logic to check before writing a log record whether
there was a java.net.SocketException

-Ursprüngliche Nachricht-
Von: Christian Kurz [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 4. Juni 2003 22:58
An: [EMAIL PROTECTED]
Betreff: All hope lost: Can FragmentExtractor serve SVG images to IE
(socket write error) ?

Hi,

has anybody successfully served svg images (not svg rendered as JPG or
PNG, this just works great!) to the IE using the FragmentGenerator? I
would really appreciate any information or code snippets about sitemap
setup and versions used (OS, JDK, Tomcat, Cocoon, Xalan). 


After trying to fix what I though was a simple problem for 1.5 weeks I
have got no ideas on how to investigate anymore:

I am trying to serve a generated svg image as an svg file. The two
pipelines are basically:

FileGenerator
XSLT-Transformer to turn xml data into a xml document containing

Custom-Transformer for calling GraphViz to create SVG elements
in xml document
XSLT-Transformer
FragmentExtractor
XSLT-Tranformer 
HTML-Serializer

FragmentGenerator
SVGXML-Serializer

All of this works fine when requesting the page using Netscape Navigator
(valid page and images, no errors in log file). As soon as I use the
Microsoft Internet Explorer to request the same page, the HTML page is
returned, but the svg image has not been served properly. According to
the log file there was a "java.net.SocketException: Software caused
connection abort: socket write error" (details included below), in
certain configurations I am receiving a NPE in DOMStreamer.stream
instead (details included below). As discussed in other threads
(http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=101994024218728&w=2,
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=103907382827236&w=2),
this looks like IE requesting the svg twice and aborting the first
request causing the trouble. Is the FragmentExtractor able to handle
this, if the serializer is not JPG or PNG?

I am using WinXP and have tried various configurations: 
-cocoon (2.0.3, 2.0.4), 
-Tomcat (4.1.24, 4.1.18)
-JDK (1.4.0_02, 1.4.1_02)
-XALAN (2.3.1, 2.4.1, 2.5.1) and SAXON (6.5), 
-incremental processing turned on and off.

Any hints, ideas on further research very much appreciated.

Thanks in advance,
Christian


- SOCKET WRITE ERROR -
FATAL_E (2003-05-28) 00:04.34:399   [core.xslt-processor]
(/eti/etimdb/imsds-graph/e920f-f56ba6b144--8000.svg)
Thread-10/TraxErrorHandler: java.net.SocketException: Software caused
connection abort: socket write error
javax.xml.transform.TransformerException: java.net.SocketException:
Software caused connection abort: socket write error
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.j
ava:690)
at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(Ele
mApplyTemplates.java:423)
at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates
.java:226)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Trans
formerImpl.java:2182)
at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transfo
rmerImpl.java:2008)
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm
pl.java:1171)
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:31
35)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.net.SocketException: Software caused connection abort:
socket write error
at
org.apache.xalan.serialize.SerializerToXML.outputLineSep(SerializerToXML
.java:199)
at
org.apache.xalan.serialize.SerializerToXML.indent(SerializerToXML.java:2
308)
at
org.apache.xalan.serialize.SerializerToHTML.startElement(SerializerToHTM
L.java:630)
at
org.apache.xalan.transformer.TransformerIdentityImpl.startElement(Transf
ormerIdentityImpl.java:1017)
at
org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:
130)
at
org.apache.cocoon.serialization.AbstractTextSerializer$NamespaceAsAttrib
utes.startElement(Ab

Re: All hope lost: Can FragmentExtractor serve SVG images to IE (socket write error) ?

2003-06-07 Thread Torsten Knodt
On Thursday 05 June 2003 15:01, Christian Kurz wrote:
CK> My understanding was that 2.1 is still alpha. Do you have any system in
CK> production, yet? We are quite close to release date...
It is alpha. But when you test your pages and they work, it's OK. Currently 
I'm using cocoon only to generate static pages, and for this it's OK. For 
servlet mode, it's still to slow for me.

-- 
Domain in provider transition, hope for smoothness. Planed date is 1.7.2003.


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



AW: All hope lost: Can FragmentExtractor serve SVG images to IE (socket write error) ?

2003-06-05 Thread Christian Kurz
> > All of this works fine when requesting the page using Netscape
Navigator
> > (valid page and images, no errors in log file). As soon as I use the
> > Microsoft Internet Explorer to request the same page, the HTML page
is
> > returned, but the svg image has not been served properly. According
to
> > the log file there was a "java.net.SocketException: Software caused
> > connection abort: socket write error" (details included below),
>
>I remember that other software (Squeak) had a somewhat similar problem
>which
>was solved by changing something in the networking layer. The browsers
were
>different regarding opening new connections. I think Netscape created
one
>connection to download one file after another while MSIE created a
>connection for every single file on a webpage. Something like that. It
took
>some time to fix that problem...

Thank you, Andreas.

I am afraid this is way too deep for my java skills. You don't have any
source code files/ changes by any chance?

Best regards,
Christian




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



AW: All hope lost: Can FragmentExtractor serve SVG images to IE (socket write error) ?

2003-06-05 Thread Christian Kurz
TK> To my 2.0 times I also had the problem. The problem was gone since I
use 
TK> cocoon 2.1. I guess it has something to do with pipeline caching,
but TK> have never tested.

Torsten,

thanks for the quick feedback.

My understanding was that 2.1 is still alpha. Do you have any system in
production, yet? We are quite close to release date...
 
Best regards,
Christian



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



Re: All hope lost: Can FragmentExtractor serve SVG images to IE (socket write error) ?

2003-06-05 Thread Andreas Kuckartz
> All of this works fine when requesting the page using Netscape Navigator
> (valid page and images, no errors in log file). As soon as I use the
> Microsoft Internet Explorer to request the same page, the HTML page is
> returned, but the svg image has not been served properly. According to
> the log file there was a "java.net.SocketException: Software caused
> connection abort: socket write error" (details included below),

I remember that other software (Squeak) had a somewhat similar problem which
was solved by changing something in the networking layer. The browsers were
different regarding opening new connections. I think Netscape created one
connection to download one file after another while MSIE created a
connection for every single file on a webpage. Something like that. It took
some time to fix that problem...

Andreas


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



Re: All hope lost: Can FragmentExtractor serve SVG images to IE (socket write error) ?

2003-06-05 Thread Torsten Knodt
On Wednesday 04 June 2003 22:57, Christian Kurz wrote:
CK> has anybody successfully served svg images (not svg rendered as JPG or
CK> PNG, this just works great!) to the IE using the FragmentGenerator? I
CK> would really appreciate any information or code snippets about sitemap
CK> setup and versions used (OS, JDK, Tomcat, Cocoon, Xalan).

Yes, works great on konqueror, netscape (mozilla), ie 5.5 and ie 6. Didn't try 
others.

CK> -cocoon (2.0.3, 2.0.4),

To my 2.0 times I also had the problem. The problem was gone since I use 
cocoon 2.1. I guess it has something to do with pipeline caching, but have 
never tested.

Regards
Torsten

-- 
Domain in provider transition, hope for smoothness. Planed date is 1.7.2003.


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



All hope lost: Can FragmentExtractor serve SVG images to IE (socket write error) ?

2003-06-05 Thread Christian Kurz
Hi,

has anybody successfully served svg images (not svg rendered as JPG or
PNG, this just works great!) to the IE using the FragmentGenerator? I
would really appreciate any information or code snippets about sitemap
setup and versions used (OS, JDK, Tomcat, Cocoon, Xalan). 


After trying to fix what I though was a simple problem for 1.5 weeks I
have got no ideas on how to investigate anymore:

I am trying to serve a generated svg image as an svg file. The two
pipelines are basically:

FileGenerator
XSLT-Transformer to turn xml data into a xml document containing

Custom-Transformer for calling GraphViz to create SVG elements
in xml document
XSLT-Transformer
FragmentExtractor
XSLT-Tranformer 
HTML-Serializer

FragmentGenerator
SVGXML-Serializer

All of this works fine when requesting the page using Netscape Navigator
(valid page and images, no errors in log file). As soon as I use the
Microsoft Internet Explorer to request the same page, the HTML page is
returned, but the svg image has not been served properly. According to
the log file there was a "java.net.SocketException: Software caused
connection abort: socket write error" (details included below), in
certain configurations I am receiving a NPE in DOMStreamer.stream
instead (details included below). As discussed in other threads
(http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=101994024218728&w=2,
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=103907382827236&w=2),
this looks like IE requesting the svg twice and aborting the first
request causing the trouble. Is the FragmentExtractor able to handle
this, if the serializer is not JPG or PNG?

I am using WinXP and have tried various configurations: 
-cocoon (2.0.3, 2.0.4), 
-Tomcat (4.1.24, 4.1.18)
-JDK (1.4.0_02, 1.4.1_02)
-XALAN (2.3.1, 2.4.1, 2.5.1) and SAXON (6.5), 
-incremental processing turned on and off.

Any hints, ideas on further research very much appreciated.

Thanks in advance,
Christian


- SOCKET WRITE ERROR -
FATAL_E (2003-05-28) 00:04.34:399   [core.xslt-processor]
(/eti/etimdb/imsds-graph/e920f-f56ba6b144--8000.svg)
Thread-10/TraxErrorHandler: java.net.SocketException: Software caused
connection abort: socket write error
javax.xml.transform.TransformerException: java.net.SocketException:
Software caused connection abort: socket write error
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.j
ava:690)
at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(Ele
mApplyTemplates.java:423)
at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates
.java:226)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Trans
formerImpl.java:2182)
at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transfo
rmerImpl.java:2008)
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm
pl.java:1171)
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:31
35)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.net.SocketException: Software caused connection abort:
socket write error
at
org.apache.xalan.serialize.SerializerToXML.outputLineSep(SerializerToXML
.java:199)
at
org.apache.xalan.serialize.SerializerToXML.indent(SerializerToXML.java:2
308)
at
org.apache.xalan.serialize.SerializerToHTML.startElement(SerializerToHTM
L.java:630)
at
org.apache.xalan.transformer.TransformerIdentityImpl.startElement(Transf
ormerIdentityImpl.java:1017)
at
org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:
130)
at
org.apache.cocoon.serialization.AbstractTextSerializer$NamespaceAsAttrib
utes.startElement(AbstractTextSerializer.java:486)
at
org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:
130)
at
org.apache.xalan.transformer.ResultTreeHandler.flushElem(ResultTreeHandl
er.java:856)
at
org.apache.xalan.transformer.ResultTreeHandler.flushPending(ResultTreeHa
ndler.java:931)
at
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHand
ler.java:306)
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.j
ava:684)
... 7 more
-
java.net.SocketException: Software caused connection abort: socket write
error
at
org.apache.xalan.serialize.SerializerToXML.outputLineSep(SerializerToXML
.java:199)
at
org.apache.xalan.serialize.SerializerToXML.indent(SerializerToXML.java:2
308)
at
org.apache.xalan.serialize.SerializerToHTML.startElement(SerializerToHTM
L.java:630)
at
org.apache.xalan.transformer.TransformerIdentityImpl.startElement(Transf
ormerIdentityImpl.java:1017)
at
org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXML

generate wbmp from svg

2003-03-26 Thread bruno nunes jacinto
How can I do to generate WPMP from a SVG file in cocoon?
Is there a serializer? Or what can I do?

Thanks for your help

Bruno Jacinto

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



generate wbmp from svg

2003-03-26 Thread bruno nunes jacinto
How can I do to generate WPMP from a SVG file in cocoon?
Is there any serializer?
 Or what can I do?


Thanks for your help

Bruno jacinto.

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



Re: FOP, inline SVG, fonts

2003-03-12 Thread J.Pietschmann
Joerg Heinicke wrote:
Hmm, maybe because we use JBoss + Tomcat + Cocoon. Do you know what 
changed between Fop 0.20.3 and 0.20.4, that prevents my old stuff from 
working? Or is it deep Fop interna?
There were two changes: the switch from using Xerces native to JAXP
for creating the XML parser for reading the config file and feeding
the metrics-file name directly to the InputSource constructor instead
of creating a File first (which means it is interpreted as URL rather
than as filename, making Windows path names like "C:\foo" problematic).
The new 0.20.5 release has some improvements, in particular you can
supply a baseURL for images and a fontBaseURL for font related files.
Documentation may be a bit sparse, you might have to blackmail Jeremias
to get it :-)
If you (or anybody else) are interested into looking at ideas for the
FOP API redesign, look at
 http://nagoya.apache.org/wiki/apachewiki.cgi?FOPAvalonization
Also, it's a Wiki, you *can* edit it to bring in your ideas.
J.Pietschmann

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


Re: FOP, inline SVG, fonts

2003-03-12 Thread Vadim Gritsenko
Joerg Heinicke wrote:

Why must it be absolute paths now? In Cocoon 2.0.3 with Fop 0.20.3 
the relative paths worked without any problems. But no longer in 
Cocoon 2.0.4 with Fop 0.20.4? 


Not that it *must*... Yes it should work with relative path. But 
these paths will be relative to the current working directory of JVM 
- not relative to webapp context or sitemap. Because of this, it is 
easier to say that paths to the fonts must be absolute paths.


Hmm, maybe because we use JBoss + Tomcat + Cocoon. Do you know what 
changed between Fop 0.20.3 and 0.20.4, that prevents my old stuff from 
working? Or is it deep Fop interna?


No, I don't know what has been changed.

Vadim





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


Re: FOP, inline SVG, fonts

2003-03-12 Thread Joerg Heinicke
Why must it be absolute paths now? In Cocoon 2.0.3 with Fop 0.20.3 the 
relative paths worked without any problems. But no longer in Cocoon 
2.0.4 with Fop 0.20.4? 


Not that it *must*... Yes it should work with relative path. But these 
paths will be relative to the current working directory of JVM - not 
relative to webapp context or sitemap. Because of this, it is easier to 
say that paths to the fonts must be absolute paths.


Hmm, maybe because we use JBoss + Tomcat + Cocoon. Do you know what changed 
between Fop 0.20.3 and 0.20.4, that prevents my old stuff from working? Or 
is it deep Fop interna?

Joerg

--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
CeBIT 2003 vom 12. bis zum 19. März in Hannover

VIRBUS stellt gemeinsam mit der IBM-Tochter IT-Services and Solutions
GmbH aus.
Lassen Sie sich überraschen von den neuen, umfassenden Möglichkeiten im
Internet-gestützten Zahlungsverkehr.
Besuchen Sie uns: Halle 3, Stand D55.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: FOP, inline SVG, fonts

2003-03-12 Thread Vadim Gritsenko
Joerg Heinicke wrote:

Hello Vadim,

Vadim Gritsenko wrote:
> Frank made a mistake... New configuration syntax which supports Cocoon
> protocols looks like:
>
> context://webapps/ROOT/doc/fop/config.xml
>
> Old configuration (with src attribute) does not support protocols, 
works
> only with file name (see FOPSerializer.java).

I tested the new configuration of the pdf serializer, but no luck. The 
userconfig file is found as before (but yeah, I use the new 
configuration ;-), but there is still a null in the path to the fonts:

Failed to read font metrics file 
nullwebapps/ROOT/doc/fop/fonts/Verdana.xml: 
/home/jheinicke/development/IUPB/iupb/nullwebapps/ROOT/doc/fop/fonts/Verdana.xml 

-- 


Don't know; was working for me last time I tested.


FOP supports only links to the fonts in absolute file format, 
starting with "C:/", because currently there is no way to tell FOP 
current context. No support for Cocoon URIs, for now. See 
http://xml.apache.org/cocoon/userdocs/serializers/pdf-serializer.html.


Why must it be absolute paths now? In Cocoon 2.0.3 with Fop 0.20.3 the 
relative paths worked without any problems. But no longer in Cocoon 
2.0.4 with Fop 0.20.4? 


Not that it *must*... Yes it should work with relative path. But these 
paths will be relative to the current working directory of JVM - not 
relative to webapp context or sitemap. Because of this, it is easier to 
say that paths to the fonts must be absolute paths.

Vadim



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


Re: FOP, inline SVG, fonts

2003-03-12 Thread Joerg Heinicke
But I got excalibur source resolving to work in *a* way with Cocoon 2.1 
or better said with excalibur-sourceresolve-20030130.jar. I don't know 
how good or bad it is. Interests?
Carsten already did it today morning.

Joerg

--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
CeBIT 2003 vom 12. bis zum 19. März in Hannover

VIRBUS stellt gemeinsam mit der IBM-Tochter IT-Services and Solutions
GmbH aus.
Lassen Sie sich überraschen von den neuen, umfassenden Möglichkeiten im
Internet-gestützten Zahlungsverkehr.
Besuchen Sie uns: Halle 3, Stand D55.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: FOP, inline SVG, fonts

2003-03-12 Thread Joerg Heinicke
Hello Vadim,

Vadim Gritsenko wrote:
> Frank made a mistake... New configuration syntax which supports Cocoon
> protocols looks like:
>
> context://webapps/ROOT/doc/fop/config.xml
>
> Old configuration (with src attribute) does not support protocols, works
> only with file name (see FOPSerializer.java).
I tested the new configuration of the pdf serializer, but no luck. The 
userconfig file is found as before (but yeah, I use the new configuration 
;-), but there is still a null in the path to the fonts:

Failed to read font metrics file nullwebapps/ROOT/doc/fop/fonts/Verdana.xml: 
/home/jheinicke/development/IUPB/iupb/nullwebapps/ROOT/doc/fop/fonts/Verdana.xml

--

FOP supports only links to the fonts in absolute file format, starting 
with "C:/", because currently there is no way to tell FOP current 
context. No support for Cocoon URIs, for now. See 
http://xml.apache.org/cocoon/userdocs/serializers/pdf-serializer.html.
Why must it be absolute paths now? In Cocoon 2.0.3 with Fop 0.20.3 the 
relative paths worked without any problems. But no longer in Cocoon 2.0.4 
with Fop 0.20.4?

But I got excalibur source resolving to work in *a* way with Cocoon 2.1 or 
better said with excalibur-sourceresolve-20030130.jar. I don't know how good 
or bad it is. Interests?

Regards,

Joerg

--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
CeBIT 2003 vom 12. bis zum 19. März in Hannover

VIRBUS stellt gemeinsam mit der IBM-Tochter IT-Services and Solutions
GmbH aus.
Lassen Sie sich überraschen von den neuen, umfassenden Möglichkeiten im
Internet-gestützten Zahlungsverkehr.
Besuchen Sie uns: Halle 3, Stand D55.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: FOP, inline SVG, fonts

2003-03-11 Thread Joerg Heinicke
Is there any reason, why the src-attribute is not used in the new 
implementation? Backwards compatibility could not be the reason, because 
as you can see for my example, it only breaks the working without any 
claiming on the changed configuration. And if it is the general 
configuration scheme (not using attributes, but the text nodes), why 
src-attribute is not completely deactivated or at least throwing a warning?

Hmm, I had a look on the FOPSerializer and saw the deprecated url 
resolving. I tried to jump into the excalibur sourceresolve water, but 
the water is to deep, I got lost ;-) I would need Carsten's help or an 
already working example of the new source resolving.

Of course I can provide a patch for the userdocs. I will have a look on 
it in the next days. But what about Javadoc? I don't know what to do ...

Regards,

Joerg

Vadim Gritsenko wrote:
Joerg Heinicke wrote:

Vadim, can you please add the changed configuration of pdf serializer 
to the documentation? There is only the src-attribute mentioned. 


Not only documentation is outdated... Javadoc is missing too!

Care to provide a patch? ;-)

Vadim


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


Re: FOP, inline SVG, fonts

2003-03-11 Thread Vadim Gritsenko
Joerg Heinicke wrote:

Vadim, can you please add the changed configuration of pdf serializer 
to the documentation? There is only the src-attribute mentioned. 


Not only documentation is outdated... Javadoc is missing too!

Care to provide a patch? ;-)

Vadim



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


Re: FOP, inline SVG, fonts

2003-03-11 Thread Joerg Heinicke
Hello Vadim,

Frank made a mistake... New configuration syntax which supports Cocoon 
protocols looks like:

context://webapps/ROOT/doc/fop/config.xml

Old configuration (with src attribute) does not support protocols, works 
only with file name (see FOPSerializer.java).
Ah, thanks. So at least Cocoon 2.0.4 should work completely.

>> And when changing only the links to the font files in config.xml
>> using context:// protocol:
>
> FOP supports only links to the fonts in absolute file format, starting
> with "C:/", because currently there is no way to tell FOP current
> context. No support for Cocoon URIs, for now. See
> http://xml.apache.org/cocoon/userdocs/serializers/pdf-serializer.html.
It was only a test. As I wrote in my original mail, I have relative 
paths in my config file, what seems to work.

Vadim, can you please add the changed configuration of pdf serializer to 
the documentation? There is only the src-attribute mentioned.

Regards,

Joerg

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


Re: FOP, inline SVG, fonts

2003-03-11 Thread Vadim Gritsenko
Joerg Heinicke wrote:

Hello Frank,

sorry, but this doesn't work in both Cocoon versions. I tested it some 
time ago with Cocoon 2.0.3 and now with with 2.0.4:


Frank made a mistake... New configuration syntax which supports Cocoon 
protocols looks like:

context://webapps/ROOT/doc/fop/config.xml

Old configuration (with src attribute) does not support protocols, works 
only with file name (see FOPSerializer.java).

...

And when changing only the links to the font files in config.xml using 
context:// protocol:


FOP supports only links to the fonts in absolute file format, starting 
with "C:/", because currently there is no way to tell FOP current 
context. No support for Cocoon URIs, for now. See 
http://xml.apache.org/cocoon/userdocs/serializers/pdf-serializer.html.


2003-03-11 18:23:22,125 INFO  [org.jboss.web.localhost.Engine] ERROR 
(2003-03-11) 18:23.22:124   [manager.] (/conweb/stream.secure.pdf) 
Thread-7/MessageHandler: Failed to read font metrics file 
nullcontext://webapps/ROOT/doc/fop/fonts/Verdana.xml : unknown 
protocol: nullcontext

And with Batik: it's one of the most simplest SVG possible: basic 
shapes, rect in SVG spec. Furthermore (again the stacktrace) the NPE 
happens in a Fop class:

javax.xml.transform.TransformerException: java.lang.NullPointerException
at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1226) 

at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3135) 

at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.NullPointerException
at 
org.apache.fop.render.pdf.fonts.LazyFont.getAscender(Unknown Source)
at org.apache.fop.layout.FontState.getAscender(Unknown Source)


Don't know solution for this one, but try disabling incremental processing.

Vadim


Even it brought no solution, thanks for your help.

Joerg




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


Re: FOP, inline SVG, fonts

2003-03-11 Thread Joerg Heinicke
Hello Frank,

sorry, but this doesn't work in both Cocoon versions. I tested it some time 
ago with Cocoon 2.0.3 and now with with 2.0.4:

2003-03-11 18:26:33,236 INFO  [org.jboss.web.localhost.Engine] DEBUG 
(2003-03-11) 18:26.33:210   [manager ] (/conweb/stream.secure.pdf) 
Thread-7/ExcaliburComponentSelector: UnnamedSelector: ComponentSelector 
could not access the Component for hint [pdf]
org.apache.avalon.framework.configuration.ConfigurationException: Cannot 
load configuration from 
file:/home/jheinicke/development/IUPB/iupb/context:/webapps/ROOT/doc/fop/config.xml
at 
org.apache.cocoon.serialization.FOPSerializer.configure(FOPSerializer.java:196)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:264)

And when changing only the links to the font files in config.xml using 
context:// protocol:

2003-03-11 18:23:22,125 INFO  [org.jboss.web.localhost.Engine] ERROR 
(2003-03-11) 18:23.22:124   [manager.] (/conweb/stream.secure.pdf) 
Thread-7/MessageHandler: Failed to read font metrics file 
nullcontext://webapps/ROOT/doc/fop/fonts/Verdana.xml : unknown protocol: 
nullcontext

And with Batik: it's one of the most simplest SVG possible: basic shapes, 
rect in SVG spec. Furthermore (again the stacktrace) the NPE happens in a 
Fop class:

javax.xml.transform.TransformerException: java.lang.NullPointerException
at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1226)
at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3135)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.NullPointerException
at org.apache.fop.render.pdf.fonts.LazyFont.getAscender(Unknown Source)
at org.apache.fop.layout.FontState.getAscender(Unknown Source)

Even it brought no solution, thanks for your help.

Joerg

Frank Taffelt wrote:

  



you should try .
On the other side the problem can be bug in batik which occurs as a NPE.
When using internal url targets in your fo:instream-foreign-object this
problem is present. This bug is fixed in current batik version 1.5 beta4.
This solved some of my problem's i had with current HEAD (cocoon-2.1).
hth,
Frank
--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
CeBIT 2003 vom 12. bis zum 19. März in Hannover

VIRBUS stellt gemeinsam mit der IBM-Tochter IT-Services and Solutions
GmbH aus.
Lassen Sie sich überraschen von den neuen, umfassenden Möglichkeiten im
Internet-gestützten Zahlungsverkehr.
Besuchen Sie uns: Halle 3, Stand D55.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: FOP, inline SVG, fonts

2003-03-11 Thread Frank Taffelt
>  src="org.apache.cocoon.serialization.FOPSerializer">
>
> 

you should try .

On the other side the problem can be bug in batik which occurs as a NPE.
When using internal url targets in your fo:instream-foreign-object this
problem is present. This bug is fixed in current batik version 1.5 beta4.
This solved some of my problem's i had with current HEAD (cocoon-2.1).

hth,
Frank



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



FOP, inline SVG, fonts

2003-03-11 Thread Joerg Heinicke
Hello Cocooners,

I have some problems with Cocoon 2.0.3 or 2.0.4, Fop 0.20.3 or 0.20.4, 
inline SVG (because using cocoon:// protocol does not work in general) and 
fonts.

Using Cocoon 2.0.3 with Fop 0.20.3 my PDFs look really nice according to 
fonts. But I can not include SVGs using fo:instream-foreign-object: 
java.lang.NoClassDefFoundError: org/apache/batik/dom/svg/DefaultSVGContext.
This class does not exist in batik-all-1.5b2.jar used in Cocoon, but the 
reason can't be the Batik jar, because it works in Cocoon 2.0.4 with the 
same jar.

On the other hand the fonts only work in 2.0.3. They are configured in 
Cocoon's sitemap:


  


and the user-config looks like


  

  


  


  


  

  

They work *despite* bug 6533 
(http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6533) and Vadim's fix, 
which was - according to CVS commit messages - applied after Cocoon 2.0.3 
release 
(http://cvs.apache.org/viewcvs.cgi/cocoon-2-historical/src/java/org/apache/cocoon/serialization/Attic/FOPSerializer.java?only_with_tag=cocoon_2_0_3_branch).

The same does not work in Cocoon 2.0.4. I get an NullPointerException, 
because _something_ is null. The config file is loaded correctly, but 
something goes wrong with the font files:

2003-03-11 16:04:00,896 INFO  [org.jboss.web.localhost.Engine] ERROR 
(2003-03-11) 16:04.00:896   [manager.] (/conweb/stream.secure.pdf) 
Thread-8/MessageHandler: Failed to read font metrics file 
nullwebapps/ROOT/doc/fop/fonts/Verdana.xml : 
/home/jheinicke/development/IUPB/iupb/nullwebapps/ROOT/doc/fop/fonts/Verdana.xml

(see the both 'null' above)

beginning of stacktrace:
javax.xml.transform.TransformerException: java.lang.NullPointerException
at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1226)
at 
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3135)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.NullPointerException
at org.apache.fop.render.pdf.fonts.LazyFont.getAscender(Unknown Source)
at org.apache.fop.layout.FontState.getAscender(Unknown Source)



So what should I do? Should I abstain from using fonts or from using 
dynamically generated images? I want both :-) Or is it in current CVS 
version possible to use the cocoon:// protocol, which would be the most 
prefered solution.

Has anyone solved a similar problem?

Regards,

Joerg

--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
CeBIT 2003 vom 12. bis zum 19. März in Hannover

VIRBUS stellt gemeinsam mit der IBM-Tochter IT-Services and Solutions
GmbH aus.
Lassen Sie sich überraschen von den neuen, umfassenden Möglichkeiten im
Internet-gestützten Zahlungsverkehr.
Besuchen Sie uns: Halle 3, Stand D55.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Cocoon and SVG graphics under SuSe Linux

2003-03-10 Thread Martin Holz
Niclas Hedhman <[EMAIL PROTECTED]> writes:

> On Monday 10 March 2003 21:20, Martin Holz wrote:
> > [EMAIL PROTECTED] writes:
> > > I'm running Cocoon's SVG sample (under static-content, SVG
> > > introduction page) under SuSe Linux 8.1. All works fine except for
> > > the graphics. They don't show up, but generate loads of errors in
> > > WEB-INF/logs instead.
> 
> > Are the pngs created at all? One common problem was, that
> > die SVG serializer needs access to the X11 DISPLAY for some
> > versions of AWT. I think it's not a problem for JDK 1.4.1.
> >
> > Something like
> >
> > /usr/X11R6/bin/Xvfb :1 -screen 0 800x600x8 &
> > export DISPLAY=:1
> >
> > in your catalina.sh  should help.
> 
> One more thing; make sure you have the XFree86-Xvfb module (Does Suse use 
> RPMs?) installed.

Yes, but they are not always compatible with redhat.
On Suse-7.3 it's in the package xextra-4.1.0-45.


Martin



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



Re: Cocoon and SVG graphics under SuSe Linux

2003-03-10 Thread Niclas Hedhman
On Monday 10 March 2003 21:20, Martin Holz wrote:
> [EMAIL PROTECTED] writes:
> > I'm running Cocoon's SVG sample (under static-content, SVG
> > introduction page) under SuSe Linux 8.1. All works fine except for
> > the graphics. They don't show up, but generate loads of errors in
> > WEB-INF/logs instead.

> Are the pngs created at all? One common problem was, that
> die SVG serializer needs access to the X11 DISPLAY for some
> versions of AWT. I think it's not a problem for JDK 1.4.1.
>
> Something like
>
> /usr/X11R6/bin/Xvfb :1 -screen 0 800x600x8 &
> export DISPLAY=:1
>
> in your catalina.sh  should help.

One more thing; make sure you have the XFree86-Xvfb module (Does Suse use 
RPMs?) installed.

And as Martin mentioned, I also heard that under 1.4.1 it is no longer 
required to have X running. But _I_ have not tested that yet - IIABDFI (If it 
ain't broke, don't fix it).

Niclas

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



Re: Cocoon and SVG graphics under SuSe Linux

2003-03-10 Thread Martin Holz
[EMAIL PROTECTED] writes:

> I'm running Cocoon's SVG sample (under static-content, SVG 
> introduction page) under SuSe Linux 8.1. All works fine except for 
> the graphics. They don't show up, but generate loads of errors in 
> WEB-INF/logs instead.
> 
> It says that it cannot find the reference key for each graphic. 
> Under the hood the SVG code is serialized to .PNG format. 
> 
> Under Windows everything works fine. The copy of Cocoon is 
> exacltly the same as under Linux. 
> 
> Does anyone know where I could find the problem? Could it have 
> anything to do with user-rights? I have full-access to the Linux 
> box. Tomcat runs under a username called wwwrun with no group 
> attached to it. Every file under cocoon is owned by wwwrun:nogroup 
> and has ugo+rwx.

Are the pngs created at all? One common problem was, that
die SVG serializer needs access to the X11 DISPLAY for some
versions of AWT. I think it's not a problem for JDK 1.4.1.

Something like 

/usr/X11R6/bin/Xvfb :1 -screen 0 800x600x8 &
export DISPLAY=:1

in your catalina.sh  should help. 


Martin




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



Cocoon and SVG graphics under SuSe Linux

2003-03-10 Thread patrick . verheij
Hi,

I'm running Cocoon's SVG sample (under static-content, SVG 
introduction page) under SuSe Linux 8.1. All works fine except for 
the graphics. They don't show up, but generate loads of errors in 
WEB-INF/logs instead.

It says that it cannot find the reference key for each graphic. 
Under the hood the SVG code is serialized to .PNG format. 

Under Windows everything works fine. The copy of Cocoon is 
exacltly the same as under Linux. 

Does anyone know where I could find the problem? Could it have 
anything to do with user-rights? I have full-access to the Linux 
box. Tomcat runs under a username called wwwrun with no group 
attached to it. Every file under cocoon is owned by wwwrun:nogroup 
and has ugo+rwx.

Any help would be appreciated.

Patrick
--
_
Zon Breedband Family, 2 keer zo snel als alle andere ADSL aanbieders.
Voor maar 34 euro per maand. Bestel nu op www.zonnet.nl/breedband
Tijdelijk gratis modem en geen aansluitkosten!

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



SVG Font Embedder for Cocoon

2003-02-24 Thread Bruce Robertson
[This is an abridged version of a HOWTO posted at the Cocoon Wiki: 
http://wiki.cocoondev.org/Wiki.jsp?page=Embedding_SVG_Fonts] 

*Introduction*

Using server-generated SVG in a multi-lingual or with complex layout 
inevitably leads to frustration over fonts. A map with multi-lingual text 
carefully layed out using the Bitstream Cyberbit font will be riddled 
with 'missing character' squares when rendered on a client's machine 
that lacks Cyberbit. 

The SVG specification does offer a solution to this problem: scalable 
font glyphs can be described within an svg:font element. With these, 
the client renders text using the appropriate SVG glyphs, not relying 
on font descriptions from the client's operating environment. But it 
would be completely impractical to render the entire, e.g., Cyberbit 
font as an SVG font and expect the client machine to upload this with 
each view. What is needed is a mechanism that appends to an SVG document 
only those glyphs necessary for it to be rendered. As it turns out, the 
marvellous Batik SVG Graphics2D environment has just this ability. I've 
tapped into it to make an xslt transformation (extended with xalan/java) 
which takes any SVG document and adds to it the glyphs necessary for 
its viewing. The result is a somewhat heavier document, but one that is 
completely portable. An example: 
http://heml.mta.ca/heml-cocoon/map.svgz?
url=docs/source/heml/newton.xml&mapName=britain&fontName=Melmo 


*Use* 

To use the SVGFontEmbedder, you'll need to ensure that: 

   1. Your Cocoon environment has the Batik jar file. Check WEB-INF/libs 
   for a file called something like batik-all.jar. (I've tested 
   this with Cocoon 2.0.4, which comes with the 1.5b2 Batik code.) 

   2. You can process an xslt file with Xalan. Xalan is the default 
   xslt processor in Cocoon, but some people have patched in support 
   for Saxon because of its superior speed. (It should be noted that, 
   at present, its speed comes at the cost of being able to pass off 
   its elements to java processes as DOM objects, a deal-breaker for me.) 

You'll also need to download two files: 

   1. heml-cocoon.jar from any Heml release v.0_5.4 or greater, found at 
   http://heml.mta.ca/releases 
   2. svgEmbedFonts.xsl, the latest version 
   of which is easiest to aquire at its view cvs page 

Install heml-cocoon.jar in your $COCOON_HOME/WEB-INF/libs directory, and 
put 
svgEmbedFonts.xsl wherever your xsl files usually reside. Emend your 
sitemap to transform your SVG files just before they are serialized as 
svg+xml. (Incidentally, there is no point in using this transformation 
before rasterizing SVG to jpg or png, since your server will have access 
to its own fonts when rasterizing.) For instance, an appropriate part 
of my sitemap looks like this: 

 

Once Cocoon is duly restarted, etc., your SVG should now have the 
necessary svg:glyph elements automagically added. 

*Caveats* 

   1. This code will only recognize fonts specified with 
   the font-family="MY_FONT" attribute notation. You can't use 
   style="font-family: MY_FONT" and expect this process to assign the 
   right font to your text. On the positive side, the font-family can 
   be specified on the svg:text element or any of its ancestors, just 
   like in any honest SVG document.   


-- 
Bruce Robertson, 
Dept. of Classics, Mount Allison University
http://heml.mta.ca

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



Embedding SVG Fonts

2003-02-24 Thread Bruce Robertson
The list may be interested in a Xalan/xslt/java/batik process that adds 
embedded font descriptions to SVG documents, making them portable. 

HOWTO posted at the Cocoon Wiki: http://wiki.cocoondev.org/Wiki.jsp?
page=Embedding_SVG_Fonts

Sample document at:
http://heml.mta.ca/heml-cocoon/map.svgz?
url=docs/source/heml/newton.xml&mapName=britain&fontName=Melmo 

Yrs,
-- 
Bruce Robertson, 
Dept. of Classics, Mount Allison University
http://heml.mta.ca

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



SVG Font Embedder for Cocoon

2003-02-24 Thread Bruce Robertson


[This is an abridged version of a HOWTO posted at the Cocoon Wiki: 
http://wiki.cocoondev.org/Wiki.jsp?page=Embedding_SVG_Fonts] 

*Introduction*

Using server-generated SVG in a multi-lingual or with complex layout 
inevitably leads to frustration over fonts. A map with multi-lingual text 
carefully layed out using the Bitstream Cyberbit font will be riddled 
with 'missing character' squares when rendered on a client's machine 
that lacks Cyberbit. 

The SVG specification does offer a solution to this problem: scalable 
font glyphs can be described within an svg:font element. With these, 
the client renders text using the appropriate SVG glyphs, not relying 
on font descriptions from the client's operating environment. But it 
would be completely impractical to render the entire, e.g., Cyberbit 
font as an SVG font and expect the client machine to upload this with 
each view. What is needed is a mechanism that appends to an SVG document 
only those glyphs necessary for it to be rendered. As it turns out, the 
marvellous Batik SVG Graphics2D environment has just this ability. I've 
tapped into it to make an xslt transformation (extended with xalan/java) 
which takes any SVG document and adds to it the glyphs necessary for 
its viewing. The result is a somewhat heavier document, but one that is 
completely portable. An example: 
http://heml.mta.ca/heml-cocoon/map.svgz?
url=docs/source/heml/newton.xml&mapName=britain&fontName=Melmo 


*Use* 

To use the SVGFontEmbedder, you'll need to ensure that: 

   1. Your Cocoon environment has the Batik jar file. Check WEB-INF/libs 
   for a file called something like batik-all.jar. (I've tested 
   this with Cocoon 2.0.4, which comes with the 1.5b2 Batik code.) 

   2. You can process an xslt file with Xalan. Xalan is the default 
   xslt processor in Cocoon, but some people have patched in support 
   for Saxon because of its superior speed. (It should be noted that, 
   at present, its speed comes at the cost of being able to pass off 
   its elements to java processes as DOM objects, a deal-breaker for me.) 

You'll also need to download two files: 

   1. heml-cocoon.jar from any Heml release v.0_5.4 or greater, found at 
   http://heml.mta.ca/releases 
   2. svgEmbedFonts.xsl, the latest version 
   of which is easiest to aquire at its view cvs page 

Install heml-cocoon.jar in your $COCOON_HOME/WEB-INF/libs directory, and 
put 
svgEmbedFonts.xsl wherever your xsl files usually reside. Emend your 
sitemap to transform your SVG files just before they are serialized as 
svg+xml. (Incidentally, there is no point in using this transformation 
before rasterizing SVG to jpg or png, since your server will have access 
to its own fonts when rasterizing.) For instance, an appropriate part 
of my sitemap looks like this: 

 

Once Cocoon is duly restarted, etc., your SVG should now have the 
necessary svg:glyph elements automagically added. 

*Caveats* 

   1. This code will only recognize fonts specified with 
   the font-family="MY_FONT" attribute notation. You can't use 
   style="font-family: MY_FONT" and expect this process to assign the 
   right font to your text. On the positive side, the font-family can 
   be specified on the svg:text element or any of its ancestors, just 
   like in any honest SVG document.   


-- 
Bruce Robertson, 
Dept. of Classics, Mount Allison University
http://heml.mta.ca
-- 
Bruce Robertson, 
Dept. of Classics, Mount Allison University
http://heml.mta.ca

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



[SOLUTION] Re: SVG to JPEG/PNG problems

2003-02-21 Thread Derek Hohls



Found the error:
 
There was character "out of place" in the CSS file
I am using for the SVG styling - something like
 
.myStyle {
  color: red;  3$
}
This resulted in a "Bad CSS" message being displayed
(on the browser's status box - at the bottom in IE) when 
the image is displayed as SVG - BUT when converted to
JPEG or PNG format, then this "error" causes ALL the
formatting to be lost so the image displays without the
CSS colors, fonts etc.
 
Motto: write good, pure code !! (as always, of course ;-)
>>> [EMAIL PROTECTED] 20/02/2003 08:39:33 
>>>
I am having problems getting the SVG serializer to
correctly display my graphics as JPG/PNG - there
are no reported errors, and the conversion as a whole
goes OK, but many of the colors do not display properly,
font sizes and alignments are out and so on.  
 
What do I need to do to fix this??
 
Thanks
Derek-- 
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.

"The CSIR exercises no editorial control over E-mail messages and/or
attachments thereto/links referred to therein originating in the
organisation and the views in this message/attachments thereto are
therefore not necessarily those of the CSIR and/or its employees.
The sender of this e-mail is, moreover, in terms of the CSIR's Conditions
of Service, subject to compliance with the CSIR's internal E-mail and
Internet Policy."



Re: SVG to JPEG/PNG problems

2003-02-20 Thread Jens Maukisch
Hi,

> I am having problems getting the SVG serializer to
> correctly display my graphics as JPG/PNG - there
no probs here :-)

can you put the svg and the jpeg your cocoon generates somewhere,
then i can test it here 

-- 
* best regards
* Jens Maukisch 


-
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: 2nd Re: xml 2 svg in coplet

2003-02-20 Thread Jens Maukisch
Hi,


> 

>src="http://localhost:8080/~Owner/My%20Website/cocoon/svg/sales.xml"/>

Why do you generate from the sales.xml again ?
You just need a xml file like this:



 then will be replaced with the content of
the stylesheet .

(hopefully i got the point of your question :-)

for the caching problem i've no solution atm :-/


-- 
* best regards
* Jens Maukisch 


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




SVG to JPEG/PNG problems

2003-02-19 Thread Derek Hohls



I am having problems getting the SVG serializer to
correctly display my graphics as JPG/PNG - there
are no reported errors, and the conversion as a whole
goes OK, but many of the colors do not display properly,
font sizes and alignments are out and so on.  
 
What do I need to do to fix this??
 
Thanks
Derek-- 
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.

"The CSIR exercises no editorial control over E-mail messages and/or
attachments thereto/links referred to therein originating in the
organisation and the views in this message/attachments thereto are
therefore not necessarily those of the CSIR and/or its employees.
The sender of this e-mail is, moreover, in terms of the CSIR's Conditions
of Service, subject to compliance with the CSIR's internal E-mail and
Internet Policy."



2nd Re: xml 2 svg in coplet

2003-02-19 Thread hgadm
Thanks Jens it works, good tip :-)

- however, two questions from a bloody newby :-o

1.) The chart updates only (i.e. only reads-in a
modified xml data source) if I clear the portal cache
or close and restart Cocoon. Simple page refresh and
logoff/-on doesn't help !!?? What did I forget ?

2.) I am not sure what generator to use in the coplet.
It still works with the xml data file here but I guess
this is not necessary because the handling is already
done in the respective pipeline. So what to put in here
?

Kind regards,
Holger

Below is what I have done (using 2.1 dev):

...



http://localhost:8080/~Owner/My%20Website/cocoon/svg/sales.xml"/>
http://localhost:8080/~Owner/My%20Website/cocoon/svg/sales.xsl"/>



 

...


...



  http://localhost:8080/~Owner/My%20Website/cocoon/svg/sales.xml"/>
  
  

...

the sunlet_chart.xsl is pretty lean:



http://www.w3.org/1999/XSL/Transform";>



 
http://localhost/cocoon/samples/portal-fw/histochart.jpeg"; />

  



*

On Wed, 19 Feb 2003, Jens Maukisch wrote:

> 
> Hi,
> 
> > get the xml data ('generate'), build the svg graph
> > ('transform' with xsl, or build with js: 'action' ?
),
> > then transform and serialise into an xhtml table
with
> > the svg embedded to meet a required coplet
structure.
> 
> what about simple xhtml-image-tag pointing to the
> map:match
> which is creating your jpeg (based on a svg) ?
> something like this:
> 
> in the coplet:
> 
> 
> in the sitemap:
> 
>  
>  
>  
> 
> 
> 
> -- 
> * best regards
> * Jens Maukisch 
> 
> 
>
-
> Please check that your question  has not already been
> answered in the
> FAQ before posting.
> <http://mail.cswebmail.com/jump/http://xml.apache.org/cocoon/faq/index.html>">http://xml.apache.org/cocoon/faq/index.html>;
> 
> To unsubscribe, e-mail:
> <[EMAIL PROTECTED]>
> For additional commands, e-mail:  
> <[EMAIL PROTECTED]>

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





-
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: xml 2 svg in coplet

2003-02-19 Thread Jens Maukisch
Hi,

> get the xml data ('generate'), build the svg graph
> ('transform' with xsl, or build with js: 'action' ? ),
> then transform and serialise into an xhtml table with
> the svg embedded to meet a required coplet structure.

what about simple xhtml-image-tag pointing to the map:match
which is creating your jpeg (based on a svg) ?
something like this:

in the coplet:


in the sitemap:

 
 
 



-- 
* best regards
* Jens Maukisch 


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




xml 2 svg in coplet

2003-02-19 Thread hgadm
Hi all,

I would like to integrate a small svg barchart (that
gets actual business data from an xml file) into a
portal coplet.

I was thinking of a coplet pipeline like this:

get the xml data ('generate'), build the svg graph
('transform' with xsl, or build with js: 'action' ? ),
then transform and serialise into an xhtml table with
the svg embedded to meet a required coplet structure.

Any ideas are greatly appreciated.

Holger
 

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





-
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: [SVG] Transparent background of generated PNG

2003-01-28 Thread Derek Hohls



Martin
 
Please write a summary of the problem and
the answer and post it to the list with [Solution] 
at the start of the email subject.
 
Ta
Derek>>> [EMAIL PROTECTED] 29/01/2003 08:59:45 
>>>MilesThank you for your hint, this is exactly what I 
found and use ATM.BestMartin-- Martin 
Lüthi 
[EMAIL PROTECTED]-Please 
check that your question  has not already been answered in theFAQ 
before posting. To 
unsubscribe, e-mail: 
<[EMAIL PROTECTED]>For additional commands, 
e-mail:   
<[EMAIL PROTECTED]>-- 
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.

"The CSIR exercises no editorial control over E-mail messages and/or
attachments thereto/links referred to therein originating in the
organisation and the views in this message/attachments thereto are
therefore not necessarily those of the CSIR and/or its employees.
The sender of this e-mail is, moreover, in terms of the CSIR's Conditions
of Service, subject to compliance with the CSIR's internal E-mail and
Internet Policy."



Re: [SVG] Transparent background of generated PNG

2003-01-28 Thread Derek Hohls



>>> [EMAIL PROTECTED] 29/01/2003 05:19:45 Mark 
Eggers <[EMAIL PROTECTED]> writes:[snip]>> Welcome to 
the Microsoft-specific way of doing things.
>and PNG is a free format... oh well!
Yes, well, Java is an open-specification too... and 
look what they did to 
*that*!-Please 
check that your question  has not already been answered in theFAQ 
before posting. To 
unsubscribe, e-mail: 
<[EMAIL PROTECTED]>For additional commands, 
e-mail:   
<[EMAIL PROTECTED]>-- 
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.

"The CSIR exercises no editorial control over E-mail messages and/or
attachments thereto/links referred to therein originating in the
organisation and the views in this message/attachments thereto are
therefore not necessarily those of the CSIR and/or its employees.
The sender of this e-mail is, moreover, in terms of the CSIR's Conditions
of Service, subject to compliance with the CSIR's internal E-mail and
Internet Policy."



Re: [SVG] Transparent background of generated PNG

2003-01-28 Thread Martin Lüthi
Niclas Hedhman <[EMAIL PROTECTED]> writes:

> "opacity" means "non-transparency", (and without checking spec) shouldn't 
> therefor opacity=0.0 mean "transparent" ??

Hmmm, you're of course right! However the PNG's have transparent background
on all but the IE browsers. I'll have to play with that...

(http://www.svg-spot.com/article13.html)
"Opacity goes from 1 (totaly opaque) to 0 (totaly transparent)."

Thanks

Martin

-- 
Martin Lüthi [EMAIL PROTECTED]

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: [SVG] Transparent background of generated PNG

2003-01-28 Thread Martin Lüthi
Miles

Thank you for your hint, this is exactly what I found and use ATM.

Best

Martin
-- 
Martin Lüthi [EMAIL PROTECTED]



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: [SVG] Transparent background of generated PNG

2003-01-28 Thread Miles Elam
As was already mentioned, it's a long-standing IE bug that should have 
been fixed years ago.  (MS pledged full PNG support back in the days of 
IE 4.)

One option is creating a specific stylesheet for IE that uses 
IE-specific markup and styling.  The other (one that I prefer) is a 
piece of JavaScript that, if it detects IE, walks the DOM looking for 
 elements with png references and programmatically replaces them 
with IE-specific markup without having to edit the source document 
manually.  Just add

   

to your  element in the HTML.

The script is here: http://youngpup.net/demos/sleight/sleight.js

One major caveat though: it only works with IE 5.5 and above so your 
expected clients can't be predominantly IE 5.0.  On the bright side, 
most other manufacturers' browsers work correctly with or without the 
script.

- Miles


Martin Lüthi wrote:

I generate a SVG and serialize it as PNG with transparent background. 
In Mozilla and Konqueror everything looks fine (also an Windows), but in IE
5.0 the background of the PNG is white. Is this a browser-specific problem?
Who can point me to a workaround?




-
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: [SVG] Transparent background of generated PNG

2003-01-28 Thread Martin Lüthi
Mark Eggers <[EMAIL PROTECTED]> writes:

> Yes, this is a browser-specific problem.
> 
> For a review on this, please see the following links:
> 
> http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html
> 
> 
>http://msdn.microsoft.com/library/default.asp?url=/workshop/author/filter/reference/filters/AlphaImageLoader.asp

Thank you! I found a similar JS function at
http://www.youngpup.net/?request=/snippets/sleight.xml&xpath=/project/description

> Welcome to the Microsoft-specific way of doing things.

and PNG is a free format... oh well!

Cheers

Martin

-- 
Martin Lüthi [EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: [SVG] Transparent background of generated PNG

2003-01-27 Thread Mark Eggers
Yes, this is a browser-specific problem.

For a review on this, please see the following links:

http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/filter/reference/filters/AlphaImageLoader.asp

Welcome to the Microsoft-specific way of doing things.

/mde/
just my two cents . . . .

--- Martin_Lüthi <[EMAIL PROTECTED]> wrote:
> Hi
> 
> I generate a SVG and serialize it as PNG with
> transparent background. 
> In Mozilla and Konqueror everything looks fine (also
> an Windows), but in IE
> 5.0 the background of the PNG is white. Is this a
> browser-specific problem?
> Who can point me to a workaround?
> 
> My SVG generating code reads (opacity should be the
> transparency of the
> background):
> 
>   
> 
>style="fill:red"/>
> 
>   
> 
> The sitemap entry is:
> 
>   
> 
>  src="stylesheets/page/live/svg/dots.xsl"/>
> 
>   
> 
> Any help is welcome!
> 
> Best, Martin
> 
> -- 
> Martin Lüthi [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]>
> 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-
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: [SVG] Transparent background of generated PNG

2003-01-27 Thread Niclas Hedhman
On Tuesday 28 January 2003 21:14, Martin Lüthi wrote:
> Hi
>
> I generate a SVG and serialize it as PNG with transparent background.
> In Mozilla and Konqueror everything looks fine (also an Windows), but in IE
> 5.0 the background of the PNG is white. Is this a browser-specific problem?
> Who can point me to a workaround?
>
> My SVG generating code reads (opacity should be the transparency of the
> background):
>
>   
> 
>   
> 
>   

"opacity" means "non-transparency", (and without checking spec) shouldn't 
therefor opacity=0.0 mean "transparent" ??

-
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: [SVG] Transparent background of generated PNG

2003-01-27 Thread Tony Collen
On 28 Jan 2003, [iso-8859-1] Martin Lüthi wrote:

> Hi
>
> I generate a SVG and serialize it as PNG with transparent background.
> In Mozilla and Konqueror everything looks fine (also an Windows), but in IE
> 5.0 the background of the PNG is white. Is this a browser-specific problem?
> Who can point me to a workaround?

Chances are that the serializer is creating an 8-bit alpha mask, which
MSIE cannot handle (I ran into this MSIE problem today).  MSIE can handle
1-bit alpha masks on PNG files just fine.


HTH,

Tony

--
Cocoon: Internet Glue (A Cocoon Weblog)
http://manero.org/weblog/



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




[SVG] Transparent background of generated PNG

2003-01-27 Thread Martin Lüthi
Hi

I generate a SVG and serialize it as PNG with transparent background. 
In Mozilla and Konqueror everything looks fine (also an Windows), but in IE
5.0 the background of the PNG is white. Is this a browser-specific problem?
Who can point me to a workaround?

My SVG generating code reads (opacity should be the transparency of the
background):

  

  

  

The sitemap entry is:

  



  

Any help is welcome!

Best, Martin

-- 
Martin Lüthi [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]>




Links view recurse for ever on a SVG linearGradient element

2002-12-14 Thread Ahmed
Nagoya seems down...

---

My cocoon.xconf contains:


and my sitemap:





...

   


  





The Cocoon "live" site is OK. 
When I ask my web browser for
http://localhost:8180/simple_cocoon_site/sample.png, I get the PNG.

When I ask for a link content (same_url?cocoon-view=links), Cocoon goes
recursing until no memory is left. 
Why asking for such a view? Well I am not doing it, the command line
interface blindly does.

The problem is with a gradient definition:
  
  
  

I have no problem with:


    
in the SVG.

---

I dived in the sources with a debugger. 
Forgive a little, I am new to Java (4 months).

XMLTeePipe().startElement() get called for the linearGradient element.
It calls its first consumer (a LinkTranslator) startElement() method.

LinkTranslator inherits this method from ExtendedXLinkPipe.

ExtendedXLinkPipe.startElement() looks after "href", "src" or
"background". Finding none it finishes calling super.startElement() i.e.
XLinkPipe.startElement().

The attribute value for "type" is "simple".
For all other SVG elements, type is null. 
Why is it so? I do not know.

So the simpleLink() is called. Which one? LinkTranslator one because
"this" is a LinkTranslator.

LinkTranslator.simpleLink() does not do much but calling
super.simpleLink(), i.e. ExtendedXLinkPipe.simpleLink().

This one looks after "href", "src" or "background". Finding none it
finishes calling super.startElement() i.e. XLinkPipe.startElement().

And here is the never ending recursion.

XMLTeePipe().startElement()
  LinkTranslator.startElement() ie. ExtendedXLinkPipe.startElement()
super.startElement() i.e. XLinkPipe.startElement() <---+
  simpleLink() i.e. LinkTranslator.simpleLink()|
super.simpleLink() ie ExtendedXLinkPipe.simpleLink()   |
  super.startElement() ie XLinkPipe.startElement() >---+

Is it a JaxpParser error? I do not know. 
Anyway. Cocoon relies heavily on external components. It should be
prepared to (unintentional) misbehaviors.

I do not know where to go from here. I am not looking for tricks. I only
want Cocon to be robust. I have got a little time.

I removed gradients from my SVGs.

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




SVG -> PNG/JPG , browser problems

2002-12-10 Thread Chris Faulkner
Hello

I am having problems with the PNG and JPG serializers, but only in Netscape. I know 
about similar problems in IE but Netscape ?!

I have the following config:
   



   

   



   

   



   

Hopefully you can see what I am doing. I have the same jsp (my.jsp). If it is matched 
with .svg, then SVG is sent back, .png and .jpg get sent to the appropriate 
serializer. Variables to the 
JSP get POSTed. I have had problems, I am using the Adobe SVG plugin to my browsers.

1. Opera - it all works fine. No problems whatsoever.
2. Internet Explorer. The SVG document gets requested twice but that is a known IE 
"feature" whereby the browser basically don't trust your Content-type header so it 
checks out the 
whole document and re-requests it, This has been discussed on this list (and others) 
previously.
3. Netscape 6.2. SVG is fine. One request, data viewed nicely. However, when I request 
the .png and .jpg, I get the image back and I can see it briefly but then the page 
seems to be 
re-requested but no parameters are posted so I get nothing.

Any ideas ? Obviously it is browser-related but I was just wondering whether others 
had encountered the same thing.

Thanks

Chris Faulkner




-
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: Converting AI to SVG

2002-12-09 Thread Martin Lüthi
"Upayavira" <[EMAIL PROTECTED]> writes:

Sketch (sketch.sourceforge.net) imports AI and exports SVG, however I am not
sure how good the support of both formats is. It seems to be scriptable.

Hope this helps

Martin

> Firstly, I apologise if this request is off topic for this group.
> 
> Does anyone know how to do a bulk conversion of Adobe Illustrator files to SVG files?
> 
> I have a site that is currently served using ASP and VB, and I have worked out how 
>to 
> reproduce and greatly improve it using Cocoon, but cannot do it unless I can bulk 
> convert 500 AI files to SVG.
> 
> Any ideas?
> 
> Regards, Upayavira



-
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: Converting AI to SVG

2002-12-06 Thread Jeremy Quinn

On Friday, Dec 6, 2002, at 15:51 Europe/London, Upayavira wrote:


Does anyone know how to do a bulk conversion of Adobe Illustrator 
files to SVG files?


Depends on your platform I imagine, but Illustrator on MacOSX has a 
rich AppleScript Dictionary, I have not used it myself, but I hear good 
reports from a friend who is using it for algorithmic drawing. It could 
be possible to write AppleScript to control a combination of the Finder 
and Illustrator to do the job. Ask around on some appropriate 
production graphics forums.

regards Jeremy


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



Converting AI to SVG

2002-12-06 Thread Upayavira
Dear All,

Firstly, I apologise if this request is off topic for this group.

Does anyone know how to do a bulk conversion of Adobe Illustrator files to SVG files?

I have a site that is currently served using ASP and VB, and I have worked out how to 
reproduce and greatly improve it using Cocoon, but cannot do it unless I can bulk 
convert 500 AI files to SVG.

Any ideas?

Regards, Upayavira
 



-
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: RE: RE: Changing Xalan XSL (WAS Re: SVG - java socket exception)

2002-12-04 Thread Chris Faulkner
Saxon is installed, the error has gone away and the whole thing is faster. The JSP was 
being called twice because of IE. It doesn't happen with NS/Mozilla etc.

Thanks

Chris

>> -Original Message-
>> From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, December 03, 2002 7:20 PM
>> To: [EMAIL PROTECTED]
>> Cc: [EMAIL PROTECTED]
>> Subject: Re: RE: Changing Xalan XSL (WAS Re: SVG - java socket
>> exception)
>>
>>
>> Thanks for that - I did search the archives and found some
>> messages with the same error message as I had but none that I saw
>> had a follow-up. I really did search but until you understand the
>> nature of the problem
>> better, it is difficult to know what terms to search on.  I do
>> apologise for wasting any of your time and thanks again.
>
>The user-list is for questions like yours the best place. For me the only
>rule is looking at http://xml.apache.org/cocoon/faq/index.html before
>posting.
>
>
>> I'll try Saxon. I'm not immediately certain how to install it
>> with Cocoon but I'll find out !
>
>It's quite easy - one of the links at
>http://outerthought.net/wiki/Wiki.jsp?page=Saxon (I think it's the fourth
>...) points out all necessary steps.
>
>> The journey is part of the fun.
>
>Yes, Cocoon makes a lot of fun !!! :-)
>
>Regards,
>Reinhard
>
>>
>> Chris
>>
>> >Chris,
>> >
>> >The problem you have is a well-known problem of Cocoon or more
>> precicly of
>> >Xalan. There are many mails in the archives about this topic (e.g.:
>> >http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=101994024218728&w=2).
>> >
>> >If you want to use Saxon have a look at
>> >http://outerthought.net/wiki/Wiki.jsp?page=Saxon - it should help (and is
>> >faster than Xalan).
>> >
>> >Regards,
>> >Reinhard
>> >
>> >> -Original Message-
>> >> From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
>> >> Sent: Tuesday, December 03, 2002 6:26 PM
>> >> To: [EMAIL PROTECTED]
>> >> Subject: Changing Xalan XSL (WAS Re: SVG - java socket exception)
>> >>
>> >>
>> >> HI
>> >>
>> >> More on this - a couple of others seem to have similar problems
>> >> but nobody ever got a reply when they post the error  makes
>> >> me think it  is a bug. Anyhow, if I change this parameter to
>> >> false (it is true by default) in
>> >> cocoon.xconf
>> >>
>> >> 
>> >>
>> >> I don't get the errors but the JSP is still being called 2 or 3
>> >> times so it is much slower and I'd rather leave the
>> >> incremental-processing  parameter at true. How can I change from
>> >> xalan to another XSL engine ? There
>> >> is
>> >> a mention of this on the performance tips page but no
>> >> instructions about how to do it.
>> >>
>> >> Chris
>> >>
>> >> >Hello
>> >> >
>> >> >I am getting on OK with Cocoon. I like it very much. I am using
>> >> some JSP code as a generator. This creates some XML data which I
>> >> apply xsl to transform to SVG. This is then serialised with
>> >> >svgxml and returned to the client. It all works fine. Except
>> >> that, looking at my logs, very often, the first execution of the
>> >> JSP returns this to stdout/stderr.
>> >> >
>> >> >java.lang.RuntimeException: java.net.SocketException: Connection
>> >> aborted by peer
>> >> >: socket write error
>> >> >at
>> >> org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
>> >> >:3231)
>> >> >at java.lang.Thread.run(Thread.java:479)
>> >> >
>> >> >I can see in the logs that Cocoon automatically seems to fire
>> >> the same JSP again. It then works on the next shot, I get my SVG
>> >> displayed in my SVG viewing app and it is just fine. This is
>> >> >obviously slowing things up though.
>> >> >
>> >> >Any ideas - I am using Cocoon 2.0.3 on Tomcat 4.0.1, JDK
>> 1.3.1_06 on W2K.
>> >> >
>> >> >Thanks
>> >> >
>> >> >Chris
>> >> >
>> >> >
>> >> >

RE: RE: Changing Xalan XSL (WAS Re: SVG - java socket exception)

2002-12-03 Thread Reinhard Poetz
> -Original Message-
> From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 03, 2002 7:20 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: RE: Changing Xalan XSL (WAS Re: SVG - java socket
> exception)
>
>
> Thanks for that - I did search the archives and found some
> messages with the same error message as I had but none that I saw
> had a follow-up. I really did search but until you understand the
> nature of the problem
> better, it is difficult to know what terms to search on.  I do
> apologise for wasting any of your time and thanks again.

The user-list is for questions like yours the best place. For me the only
rule is looking at http://xml.apache.org/cocoon/faq/index.html before
posting.


> I'll try Saxon. I'm not immediately certain how to install it
> with Cocoon but I'll find out !

It's quite easy - one of the links at
http://outerthought.net/wiki/Wiki.jsp?page=Saxon (I think it's the fourth
...) points out all necessary steps.

> The journey is part of the fun.

Yes, Cocoon makes a lot of fun !!! :-)

Regards,
Reinhard

>
> Chris
>
> >Chris,
> >
> >The problem you have is a well-known problem of Cocoon or more
> precicly of
> >Xalan. There are many mails in the archives about this topic (e.g.:
> >http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=101994024218728&w=2).
> >
> >If you want to use Saxon have a look at
> >http://outerthought.net/wiki/Wiki.jsp?page=Saxon - it should help (and is
> >faster than Xalan).
> >
> >Regards,
> >Reinhard
> >
> >> -Original Message-
> >> From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
> >> Sent: Tuesday, December 03, 2002 6:26 PM
> >> To: [EMAIL PROTECTED]
> >> Subject: Changing Xalan XSL (WAS Re: SVG - java socket exception)
> >>
> >>
> >> HI
> >>
> >> More on this - a couple of others seem to have similar problems
> >> but nobody ever got a reply when they post the error  makes
> >> me think it  is a bug. Anyhow, if I change this parameter to
> >> false (it is true by default) in
> >> cocoon.xconf
> >>
> >> 
> >>
> >> I don't get the errors but the JSP is still being called 2 or 3
> >> times so it is much slower and I'd rather leave the
> >> incremental-processing  parameter at true. How can I change from
> >> xalan to another XSL engine ? There
> >> is
> >> a mention of this on the performance tips page but no
> >> instructions about how to do it.
> >>
> >> Chris
> >>
> >> >Hello
> >> >
> >> >I am getting on OK with Cocoon. I like it very much. I am using
> >> some JSP code as a generator. This creates some XML data which I
> >> apply xsl to transform to SVG. This is then serialised with
> >> >svgxml and returned to the client. It all works fine. Except
> >> that, looking at my logs, very often, the first execution of the
> >> JSP returns this to stdout/stderr.
> >> >
> >> >java.lang.RuntimeException: java.net.SocketException: Connection
> >> aborted by peer
> >> >: socket write error
> >> >at
> >> org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
> >> >:3231)
> >> >at java.lang.Thread.run(Thread.java:479)
> >> >
> >> >I can see in the logs that Cocoon automatically seems to fire
> >> the same JSP again. It then works on the next shot, I get my SVG
> >> displayed in my SVG viewing app and it is just fine. This is
> >> >obviously slowing things up though.
> >> >
> >> >Any ideas - I am using Cocoon 2.0.3 on Tomcat 4.0.1, JDK
> 1.3.1_06 on W2K.
> >> >
> >> >Thanks
> >> >
> >> >Chris
> >> >
> >> >
> >> >
> >> >
> >> >-
> >> >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]>
> >> >
> >> >
> >>
> >>
> >>
> >>
> >> -
> >&g

Re: RE: Changing Xalan XSL (WAS Re: SVG - java socket exception)

2002-12-03 Thread Chris Faulkner
Thanks for that - I did search the archives and found some messages with the same 
error message as I had but none that I saw had a follow-up. I really did search but 
until you understand the nature of the problem 
better, it is difficult to know what terms to search on.  I do apologise for wasting 
any of your time and thanks again. 

I'll try Saxon. I'm not immediately certain how to install it with Cocoon but I'll 
find out ! The journey is part of the fun.

Chris

>Chris,
>
>The problem you have is a well-known problem of Cocoon or more precicly of
>Xalan. There are many mails in the archives about this topic (e.g.:
>http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=101994024218728&w=2).
>
>If you want to use Saxon have a look at
>http://outerthought.net/wiki/Wiki.jsp?page=Saxon - it should help (and is
>faster than Xalan).
>
>Regards,
>Reinhard
>
>> -Original Message-
>> From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, December 03, 2002 6:26 PM
>> To: [EMAIL PROTECTED]
>> Subject: Changing Xalan XSL (WAS Re: SVG - java socket exception)
>>
>>
>> HI
>>
>> More on this - a couple of others seem to have similar problems
>> but nobody ever got a reply when they post the error  makes
>> me think it  is a bug. Anyhow, if I change this parameter to
>> false (it is true by default) in
>> cocoon.xconf
>>
>> 
>>
>> I don't get the errors but the JSP is still being called 2 or 3
>> times so it is much slower and I'd rather leave the
>> incremental-processing  parameter at true. How can I change from
>> xalan to another XSL engine ? There
>> is
>> a mention of this on the performance tips page but no
>> instructions about how to do it.
>>
>> Chris
>>
>> >Hello
>> >
>> >I am getting on OK with Cocoon. I like it very much. I am using
>> some JSP code as a generator. This creates some XML data which I
>> apply xsl to transform to SVG. This is then serialised with
>> >svgxml and returned to the client. It all works fine. Except
>> that, looking at my logs, very often, the first execution of the
>> JSP returns this to stdout/stderr.
>> >
>> >java.lang.RuntimeException: java.net.SocketException: Connection
>> aborted by peer
>> >: socket write error
>> >at
>> org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
>> >:3231)
>> >at java.lang.Thread.run(Thread.java:479)
>> >
>> >I can see in the logs that Cocoon automatically seems to fire
>> the same JSP again. It then works on the next shot, I get my SVG
>> displayed in my SVG viewing app and it is just fine. This is
>> >obviously slowing things up though.
>> >
>> >Any ideas - I am using Cocoon 2.0.3 on Tomcat 4.0.1, JDK 1.3.1_06 on W2K.
>> >
>> >Thanks
>> >
>> >Chris
>> >
>> >
>> >
>> >
>> >-
>> >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]>
>> >
>> >
>>
>>
>>
>>
>> -
>> 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]>
>>
>
>
>-
>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]>
>
>




-
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: Changing Xalan XSL (WAS Re: SVG - java socket exception)

2002-12-03 Thread Reinhard Poetz
Chris,

The problem you have is a well-known problem of Cocoon or more precicly of
Xalan. There are many mails in the archives about this topic (e.g.:
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=101994024218728&w=2).

If you want to use Saxon have a look at
http://outerthought.net/wiki/Wiki.jsp?page=Saxon - it should help (and is
faster than Xalan).

Regards,
Reinhard

> -Original Message-
> From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 03, 2002 6:26 PM
> To: [EMAIL PROTECTED]
> Subject: Changing Xalan XSL (WAS Re: SVG - java socket exception)
>
>
> HI
>
> More on this - a couple of others seem to have similar problems
> but nobody ever got a reply when they post the error  makes
> me think it  is a bug. Anyhow, if I change this parameter to
> false (it is true by default) in
> cocoon.xconf
>
> 
>
> I don't get the errors but the JSP is still being called 2 or 3
> times so it is much slower and I'd rather leave the
> incremental-processing  parameter at true. How can I change from
> xalan to another XSL engine ? There
> is
> a mention of this on the performance tips page but no
> instructions about how to do it.
>
> Chris
>
> >Hello
> >
> >I am getting on OK with Cocoon. I like it very much. I am using
> some JSP code as a generator. This creates some XML data which I
> apply xsl to transform to SVG. This is then serialised with
> >svgxml and returned to the client. It all works fine. Except
> that, looking at my logs, very often, the first execution of the
> JSP returns this to stdout/stderr.
> >
> >java.lang.RuntimeException: java.net.SocketException: Connection
> aborted by peer
> >: socket write error
> >at
> org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
> >:3231)
> >    at java.lang.Thread.run(Thread.java:479)
> >
> >I can see in the logs that Cocoon automatically seems to fire
> the same JSP again. It then works on the next shot, I get my SVG
> displayed in my SVG viewing app and it is just fine. This is
> >obviously slowing things up though.
> >
> >Any ideas - I am using Cocoon 2.0.3 on Tomcat 4.0.1, JDK 1.3.1_06 on W2K.
> >
> >Thanks
> >
> >Chris
> >
> >
> >
> >
> >-
> >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]>
> >
> >
>
>
>
>
> -
> 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]>
>


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




Changing Xalan XSL (WAS Re: SVG - java socket exception)

2002-12-03 Thread Chris Faulkner
HI

More on this - a couple of others seem to have similar problems but nobody ever got a 
reply when they post the error  makes me think it  is a bug. Anyhow, if I change 
this parameter to false (it is true by default) in
cocoon.xconf



I don't get the errors but the JSP is still being called 2 or 3 times so it is much 
slower and I'd rather leave the incremental-processing  parameter at true. How can I 
change from xalan to another XSL engine ? There 
is
a mention of this on the performance tips page but no instructions about how to do it.

Chris

>Hello
>
>I am getting on OK with Cocoon. I like it very much. I am using some JSP code as a 
>generator. This creates some XML data which I apply xsl to transform to SVG. This is 
>then serialised with 
>svgxml and returned to the client. It all works fine. Except that, looking at my 
>logs, very often, the first execution of the JSP returns this to stdout/stderr.
>
>java.lang.RuntimeException: java.net.SocketException: Connection aborted by peer
>: socket write error
>at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
>:3231)
>at java.lang.Thread.run(Thread.java:479)
>
>I can see in the logs that Cocoon automatically seems to fire the same JSP again. It 
>then works on the next shot, I get my SVG displayed in my SVG viewing app and it is 
>just fine. This is 
>obviously slowing things up though. 
>
>Any ideas - I am using Cocoon 2.0.3 on Tomcat 4.0.1, JDK 1.3.1_06 on W2K.
>
>Thanks
>
>Chris
>
>
>
>
>-
>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]>
>
>




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




SVG - java socket exception

2002-12-03 Thread Chris Faulkner
Hello

I am getting on OK with Cocoon. I like it very much. I am using some JSP code as a 
generator. This creates some XML data which I apply xsl to transform to SVG. This is 
then serialised with 
svgxml and returned to the client. It all works fine. Except that, looking at my logs, 
very often, the first execution of the JSP returns this to stdout/stderr.

java.lang.RuntimeException: java.net.SocketException: Connection aborted by peer
: socket write error
at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java
:3231)
at java.lang.Thread.run(Thread.java:479)

I can see in the logs that Cocoon automatically seems to fire the same JSP again. It 
then works on the next shot, I get my SVG displayed in my SVG viewing app and it is 
just fine. This is 
obviously slowing things up though. 

Any ideas - I am using Cocoon 2.0.3 on Tomcat 4.0.1, JDK 1.3.1_06 on W2K.

Thanks

Chris




-
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: Including static images into SVG files

2002-12-02 Thread Conal Tuohy
Can you capture the name and port of the localhost from the "host" request
parameter, and pass it to the stylesheet?

-Original Message-
From: Derek Hohls [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 3 December 2002 00:21
To: [EMAIL PROTECTED]
Subject: RE: Including static images into SVG files


Thanks for this suggestion.

I think its a "toss up" as to where this info comes from or is stored.

I am not sure I prefer using the sitemap to do this as it:
(a) makes the sitemap more complex and
(b) means I have to maintain two different versions
   (development / production)

whereas a single "included" stylesheet is a relatively simple
approach.

Of course, everyone has their own taste and preferences!

>>> [EMAIL PROTECTED] 02/12/2002 01:15:31 >>>
My approach is to pass the path from the sitemap to the XSL stylesheet that
produces
the SVG as a parameter. The advantage of that is to keep all references to
filesystems
in the sitemap, rather than in stylesheets. Also, make full use of localhost
where
appropriate.

Hope this helps, Upayavira


> >Unfortunately this requires an absolute URL
> >address - if I drop the http://myserver/
> >then it simply does not work - is there a
> >Cocoon "substitute" (protocol?) I can use
> >to get the image processed correctly, *regardless*
> >of what machine the app. is loaded on??


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


-
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: Including static images into SVG files

2002-12-02 Thread Derek Hohls



Thanks for this suggestion.
 
I think its a "toss up" as to where this info comes from or is 
stored.
 
I am not sure I prefer using the sitemap to do this as it:
(a) makes the sitemap more complex and
(b) means I have to maintain two different versions
   (development / production)
 
whereas a single "included" stylesheet is a relatively simple
approach.
 
Of course, everyone has their own taste and 
preferences!>>> [EMAIL PROTECTED] 02/12/2002 01:15:31 
>>>My approach is to pass the path from the sitemap to the XSL 
stylesheet that produces the SVG as a parameter. The advantage of that is to 
keep all references to filesystems in the sitemap, rather than in 
stylesheets. Also, make full use of localhost where appropriate.Hope 
this helps, Upayavira> >Unfortunately this requires an 
absolute URL > >address - if I drop the http://myserver/> >then it simply does not 
work - is there a > >Cocoon "substitute" (protocol?) I can use> 
>to get the image processed correctly, *regardless* > >of what 
machine the app. is loaded 
on??-Please 
check that your question  has not already been answered in theFAQ 
before posting. <http://xml.apache.org/cocoon/faq/index.html>To 
unsubscribe, e-mail: 
<[EMAIL PROTECTED]>For additional commands, 
e-mail:   
<[EMAIL PROTECTED]>


RE: Including static images into SVG files

2002-12-02 Thread Upayavira
My approach is to pass the path from the sitemap to the XSL stylesheet that produces 
the SVG as a parameter. The advantage of that is to keep all references to filesystems 
in the sitemap, rather than in stylesheets. Also, make full use of localhost where 
appropriate.

Hope this helps, Upayavira


> >Unfortunately this requires an absolute URL 
> >address - if I drop the http://myserver/
> >then it simply does not work - is there a 
> >Cocoon "substitute" (protocol?) I can use
> >to get the image processed correctly, *regardless* 
> >of what machine the app. is loaded on??


-
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: Including static images into SVG files

2002-12-01 Thread Derek Hohls



Ok, point taken and noted.  
 
I think I will have to maintain the server part of the  
address in a separate file and do an 'include' in 
the processing file - this way it should make the
maintainance easier (even if not intuitively obvious!)>>> 
[EMAIL PROTECTED] 01/12/2002 11:19:22 >>>But AFAIK this is the 
only working solution. Both Batik and FOP only work with absolute 
paths.JoergDerek Hohls wrote:> Unfortunately this is not 
a real solution:> in the example I used 'myserver' - on my> 
development machine this would be 'localhost:8080'> whereas on the 
production machine it would be> something 'joe.domain.com' ... I do not 
think that 'localhost' would> work the same in both situations...  
the same holds true for a file > path - the setup on the UNIX machine 
is> *definitely* different from mine - ideally I > am looking for 
a Cocoon-related solution.> > Thanks> Derek> 
>>>>[EMAIL PROTECTED] 12/01/02 08:33 AM 
>>>>>>> -Original Message-> From: 
Derek Hohls [mailto:[EMAIL PROTECTED]]> > 
>>I need to include and display a static image >>(its a 
logo) on all the SVG images I produce;>>the only syntax I have managed 
to get to work is:> > > http://myserver/path/logo.jpg 
/>  > (plus height, width)> > 
>>Unfortunately this requires an absolute URL >>address - if 
I drop the http://myserver/>>then it 
simply does not work - is there a >>Cocoon "substitute" (protocol?) I 
can use>>to get the image processed correctly, *regardless* 
>>of what machine the app. is loaded on??> > > 
Try "localhost" instead of "myserver". > > You can also use a file 
url (so long as the path is absolute). > > Cheers> > 
Con-Please 
check that your question  has not already been answered in theFAQ 
before posting. <http://xml.apache.org/cocoon/faq/index.html>To 
unsubscribe, e-mail: 
<[EMAIL PROTECTED]>For additional commands, 
e-mail:   
<[EMAIL PROTECTED]>


Re: Including static images into SVG files

2002-12-01 Thread Joerg Heinicke
But AFAIK this is the only working solution. Both Batik and FOP only 
work with absolute paths.

Joerg

Derek Hohls wrote:
Unfortunately this is not a real solution:
in the example I used 'myserver' - on my
development machine this would be 'localhost:8080'
whereas on the production machine it would be
something 'joe.domain.com' ... I do not think that 'localhost' would
work the same in both situations...  the same holds true for a file 
path - the setup on the UNIX machine is
*definitely* different from mine - ideally I 
am looking for a Cocoon-related solution.

Thanks
Derek

[EMAIL PROTECTED] 12/01/02 08:33 AM >>>



-Original Message-
From: Derek Hohls [mailto:[EMAIL PROTECTED]]



I need to include and display a static image 
(its a logo) on all the SVG images I produce;
the only syntax I have managed to get to work is:


http://myserver/path/logo.jpg />  
(plus height, width)


Unfortunately this requires an absolute URL 
address - if I drop the http://myserver/
then it simply does not work - is there a 
Cocoon "substitute" (protocol?) I can use
to get the image processed correctly, *regardless* 
of what machine the app. is loaded on??


Try "localhost" instead of "myserver". 

You can also use a file url (so long as the path is absolute). 

Cheers

Con


-
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: Including static images into SVG files

2002-12-01 Thread Derek Hohls
Unfortunately this is not a real solution:
in the example I used 'myserver' - on my
development machine this would be 'localhost:8080'
whereas on the production machine it would be
something 'joe.domain.com' ... I do not think that 'localhost' would
work the same in both situations...  the same holds true for a file 
path - the setup on the UNIX machine is
*definitely* different from mine - ideally I 
am looking for a Cocoon-related solution.

Thanks
Derek

D Hohls
CSIR Environmentek
PO Box 17001
Kwa-Zulu Natal
South Africa
4013


>>> [EMAIL PROTECTED] 12/01/02 08:33 AM >>>
-Original Message-
From: Derek Hohls [mailto:[EMAIL PROTECTED]]

>I need to include and display a static image 
>(its a logo) on all the SVG images I produce;
>the only syntax I have managed to get to work is:

http://myserver/path/logo.jpg />  
(plus height, width)

>Unfortunately this requires an absolute URL 
>address - if I drop the http://myserver/
>then it simply does not work - is there a 
>Cocoon "substitute" (protocol?) I can use
>to get the image processed correctly, *regardless* 
>of what machine the app. is loaded on??

Try "localhost" instead of "myserver". 

You can also use a file url (so long as the path is absolute). 

Cheers

Con

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



-
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: Including static images into SVG files

2002-11-30 Thread Conal Tuohy
-Original Message-
From: Derek Hohls [mailto:[EMAIL PROTECTED]]

>I need to include and display a static image 
>(its a logo) on all the SVG images I produce;
>the only syntax I have managed to get to work is:

http://myserver/path/logo.jpg />  
(plus height, width)

>Unfortunately this requires an absolute URL 
>address - if I drop the http://myserver/
>then it simply does not work - is there a 
>Cocoon "substitute" (protocol?) I can use
>to get the image processed correctly, *regardless* 
>of what machine the app. is loaded on??

Try "localhost" instead of "myserver". 

You can also use a file url (so long as the path is absolute). 

Cheers

Con

-
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: Including static images into SVG files

2002-11-29 Thread Andrew Savory

Hi Derek,

On Fri, 29 Nov 2002, Derek Hohls wrote:

> the only syntax I have managed to get to work is:
>
> http://myserver/path/logo.jpg />  (plus height,
> width)

I've had the same problem (relative URLs not working). The only way I've
got it to work is to hardwire "myserver". Sorry that's not much help, but
thought you might like to know others are suffering too!


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


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




java.lang.NoClassDefFoundError: org/apache/batik/dom/svg/DefaultSVGContext

2002-11-29 Thread Ludovic de Beaurepaire
Hi All,

I have a stylesheet using SVG, it is working fine with FOP to generate PDF.
Now, I want Cocoon to use it and i have the following Exception (in the
console):

java.lang.NoClassDefFoundError: org/apache/batik/dom/svg/DefaultSVGContext
...

I am using Cocoon 2.0.3, and in the file "batik-all-1.5b2.jar" the package
org.apache.batik.dom.svg is present but doesn't contain
"DefaultSVGContext.class" file

Someone knows a solution ?

Thanks in advance,

Ludovic




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




Including static images into SVG files

2002-11-29 Thread Derek Hohls



I know this is perhaps off-topic for Cocoon, but it does relate 
(somewhat) and I hope
there is a 'guru' somewhere that can answer a relatively (?) 
straightforward question.
 
I need to include and display a static image (its a logo) on all the SVG 
images I produce;
the only syntax I have managed to get to work is:
 
http://myserver/
then it simply does not work - is there a Cocoon "substitute" (protocol?) I 
can use
to get the image processed correctly, *regardless* of what machine the 
app. is
loaded on??
 
Thanks
Derek


[SOLUTION] error for using tag (svg) in cocoon (batik lib)

2002-11-20 Thread Yury Mikhienko
On Wed, 20 Nov 2002 16:07:34 +0100
Joerg Heinicke <[EMAIL PROTECTED]> wrote:

> Can you provide a conclusing solution adding [SOLUTION] to the mail 
> subject with problem description and steps to go?
> 
> Joerg

1. copy SVGBuilder.java from cocoon2.0.3 src/java/org/apache/cocoon/xml/dom to 
cocoon2.0.2 src/java/org/apache/cocoon/xml/dom
2. copy batik-all-1.5b2.jar to cocoon2.0.2 lib/optional
3. remove cocoon2.0.2 build catalogue
4. rebuild cocoon2.0.2
5. remove all from $CATALINA_HOME/work
6. copy cocoon2.0.2/build/cocoon/webapp/WEB-INF/lib/cocoon-2.0.2.jar to 
$CATALINA_HOME/cocoon/WEB-INF/lib (instead of old cocoon2.0.2.jar)
7. copy cocoon2.0.2/build/cocoon/webapp/WEB-INF/lib/batik-all-1.5b2.jar to 
$CATALINA_HOME/cocoon/WEB-INF/lib (instead of batik-all-1.5b1.jar)
8. copy cocoon2.0.2/build/cocoon/webapp/WEB-INF/Manifest.mf to 
$CATALINA_HOME/cocoon/WEB-INF/ (instead of old Manifest.mf)
9. copy cocoon2.0.2/build/cocoon/cocoon.war#/META-INF/MANIFEST.MF to 
$CATALINA_HOME/cocoon/META-INF (instead of old MANIFEST.MF)
10. start up tomcat.

This way is not very good, try using cocoon2.0.3 instead.
-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: error for using tag (svg) in cocoon (batik lib)

2002-11-20 Thread Joerg Heinicke
Can you provide a conclusing solution adding [SOLUTION] to the mail 
subject with problem description and steps to go?

Joerg

Yury Mikhienko wrote:
On Wed, 20 Nov 2002 16:52:40 +0300
Yury Mikhienko <[EMAIL PROTECTED]> wrote:



Hi all!

Can anyone using batik_v1.5b2 with cocoon v2.0.2?
How to reconfigure cocoon for work him with batik_v1.5b2?
(I recompille cocoon [with batik-all-1.5b2.jar in optional classes] without any errors)

Thanx for advise.




I have solved the problem by copying SVGBuilder.java from cocoon2.0.3 src to cocoon2.0.2 src  and batik-all-1.5b2.jar to cocoon2.0.2 lib/optional instead of batik-all-1.5b1.jar.
After cocoon 2.0.2 was recompiled it works :)) (my test.svg sample also)

Thanks to all.



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: error for using tag (svg) in cocoon (batik lib)

2002-11-20 Thread Yury Mikhienko
On Wed, 20 Nov 2002 16:52:40 +0300
Yury Mikhienko <[EMAIL PROTECTED]> wrote:

> Hi all!
> 
> Can anyone using batik_v1.5b2 with cocoon v2.0.2?
> How to reconfigure cocoon for work him with batik_v1.5b2?
> (I recompille cocoon [with batik-all-1.5b2.jar in optional classes] without any 
>errors)
> 
> Thanx for advise.
> 

I have solved the problem by copying SVGBuilder.java from cocoon2.0.3 src to 
cocoon2.0.2 src  and batik-all-1.5b2.jar to cocoon2.0.2 lib/optional instead of 
batik-all-1.5b1.jar.
After cocoon 2.0.2 was recompiled it works :)) (my test.svg sample also)

Thanks to all.


-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: error for using tag (svg) in cocoon (batik lib)

2002-11-20 Thread Yury Mikhienko
Hi all!

Can anyone using batik_v1.5b2 with cocoon v2.0.2?
How to reconfigure cocoon for work him with batik_v1.5b2?
(I recompille cocoon [with batik-all-1.5b2.jar in optional classes] without any errors)

Thanx for advise.

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: error for using tag (svg) in cocoon (batik lib)

2002-11-20 Thread Yury Mikhienko
On Wed, 20 Nov 2002 13:34:23 +0100
Joerg Heinicke <[EMAIL PROTECTED]> wrote:

> It seems like a bug in Batik, at least in your version. I tested it with 
> 1.5b2 from Cocoon and 1.5b4 offline without any problems. What version 
> are you using?
> 

I'm using batik v1.5b1 (cocoon 2.0.2 optional classes)
After recompile & implements cocoon (v2.0.2) with batik v1.5b2 I have the next error :

type fatal

message Error compiling sitemap

description org.apache.cocoon.ProcessingException: Error compiling sitemap: 
java.lang.NoClassDefFoundError

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Error compiling sitemap: 
java.lang.NoClassDefFoundError
at org.apache.cocoon.sitemap.Handler.run(Handler.java:295)
at java.lang.Thread.run(Thread.java:484)
java.lang.NoClassDefFoundError
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:98)
at 
org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPool.java:82)
at 
org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(AbstractPool.java:126)
at 
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftResourceLimitingPool.java:91)
at 
org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.initialize(SoftResourceLimitingPool.java:80)
at 
org.apache.avalon.excalibur.component.PoolableComponentHandler.initialize(PoolableComponentHandler.java:88)
at 
org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:467)
at 
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.addComponent(DefaultSitemapComponentSelector.java:181)
at 
org.apache.cocoon.sitemap.DefaultSitemapComponentSelector.addSitemapComponent(DefaultSitemapComponentSelector.java:188)
at 
org.apache.cocoon.sitemap.AbstractSitemap.load_component(AbstractSitemap.java:275)
at 
org.apache.cocoon.www.sitemap_xmap$Configurer.configSerializers(/usr/local/jakarta/catalina-4.0.4/work/Standalone/10.10.5.100/_/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:1039)
at 
org.apache.cocoon.www.sitemap_xmap.configure(/usr/local/jakarta/catalina-4.0.4/work/Standalone/10.10.5.100/_/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:398)
at 
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:172)
at 
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:84)
at 
org.apache.cocoon.components.language.generator.GeneratorSelector.addGenerator(GeneratorSelector.java:170)
at 
org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:248)
at org.apache.cocoon.sitemap.Handler.run(Handler.java:270)
at java.lang.Thread.run(Thread.java:484)

request-uri

/welcome

I mount cocoon in tomcat root context.


-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: error for using tag (svg) in cocoon (batik lib)

2002-11-20 Thread Joerg Heinicke
It seems like a bug in Batik, at least in your version. I tested it with 
1.5b2 from Cocoon and 1.5b4 offline without any problems. What version 
are you using?

Joerg

Yury Mikhienko wrote:
Hi all!

Can anyone help me with the following problem:
When I tried the generate png from the svg file (with using  tag) I have the following error:

Original exception : org.apache.batik.transcoder.TranscoderException: null
Enclosed Exception:
http://xml.apache.org:-1
The URI '' specified on the element  is invalid
at org.apache.cocoon.serialization.SVGSerializer.notify(SVGSerializer.java:272)
at org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:134)
at org.apache.xerces.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:724)
...
Where I'm wrong? (It bug in batik?)
my test.svg:


  http://www.w3.org/1999/xlink";>
Example Use01 - Simple case of 'use' on a 'rect'
 
   
 
 
 
  

Thanx for advise.



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




error for using tag (svg) in cocoon (batik lib)

2002-11-20 Thread Yury Mikhienko
Hi all!

Can anyone help me with the following problem:
When I tried the generate png from the svg file (with using  tag) I have the 
following error:

Original exception : org.apache.batik.transcoder.TranscoderException: null
Enclosed Exception:
http://xml.apache.org:-1
The URI '' specified on the element  is invalid
at org.apache.cocoon.serialization.SVGSerializer.notify(SVGSerializer.java:272)
at org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:134)
at org.apache.xerces.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:724)
...
Where I'm wrong? (It bug in batik?)
my test.svg:


  http://www.w3.org/1999/xlink";>
Example Use01 - Simple case of 'use' on a 'rect'
 
   
 
 
 
  

Thanx for advise.
-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

-
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: Re: svg]

2002-11-15 Thread Boris Althaus



With svg2png-Serializer works fine in Mozilla, but 
IE cannot handle transparancy of png-images and other browser probably have the 
same or other problems. 
It's a pity that GIF requires a licence fee. 


  - Original Message - 
  From: 
  Joerg 
  Heinicke 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, November 15, 2002 1:24 
  PM
  Subject: [Fwd: Re: svg]
   Original Message Subject: Re: svgDate: 
  Fri, 15 Nov 2002 09:34:41 -From: "Upayavira" <[EMAIL PROTECTED]>To: Joerg Heinicke 
  <[EMAIL PROTECTED]> > 
  Cocoon uses Batik and http://xml.apache.org/batik/svgrasterizer.html > 
  says: "The provided formats are JPEG, PNG, and Tiff, however the 
  design > allows new formats to be added easily."I can't 
  speak for the developers of Batik, but the usual reason that GIF is not 
  supportedin open-source software is because anyone who creates tools that 
  generate GIFs mustpay a patent licence fee for the priveledge. With an 
  open-source project, there isn't aclear body to pay those licence 
  fees. Hence, GIF tends to be excluded.Regards, 
  Upayavira > > Joerg > > 
  Boris Althaus wrote: > > Hallo, > 
  > > > does exists something like a 
  svg2gif-Serializer. > > > > Boris-- 
  System DevelopmentVIRBUS AGFon  
  +49(0)341-979-7419Fax  +49(0)341-979-7409[EMAIL PROTECTED]www.virbus.de-Please 
  check that your question  has not already been answered in theFAQ 
  before posting. <http://xml.apache.org/cocoon/faq/index.html>To 
  unsubscribe, e-mail: <[EMAIL PROTECTED]>For 
  additional commands, e-mail:   <[EMAIL PROTECTED]>


[Fwd: Re: svg]

2002-11-15 Thread Joerg Heinicke
 Original Message 
Subject: Re: svg
Date: Fri, 15 Nov 2002 09:34:41 -
From: "Upayavira" <[EMAIL PROTECTED]>
To: Joerg Heinicke <[EMAIL PROTECTED]>

> Cocoon uses Batik and http://xml.apache.org/batik/svgrasterizer.html
> says: "The provided formats are JPEG, PNG, and Tiff, however the design
> allows new formats to be added easily."

I can't speak for the developers of Batik, but the usual reason that GIF is 
not supported
in open-source software is because anyone who creates tools that generate 
GIFs must
pay a patent licence fee for the priveledge. With an open-source project, 
there isn't a
clear body to pay those licence fees. Hence, GIF tends to be excluded.

Regards, Upayavira

>
> Joerg
>
> Boris Althaus wrote:
> > Hallo,
> >
> > does exists something like a svg2gif-Serializer.
> >
> > Boris

--

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


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

2002-11-14 Thread Joerg Heinicke
Cocoon uses Batik and http://xml.apache.org/batik/svgrasterizer.html 
says: "The provided formats are JPEG, PNG, and Tiff, however the design 
allows new formats to be added easily."

Joerg

Boris Althaus wrote:
Hallo,
 
does exists something like a svg2gif-Serializer.
 
Boris


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




element in svg

2002-11-14 Thread Yury Mikhienko
Hi All!

I have the cocoon2.0.2 on Tomcat4.0.4 and I tried to generate png from following svg 
(another sample :))):

test.svg:


  http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink";>
Example Use01 - Simple case of 'use' on a 'rect'
 
   
 
 
 
  
this is test from http://www.w3.org/TR/SVG/struct.html#UseElement tests

in sitemap.xmap:

   


   

But get the error <8-((:
 The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies that 
org.apache.cocoon.ProcessingException says:

Failed to execute pipeline.

More precisely:

org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
org.apache.batik.transcoder.TranscoderException: null
Enclosed Exception:
http://xml.apache.org:-1
The URI '' specified on the element  is invalid

extra info
full exception chain stacktrace
Original exception : org.apache.batik.transcoder.TranscoderException: null
Enclosed Exception:
http://xml.apache.org:-1
The URI '' specified on the element  is invalid
at org.apache.cocoon.serialization.SVGSerializer.notify(SVGSerializer.java:272)
at org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:134)
at org.apache.xerces.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:724)
...

I'm sure in my use of  element (I loocked at the specification svg v1.0 on 
http://www.w3.org/TR/SVG/struct.html#UseElement)
Can anyone explain me where I'm wrong :) ?
Thanx!

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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




element in svg

2002-11-14 Thread Yury Mikhienko
Hi All!

I have the cocoon2.0.2 on Tomcat4.0.4 and I tried to generate png from following svg:
mean.svg

http://www.w3.org/1999/xlink";>

Produced by GNUPLOT (svg.trm written by Amedeo Farello - 
[EMAIL PROTECTED])

















 4.8








 5








 5.2








 5.4








 5.6








 5.8








 6








01/02









02/02









03/02










04/02









05/02









06/02









07/02









08/02









09/02









10/02



Mean Weighted


Months























in sitemap.xmap:

   


   

But get the error <8-((:
 The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies that 
org.apache.cocoon.ProcessingException says:

Failed to execute pipeline.

More precisely:

org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
org.apache.batik.transcoder.TranscoderException: null
Enclosed Exception:
http://xml.apache.org:-1
The URI '' specified on the element  is invalid

extra info
full exception chain stacktrace
Original exception : org.apache.batik.transcoder.TranscoderException: null
Enclosed Exception:
http://xml.apache.org:-1
The URI '' specified on the element  is invalid
at org.apache.cocoon.serialization.SVGSerializer.notify(SVGSerializer.java:272)
at org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:134)
at org.apache.xerces.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:724)
...

I'm sure in my use of  element (I loocked at the specification svg v1.0 on 
http://www.w3.org/TR/SVG/struct.html#UseElement)
Can anyone explain me where I'm wrong :) ?
Thanx!

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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




svg

2002-11-14 Thread Boris Althaus



Hallo,
 
does exists something like a 
svg2gif-Serializer.
 
Boris


Re: SVG: NoClassDefFoundError

2002-10-26 Thread Kjetil Kjernsmo
On Friday 25 October 2002 16:28, Christian Parpart wrote:

> On Thursday 24 October 2002 5:48 pm, Kjetil inspired the electrons to 
say:
> > On Thursday 24 October 2002 13:50, Christian Parpart wrote:
> > > org.apache.cocoon.ProcessingException: Error compiling sitemap:
> > > java.lang.NoClassDefFoundError
> >
> > Hm, I wonder if it is related to the error I'm seeing. Can I ask
> > which SDK you're using, at what platform?
>
> I was first using Sun Java SDK 1.4.1 for Linux (completely gcc3.2
> build), after getting linkage errors by that binary only version
> against the old libstdc++ (wich, of course, does not exist).

Yeah, I've been through that too... I got that fixed by doing some 
symlinks, it worked, but it isn't pretty. I can dig it up I think if 
you want. 

> This error was raised at "sitemap compilation" at the very beginning

Yep. 

> I had to switch to blackdown jdk 1.3.1. Here I got the error
> described. Blackdown JDK (1.3.1) is binary only distributed, too. but
> it seems that it's not linked against libstdc++.

Yep.


> Well, I'm using Gentoo Linux with latest kernel, but this is probably
> not the point; but Yeah, where (TF) are the wizards now?

Well, there is a big volume here, even wizards can't get through 
everything, I'm afraid. I must admit I really miss their kind advice 
(hint, hint!) :-)

Anyway, I found a wizard elsewhere too, and he told me that he had seen 
this error before in Tomcat < 4.0.2 and Cocoon 2.0.1, and the 
workaround back then was to copy certain files from cocoon/WEB-INF/lib 
to $TOMCAT_HOME/common/lib. I did that, more specifically, this is what 
I did:
cp ../../webapps/cocoon/WEB-INF/lib/xml-apis.jar .
cp ../../webapps/cocoon/WEB-INF/lib/xalan* .
cp ../../webapps/cocoon/WEB-INF/lib/batik* .

(obviously, you have to modify to suit you).

That solved that problem, but only to give me another problem I've been 
struggling with, that I've asked for help about in the message I posted 
with the subject: IOException when installing Cocoon 2.1
So, I get an IOException with 2.1 

Best,

Kjetil
-- 
Kjetil Kjernsmo
Astrophysicist/IT Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer
[EMAIL PROTECTED]  [EMAIL PROTECTED]  [EMAIL PROTECTED]
Homepage: http://www.kjetil.kjernsmo.net/


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: SVG: NoClassDefFoundError

2002-10-25 Thread Christian Parpart
WARNING: Unsanitized content follows.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thursday 24 October 2002 5:48 pm, Kjetil inspired the electrons to say:
> On Thursday 24 October 2002 13:50, Christian Parpart wrote:
> > org.apache.cocoon.ProcessingException: Error compiling sitemap:
> > java.lang.NoClassDefFoundError
>
> Hm, I wonder if it is related to the error I'm seeing. Can I ask which
> SDK you're using, at what platform?

I was first using Sun Java SDK 1.4.1 for Linux (completely gcc3.2 build), 
after getting linkage errors by that binary only version against the old 
libstdc++ (wich, of course, does not exist). 

This error was raised at "sitemap compilation" at the very beginning

I am really not able to easily downgrade to gcc2.x

I had to switch to blackdown jdk 1.3.1. Here I got the error described.
Blackdown JDK (1.3.1) is binary only distributed, too. but it seems that it's 
not linked against libstdc++.

> I've been using various SDK's from various sources, this one is 1.3.1
> from Blackdown on Debian Woody GNU/Linux 2.4.19. I've seen many
> different errors with different SDK's, this one seems to only come with
> some builds of this version...
>
> So, I can't be of any help, but if it is correct that there is some
> relationship here, maybe the wizards can get onto something.

Well, I'm using Gentoo Linux with latest kernel, but this is probably not the 
point; but Yeah, where (TF) are the wizards now?

Greets,
Christian Parpart.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9uVUrPpa2GmDVhK0RAi4cAJ4naBx0jJiLjFQ98gSMkq2ZSvYGzgCcCctb
L352u6qZMqKX/zmQAe3F8lI=
=9V8W
-END PGP SIGNATURE-


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




  1   2   3   >