You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Stefano Barella <st...@one.it> on 2002/07/19 10:17:45 UTC

Difference of HREF for an SVG file From Windows to Linux-Unix

Hi guys, I have a problem. I want to put in a PDF an SVG image.
 
My problem is that in Linux FOP doesn't find the image while in Windows
it is.
 
Below the XSL code for Windows :
 
The image is into : C:\myapps\images\
 
 <fo:instream-foreign-object>
     <svg xmlns="http://www.w3.org/2000/svg" width="9cm" height="11cm">
         <g>
             <image xlink:href="file:C:///C:\myapps\images\pie8386.svg"
x="0" y="0" width="9cm" height="11cm"/>
        </g>
    </svg>
</fo:instream-foreign-object>
 
 
I have tried the following for Linux but it is wrong:
 
The image is into : /myapps/images/
 
 <fo:instream-foreign-object>
     <svg xmlns="http://www.w3.org/2000/svg" width="9cm" height="11cm">
         <g>
             <image xlink:href="file:C:///C:\images\pie8386.svg" x="0"
y="0" width="9cm" height="11cm"/>
        </g>
    </svg>
</fo:instream-foreign-object>
 
 
Any help.
 
Thanks a lot.
 
Bye 
Stefano Barella
 

RE: Difference of HREF for an SVG file From Windows to Linux-Unix

Posted by Stefano Barella <st...@one.it>.
Sorry I wrote a mistake in my example.
However the correct way for Windows is file:///C:/ and not file://C:/.
I have tried just now.
For Linux I don't know, I will try as you suggest file://


Thanks, Bye
  Stefano Barella



-----Original Message-----
From: Denis [mailto:denis.thierry@aic-info.com] 
Sent: Friday, July 19, 2002 10:40 AM
To: fop-user@xml.apache.org
Subject: Re: Difference of HREF for an SVG file From Windows to
Linux-Unix 


MessageFile protocol should be file:// and not file:C://
Then you should use file:///myapps/images/mypic.gif

hope this help

Denis

----- Original Message -----
From: Stefano Barella
To: fop-user@xml.apache.org
Sent: Friday, July 19, 2002 10:17 AM
Subject: Difference of HREF for an SVG file From Windows to Linux-Unix


Hi guys, I have a problem. I want to put in a PDF an SVG image.

My problem is that in Linux FOP doesn't find the image while in Windows
it is.

Below the XSL code for Windows :

The image is into : C:\myapps\images\

 <fo:instream-foreign-object>
     <svg xmlns="http://www.w3.org/2000/svg" width="9cm" height="11cm">
         <g>
             <image xlink:href="file:C:///C:\myapps\images\pie8386.svg"
x="0" y="0" width="9cm" height="11cm"/>
        </g>
    </svg>
</fo:instream-foreign-object>


I have tried the following for Linux but it is wrong:

The image is into : /myapps/images/

 <fo:instream-foreign-object>
     <svg xmlns="http://www.w3.org/2000/svg" width="9cm" height="11cm">
         <g>
             <image xlink:href="file:C:///C:\images\pie8386.svg" x="0"
y="0" width="9cm" height="11cm"/>
        </g>
    </svg>
</fo:instream-foreign-object>


Any help.

Thanks a lot.

Bye
Stefano Barella





Re: Difference of HREF for an SVG file From Windows to Linux-Unix

Posted by Denis <de...@aic-info.com>.
MessageFile protocol should be file:// and not file:C://
Then you should use file:///myapps/images/mypic.gif

hope this help

Denis

----- Original Message -----
From: Stefano Barella
To: fop-user@xml.apache.org
Sent: Friday, July 19, 2002 10:17 AM
Subject: Difference of HREF for an SVG file From Windows to Linux-Unix


Hi guys, I have a problem. I want to put in a PDF an SVG image.

My problem is that in Linux FOP doesn't find the image while in Windows it
is.

Below the XSL code for Windows :

The image is into : C:\myapps\images\

 <fo:instream-foreign-object>
     <svg xmlns="http://www.w3.org/2000/svg" width="9cm" height="11cm">
         <g>
             <image xlink:href="file:C:///C:\myapps\images\pie8386.svg"
x="0" y="0" width="9cm" height="11cm"/>
        </g>
    </svg>
</fo:instream-foreign-object>


I have tried the following for Linux but it is wrong:

The image is into : /myapps/images/

 <fo:instream-foreign-object>
     <svg xmlns="http://www.w3.org/2000/svg" width="9cm" height="11cm">
         <g>
             <image xlink:href="file:C:///C:\images\pie8386.svg" x="0" y="0"
width="9cm" height="11cm"/>
        </g>
    </svg>
</fo:instream-foreign-object>


Any help.

Thanks a lot.

Bye
Stefano Barella