At 2006-03-06 09:00 +0100, Tom(_dot_)Fritz(_at_)hitec(_dot_)lu 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(_at_)CraneSoftwrights(_dot_)com
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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--