Subject: RE: [xsl] External-graphic From: <Tom.Fritz@xxxxxxxx> Date: Mon, 6 Mar 2006 16:02:17 +0100 |
Hi again I've written my own pdf generator using Java. Therefore I've used the libraries from apache fop_bin_0_13_0.jar, xalan.jar and xerces.jar Tom -----Original Message----- From: G. Ken Holman [mailto:gkholman@xxxxxxxxxxxxxxxxxxxx] Sent: 06 March 2006 12:55 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: [xsl] External-graphic At 2006-03-06 09:00 +0100, Tom.Fritz@xxxxxxxx wrote: >It still nothing happens and I got the following warning WARNING: >Unknown formatting object >http://www.w3.org/1999/XSL/Format^external-graphic I cannot see any reason why changes suggested would prevent the object from being recognized by whatever processor you are using (you don't say which it is) provided it is a conforming XSL-FO processor. >Here is the full stylesheet. >... ><fo:simple-page-master page-master-name="general"> I note that page-master-name= is *not* an attribute for simple-page-master. ><fo:region-body >margin-left="36pt" margin-right="36pt" margin-top="72pt" >margin-bottom="72pt" /> >... ><fo:flow flow-name="photo" font-family="sans-serif" font-size="10pt" > I note there is no region in your page geometry with the flow name of "photo". ><fo:sequence-specification> I note this is not an element type in the standardized XSL-FO vocabulary. If the remainder of this instance beyond fo:external-graphic is working, it does not look like a conforming XSL-FO processor is being used to process your instance. > <fo:block><fo:external-graphic >src='url("file:/c:/logo.jpg")' height="3cm" width="3cm"/></fo:block> I note that you have not changed the syntax as suggested, perhaps leaving it this way will continue to give you problems when you have resolved why your processor is complaining about the correct spelling of an element type in the FO vocabulary. But it looks like you aren't even using standard XSL-FO. . . . . . . . . . . . Ken At 2006-03-03 06:40 -0500, I wrote: >If the filename is c:\logo.jpg, then I belive the correct URL syntax >for this is: > > file:///c:/logo.jpg > >So, try: > > <fo:external-graphic > src='url("file:///c:/logo.jpg")' height="3cm" width="3cm"/> At 2006-03-06 10:59 +0000, Owen Rees wrote: >The form "file:/x..." where 'x' is any character other than '/' is not >a syntactically correct URL according to RFC1738. > >Those who are using Java (and thus any of the many XSL tools >implemented in Java) will find that the "file:///<path>" form which is >correct according to RFC1738 -- Upcoming XSLT/XSL-FO hands-on courses: Washington,DC 2006-03-13/17 World-wide on-site corporate, govt. & user group XML/XSL training. G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Cancer Awareness Aug'05 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal ########################################### CONFIDENTIALITY: This e-mail and any attachments are confidential and may also be privileged. If you are not the designated recipient, please notify the sender immediately by reply e-mail and destroy all copies (digital and paper). Any unauthorized disclosure, distribution, copying, storage or use of the information contained in this e-mail or any attachments is strictly prohibited and may be unlawful.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] External-graphic, G. Ken Holman | Thread | Re: [xsl] External-graphic, J.Pietschmann |
Re: [xsl] service marks and other s, andrew welch | Date | [xsl] XSL with CSS, koteshwar.venigalla |
Month |