W3C home > Mailing lists > Public > www-xsl-fo@w3.org > March 2001

Problem with fo:external-graphic

From: <palmarosa.dalpos@cnedi06.cnafmail.fr>
Date: Tue, 6 Mar 2001 15:50:35 +0100
To: www-xsl-fo@w3.org
Message-ID: <OF740726D9.2ACC78F2-ONC1256A07.00486F26@cnafmail.fr>
Hello,

I've problems with images in pdf.
I've been trying to run  examples with external images but I always have
errors. When I run the example found in  Elliote Rusty Harold's book,
chapter15, 15-7, I get the pdf without the image and I get this error :
                                                                   
 ... formatting FOs into areas                                     
  [1Error while creating area : Error while recovering Image       
 Informations (http:/                                              
 /www.ibiblio.org/xml/images/atom.jpg) : www.ibiblio.org           
 ] [2Error while creating area : Error while recovering Image      
 Informations (http:                                               
 //www.ibiblio.org/xml/images/atom.jpg) : www.ibiblio.org          
 ] [3Error while creating area : Error while recovering Image      
 Informations (http:                                               
 //www.ibiblio.org/xml/images/atom.jpg) : www.ibiblio.org          
 ] [4Error while creating area : Error while recovering Image      
 Informations (http:                                               
 //www.ibiblio.org/xml/images/atom.jpg) : www.ibiblio.org          
 ] [5Error while creating area : Error while recovering Image      
 Informations (http:                                               
 //www.ibiblio.org/xml/images/atom.jpg) : www.ibiblio.org          
 ]                                                                 
 rendering areas to PDF                                            
 writing out PDF                                                   
                                                                   
 Can somebody say me what I've been forgotten or what is wrong ?   
                                                                   
 Thanks a lot in advance                                           
                                                                   
 Palma.                                                            
                                                                   
 xsl file used  (chapter15, 15-7) :                                
                                                                   
 <?xml version="1.0"?>                                             
 <xsl:stylesheet version="1.0"                                     
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"                
   xmlns:fo="http://www.w3.org/1999/XSL/Format">                   
                                                                   
  <xsl:template match="/">                                         
     <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">        
                                                                   
       <fo:layout-master-set>                                      
                                                                   
         <fo:simple-page-master master-name="A4"                   
           page-width="297mm"  page-height="210mm"                 
           margin-top="0.5in"  margin-bottom="0.5in"               
           margin-left="0.5in" margin-right="0.5in">               
           <fo:region-before extent="1.0in"/>                      
           <fo:region-body margin-top="1.0in"                      
                          margin-bottom="1.0in"/>                  
           <fo:region-after  extent="1.0in"/>                      
         </fo:simple-page-master>                                  
                                                                   
       </fo:layout-master-set>                                     
                                                                   
       <fo:page-sequence master-name="A4"                          
         initial-page-number="1" language="en" country="us">       
                                                                   
         <fo:static-content flow-name="xsl-region-before">         
           <fo:block>                                              
            <fo:external-graphic                                   
              src="http://ibiblio.org/xml/images/atom.jpg"/>       
             The Periodic Table                                    
           </fo:block>                                             
         </fo:static-content>                                      
                                                                   
         <fo:static-content flow-name="xsl-region-after">          
           <fo:block>                                              
             <fo:leader leader-pattern="rule"                      
                       leader-length="18cm"/>                      
           </fo:block>                                             
           <fo:block>p. <fo:page-number/></fo:block>               
         </fo:static-content>                                      
                                                                   
         <fo:flow flow-name="xsl-region-body">                     
           <xsl:apply-templates select="//ATOM"/>                  
         </fo:flow>                                                
                                                                   
       </fo:page-sequence>                                         
                                                                   
     </fo:root>                                                    
  </xsl:template>                                                  
                                                                   
  <xsl:template match="ATOM">                                      
     <fo:block><xsl:value-of select="NAME"/></fo:block>            
  </xsl:template>                                                  
                                                                   
 </xsl:stylesheet>                                                 
                                                                   
                                                                   
Received on Tuesday, 6 March 2001 09:58:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:08 GMT