From: William Victor Mote Date: Fri, 11 Jul 2003 19:01:54 +0000 (+0000) Subject: 1. add section about external resources in fo.xml X-Git-Tag: Root_Temp_KnuthStylePageBreaking~1298 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e22802340b91f6c6eb2b9f81d168d59a3ae1c01c;p=xmlgraphics-fop.git 1. add section about external resources in fo.xml 2. update the faq regarding external resources to point to this new section 3. update configuration.xml to include additional information about the default baseDir (which information was formerly in the faq). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196686 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/documentation/content/xdocs/configuration.xml b/src/documentation/content/xdocs/configuration.xml index 4ed2d188d..a8d8576eb 100644 --- a/src/documentation/content/xdocs/configuration.xml +++ b/src/documentation/content/xdocs/configuration.xml @@ -45,7 +45,7 @@ Also, since the configuration file is XML, be sure to keep it well-formed.

baseDir URL - directory containing the input FO file + For command-line, the directory containing the input FO or XML file. For embedded, the current working directory. fontBaseDir @@ -53,7 +53,7 @@ Also, since the configuration file is XML, be sure to keep it well-formed.

value of baseDir - hyphenation-dir + hyphenation-dir URL None. This is for custom hyphenation patterns. diff --git a/src/documentation/content/xdocs/faq.xml b/src/documentation/content/xdocs/faq.xml index ba6335d88..7064e3417 100644 --- a/src/documentation/content/xdocs/faq.xml +++ b/src/documentation/content/xdocs/faq.xml @@ -309,22 +309,7 @@ FOP cannot find a file for fo:external-graphics. -

- The src attribute of the fo:external-graphics element takes an URI, - not a file name. -

-

- Relative URLs are resolved against the baseDir property of FOP. For - the command line FOP application, the baseDir is the directory of the - input file, either the FO file or the XML source. If FOP is used - embedded in a servlet, baseDir can be - set explicitely. If it's not set, it is usually the current - working directory of the process which runs FOP. -

- +

The src attribute of the fo:external-graphics element requires a URI, not a file name. See External Resources for more information about specifying URIs.

diff --git a/src/documentation/content/xdocs/fo.xml b/src/documentation/content/xdocs/fo.xml index 80c502a99..40f92eb25 100644 --- a/src/documentation/content/xdocs/fo.xml +++ b/src/documentation/content/xdocs/fo.xml @@ -436,6 +436,14 @@ See the notes near the beginning of the document for instructions on how to use ]]> +
+ External Resources +

Resources needed by an XSL-FO file that are external to it (graphics, for example), are defined in the XSL-FO standard as being of type "uri-specification". This is defined in the standard at Section 5.11 Property Datatypes, which includes a link to the URI standard itself. Refer to the XSL-FO and URI standards themselves for more detailed instructions.

+

URIs may be either absolute or relative to a base URI. (See FOP: Configuration for information on setting the base URI for a FOP session). Here is an example referencing an external-graphic that is relative to the base URI:

+ ]]> +

Here is an example referencing an external-graphic that is an absolute URI on a local filesystem:

+ ]]> +