cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Miller, Grant" <Grant.Mil...@COGNOS.com>
Subject FW: cocoon post
Date Wed, 23 Jan 2002 16:06:18 GMT
Forwarding this on behalf of a work mate....

>  -----Original Message-----
> From: 	Tsui, Alban  
> Sent:	Wednesday, January 23, 2002 3:43 PM
> To:	Miller, Grant
> Subject:	cocoon post
> 
> The following is my message, could you please post it to the developer
> site for me (not user site)? Thanks.
> 
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> ++++
> I have problem with svg using style sheet. I have a svg file:
> 
> <?xml version="1.0" standalone="no"?>
> <?xml-stylesheet type="text/css" href="../../styles/extstyle.css"?>
> <svg width="200" height="200">
> 	<rect x="48" y="42" width="127" height="131"/>
> </svg>
> 
> with a style sheet:
> 
> rect {
> 	stroke:red;
> 	fill: #CCCCFF;
> 	stroke-width:2;
> }
> 
> but when I tried it with the svg2jpeg serialiser I get an error message:
> org.apache.cocoon.ProcessingException: Could not read resource
> file:/E:/Program Files/Apache Tomcat 4.0/webapps/cocoon/graphics/test.svg:
> java.lang.RuntimeException: The document located at
> "http://xml.apache.org/../../styles/extstyle.css" represents an invalid
> CSS
> document. http://xml.apache.org/../../styles/extstyle.css
> 
> and it seems to append "http://xml.apache.org" to that href... for no
> particular reason??? 
> 
> But if I change that href to full url,
> http://localhost:8080/cocoon/styles/extstyle.css it works... 
> 
> Should it just fetch that stylesheet via local relative path... 
> 
> Can anyone help? Or is there some kind of settings that I need to put in
> the
> sitemap to control the serialiser? Or is it simply a bug in the
> serializer.
> 
> regards
> Alban
> 
> 
> 
This message may contain privileged and/or confidential information.  If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so.  Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message