### Complete XSLT Configuration Example
Source: https://github.com/sharp-point-data/xls-fo-docs/blob/main/docs/ahf-config-xslt.md
An example demonstrating a complete XSLT configuration, including parameters and how file paths with spaces are handled using quotation marks.
```xml
```
--------------------------------
### Leader Length Values Example (XML)
Source: https://github.com/sharp-point-data/xls-fo-docs/blob/main/docs/properties-leader.md
This example demonstrates how to set the minimum, optimum, and maximum lengths for an XSL-FO leader. These values allow for flexible justification of lines by controlling the leader's expansion.
```xml
leader-length.minimum="0pt"
leader-length.optimum="12pt"
leader-length.maximum="100%"
```
--------------------------------
### XSL-FO Index Markers Example
Source: https://github.com/sharp-point-data/xls-fo-docs/blob/main/docs/properties-indexing.md
This snippet shows the XSL-FO markup generated from DocBook index terms after transformation. It includes examples of fo:wrapper, fo:index-range-begin, and fo:index-range-end elements, each with an 'index-key' attribute that defines the sorting and grouping for the index. The output is presented in document order.
```xml
[E 9]
[F 10]
[G 11]
[H 13]
[Y 15]
[C 15]
[K 16]
[L 18]
[A 19]
[O 21]
[B 23]
[D 25]
[P 27]
[Q 29]
[R 30]
[S 31]
[T 32]
[U 33]
[V 34]
[X 37]
```
--------------------------------
### DocBook Indexterm Examples
Source: https://github.com/sharp-point-data/xls-fo-docs/blob/main/docs/properties-indexing.md
Illustrates various ways to define index terms using DocBook's 'indexterm' element. Examples include basic terms, terms with significance, range definitions, and terms associated with figures.
```xml
Eiffel Tower
```
```xml
Eiffel Tower
```
```xml
Eiffel Tower
...
```
```xml
The Eiffel Tower
Eiffel Tower
...
```
--------------------------------
### XSL-FO Alternative Copyfit Content Example
Source: https://github.com/sharp-point-data/xls-fo-docs/blob/main/docs/properties-pagination.md
This XSL-FO snippet showcases the fo:alternative-copyfit-content element, which allows for adjustable word-spacing and line-height properties. It demonstrates how to apply these properties to blocks of text within a flow.
```xml
Crucis rosa ut
hoc sien qua non res veni. Etiam tristique,
nulla a pulvinar hendrerit nihil tortor urna auctor etim
domine secularia cali sed ut quotie ire in domince hoc fantus quis eius rei rei.
Lorem maecenas blandit ac, neque sed ut pulvinar, lectus sagittis
sapien per risus vel. Ligula sapien sed morbi cras tellus commodo.
Si qua ex docet dei etris crucis curabitur
magna nis, faucibus sed ornare sed, congue eu dui.
Pellentesque habitant morbi tristique senectus et netus et
malessecularia uada fames ac turpis egestas. Nunc sit amet dolor
sed sem congue mattis sed ut arcu. Mauris id magna sit amet elit aliquam.Pellentesque habitant morbi tristique senectus et netus et malesuada
fames.
```
--------------------------------
### Suppress Block at Page/Column Start in XSL-FO
Source: https://github.com/sharp-point-data/xls-fo-docs/blob/main/docs/ahf-properties-suppress.md
The axf:suppress-if-first-on-page property controls whether a block is suppressed at the beginning of a page or column. Setting it to 'true' hides the block if it's at the start, while 'unless' suppresses it if it's not at the start. It applies to 'fo:block' and 'fo:block-container'.
```xml
```
```xml
```
--------------------------------
### Get Physical Page Number with XML
Source: https://github.com/sharp-point-data/xls-fo-docs/blob/main/docs/ahf-properties-pdf-misc.md
Retrieves the physical page number, independent of the initial-page-number property. To get the total number of pages, assign an ID to the last page and reference it.
```xml
```
--------------------------------
### XSL-FO: fo:change-bar-begin Properties Example
Source: https://github.com/sharp-point-data/xls-fo-docs/blob/main/docs/fo-change-bar-begin.md
Illustrates the use of various properties with fo:change-bar-begin to customize the appearance and behavior of the change bar. This includes setting the class, color, width, style, offset, and placement.
```xml
```
--------------------------------
### XSL-FO Modulo Operator Examples
Source: https://github.com/sharp-point-data/xls-fo-docs/blob/main/docs/guide-expressions.md
Provides examples demonstrating the behavior of the `mod` operator in XSL expressions with positive and negative operands.
```text
5 mod 2 returns 1
5 mod -2 returns 1
-5 mod 2 returns -1
-5 mod -2 returns -1
```
--------------------------------
### XML: Original Formatting Object Tree
Source: https://github.com/sharp-point-data/xls-fo-docs/blob/main/docs/guide-bidi.md
Illustrates the initial structure of an XML formatting object tree before BIDI refinement. This serves as the input for the splitting process.
```xml
LL
LLLRRR
RR
```
--------------------------------
### XSL-FO: Two Flows to Distinct Regions with Copyfit
Source: https://github.com/sharp-point-data/xls-fo-docs/blob/main/docs/guide-area-model.md
This example demonstrates configuring two distinct flows (A and B) to target two separate regions (R1 and R2). It highlights the use of `display-align` to enable copyfit on R1 and `force-page-count` to ensure the entire content fits on one page. The `adjustable-properties` attribute specifies which properties can be modified for copyfitting.
```xml
Lorem maecenas blandit ac, neque sed ut pulvinar,
lectus sagittis sapien per risus vel. Ligula sapien sed morbi cras
tellus commodo. Si qua ex docet dei etris crucis curabitur magna nisi, faucibus sed ornare sed,
congue eu dui. Pellentesque habitant morbi tristique senectus et
netus et malessecularia uada fames ac turpis
egestas. Nunc sit amet dolor sed sem congue mattis sed ut
arcu. Mauris id magna sit amet elit aliquam.Pellentesque habitant morbi tristique senectus et
netus et malesuada fames.Crucis rosa ut hoc sien qua non res veni.Etiam tristique, nulla a pulvinar hendrerit nihil
tortor urna auctor etim domine secularia cali sed ut quotie ire in
domince hoc fantus quis eius rei rei.
```
--------------------------------
### XSL-FO display-position Property
Source: https://github.com/sharp-point-data/xls-fo-docs/blob/main/docs/properties-numbering.md
The display-position property dictates where the generated number areas are placed relative to the content flow. Accepted values are 'before', 'after', 'start', and 'end', with 'start' being the default. This controls the spatial relationship of the number to its associated content.
```xml
```
--------------------------------
### Construct XSL-FO Bookmarks with Styling and Collapse
Source: https://github.com/sharp-point-data/xls-fo-docs/blob/main/docs/guide-bookmarks.md
This snippet shows how to manually construct an XSL-FO bookmark tree. It demonstrates styling options like font-weight and color, and controls the initial visibility of bookmarks using `starting-state` ('show' or 'hide'). It also includes an example of an external link.
```xml
Part I: Foundations
Chapter 1: Overview1.1 History1.2 Current StateChapter 2: Theory
Part II: Applications
Chapter 3: Implementation
Online Appendix (External)
```
--------------------------------
### XSL-FO Multi-Properties Link Styling Example
Source: https://github.com/sharp-point-data/xls-fo-docs/blob/main/docs/properties-dynamic-effects.md
This XSL-FO snippet demonstrates how to apply multiple property sets to a link, allowing for different styling based on the link's state (e.g., visited, hover). It utilizes `fo:multi-properties` and `fo:multi-property-set` to define these state-specific styles.
```xml
Follow this
link
to access all
TRs of the W3C.
```
--------------------------------
### Example of fo:multi-property-set Usage in XSL-FO
Source: https://github.com/sharp-point-data/xls-fo-docs/blob/main/docs/fo-multi-property-set.md
This snippet demonstrates how to use fo:multi-property-set to define different styles for an fo:wrapper based on the active state. The fo:wrapper uses merge-property-values() to apply these styles. This is a conceptual example as the spec does not provide direct code samples for this object.
```xml
This is a sample text. Hover over it to see the effect.
```
--------------------------------
### XML: Split Formatting Object Tree after BIDI Refinement
Source: https://github.com/sharp-point-data/xls-fo-docs/blob/main/docs/guide-bidi.md
Demonstrates the resulting XML formatting object tree after BIDI refinement has split an existing object. It shows the insertion of `fo:bidi-override` and the replication of properties.
```xml
LL
LLLRRR
RR
```
--------------------------------
### Constructed Example: Mapping Generic Font Families with axf:script-font
Source: https://github.com/sharp-point-data/xls-fo-docs/blob/main/docs/ahf-fo-script-font.md
A constructed example demonstrating how to use the axf:script-font element within fo:declarations to map generic font families for Japanese, Latin, and Arabic scripts. It shows the usage of script, serif, sans-serif, monospace, and fallback attributes.
```xml
```
--------------------------------
### Constructed Example: Complete Table with Alternating Rows and Styled Header (XLS-FO)
Source: https://github.com/sharp-point-data/xls-fo-docs/blob/main/docs/guide-tables-advanced.md
This example demonstrates the creation of a complete table in XLS-FO with a fixed layout, styled header and footer rows, and alternating background colors for table body rows. It utilizes various attributes for layout, borders, padding, and text styling.
```xml
Product
Price
Stock
Total$1,250.00450Widget A$250.00150Widget B$500.00200Widget C$500.00100
```
--------------------------------
### Define Region Before with Precedence (XML)
Source: https://github.com/sharp-point-data/xls-fo-docs/blob/main/docs/fo-region-before.md
This example shows how to configure 'fo:region-before' with the 'precedence' attribute set to 'true'. When precedence is enabled, the region spans the full page width, and 'extent' controls its height.
```xml
```
--------------------------------
### Ghostscript Options Configuration
Source: https://github.com/sharp-point-data/xls-fo-docs/blob/main/docs/ahf-config-pdf.md
Customize the parameters used when launching Ghostscript for EPS to PDF conversion. This setting completely replaces the default parameters.
```APIDOC
## gs-options
### Description
When converting EPS into PDF using Ghostscript, AH Formatter V7.2 specifies the following parameters and starts Ghostscript by default:
```
-dPDFSETTINGS=/printer
-dNOPAUSE
-dBATCH
-dSAFER
-sDEVICE=pdfwrite
-dDEVICEWIDTHPOINTS=%width
-dDEVICEHEIGHTPOINTS=%height
-dEPSFitPage
-dCompatibilityLevel=1.3
-dAutoRotatePages=/None
-q
-sOutputFile=%temp
-c
.setpdfwrite
-f
%eps
```
The following four values starting with `%` are replaced by their respective values by AH Formatter V7.2:
- `%width` — Width of EPS
- `%height` — Height of EPS
- `%eps` — Input EPS
- `%temp` — Temporary Output File
You can specify any parameter with `gs-options`. Specify multiple parameters separated by U+000A (line feed). The `gs-options` setting completely replaces the above default settings and launches Ghostscript. The setting of `-sOutputFile` is always considered to be `-sOutputFile=%temp`. If `%temp` is not included, it will be added. If `%eps` is not included, it will be added at the end. The operation is not guaranteed when invalid parameters are specified.
### Method
Not Applicable (Configuration Setting)
### Endpoint
Not Applicable (Configuration Setting)
### Parameters
#### Path Parameters
None
#### Query Parameters
None
#### Request Body
None
### Request Example
None
### Response
#### Success Response (200)
None
#### Response Example
None
- **Applies to:** ``
- **Values:** Parameters separated by the character U+000A
- **Default:** none
```
--------------------------------
### axf:line-number-start
Source: https://github.com/sharp-point-data/xls-fo-docs/blob/main/docs/ahf-properties-line-number.md
Defines the starting line number for output. Line numbers are only displayed if they are greater than or equal to this value.
```APIDOC
## axf:line-number-start
### Description
Specifies the starting line number. Line numbers are shown when the value is greater than or equal to the value specified here. When `axf:line-number-initial="1" axf:line-number-start="5"` are specified, the first 4 line numbers are not shown but the 5th line number will be outputted as the beginning number. When `axf:line-number-initial="5" axf:line-number-start="6"` are specified, the first line number is not shown but the next line number is outputted as 6.
### Method
Not Applicable (Attribute)
### Endpoint
Not Applicable (Attribute)
### Parameters
#### Path Parameters
None
#### Query Parameters
None
#### Request Body
None
### Request Example
None
### Response
#### Success Response (200)
None
#### Response Example
None
### Attributes
- **Applies to**: ``
- **Values**: `auto | `
- **auto**: The specification of the previous `` is succeeded. If the previous `` does not exist, it defaults to 1.
- ****: Sets the line number that begins outputting to the specified value.
- **Initial**: `auto`
- **Inherited**: no
```