[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: External-graphic

Subject: RE: External-graphic
From: <Tom.Fritz@xxxxxxxx>
Date: Mon, 6 Mar 2006 16:02:17 +0100
fo external graphic
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:  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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.