axf:base-uri
(Auszug aus "XSL-FO ― Die Referenz" von Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
Category URI and Link
The axf:base-uri specifies the location which becomes the base of relative URI.
Value: | <uri-specification> |
Initial: | empty string |
Applies to: | all formatting objects |
Inherited: | yes |
Percentages: | N/A |
The axf:base-uri is applied to all relative URI in a document. When making links using fo:basic-link and specify relative URI, the location that is specified using axf:base-uri is interpreted to be base URI. If this property is omitted or this has empty string, the base location is interpreted as current XML file.
In the case of the following example, it links to: "http://www.antennahouse.co.jp/xsl-info/Thai/THAI-BangKokNationalMuseum.pdf".
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions" axf:base-uri="http://www.antennahouse.co.jp/xsl-info/"> : : <fo:basic-link external-destination="Thai/THAI-BangKokNationalMuseum.pdf"> ... </fo:basic-link>
XSL-FO sample:
| <fo:root axf:base-uri="http://www.antenna.co.jp/AHF/ahf_samples/ja/" writing-mode="lr-tb" hyphenate="true" text-align="start" xml:lang="ja" font-family="Arial, 'MS ゴシック', sans-serif" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:cpfo="http://www.compart.net/xmlns/cpfo" xmlns:svg="http://www.w3.org/2000/svg" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions"> | |
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| ||
| AH Formatter V6 サンプル集 | |
| </fo:block> | |
| ||
| 最終更新日:2016年9月12日 | |
| </fo:block> | |
| ||
| 目次 | |
| </fo:block> | |
| ||
| ページの領域と構造に関する見本 | |
| </fo:block> | |
| ||
| XSL 基本仕様のサンプル | |
| </fo:block> | |
| ||
| ページ内の各領域の紹介 | |
| ||
| ||
| ||
| ||
| </fo:block> | |
| </fo:flow> | |
| ||
| ||
| ||
| ||
| ||
| </fo:block> | |
| ||
| ||
| ||
| ||
| ||
| | | |
| </fo:inline> | |
| ||
| </fo:block> | |
| ||
| ||
| ||
| ||
| ||
| | | |
| ||
| </fo:inline> | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| ||
| ページの領域と構造に関する見本 | |
| </fo:marker> | |
| ||
| ページ内の各領域の紹介 | |
| </fo:block> | |
| </fo:block> | |
| ||
| ||
| </fo:block> | |
| </fo:flow> | |
| ||
| </fo:root> |
Output:
page 2
Tipp der data2type-Redaktion: Zum Thema XSL-FO bieten wir auch folgende Schulungen zur Vertiefung und professionellen Fortbildung an: |