Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.22 KB

README.md

File metadata and controls

31 lines (22 loc) · 1.22 KB

XSLT Line-Break Template

Series of XSLT templates to create Line Breaks from a plain text.

Intendetn to be used with XSLT 1.0.

For XSLT 2.0 and later consider to use approaches like

  • XSLT 2.0 xsl:analyze-string (RegEx)
  • XPath 2.0 tokenize + XSLT (RegEx)
  • passing sequences as a template parameter (XSLT 2.0)
  • and so on

Content

For XSL-FO it supports

  • Line breaks
  • Line delimiters (vs Line breaks)
  • Series of pointers in a row
  • Ignore Pointer Repetitions (disable the Series of pointers in a row)
  • Any string as a pointer to insert a break or a delimiter ("\n" is default)
  • Line delimiters' height
  • Default Line delimiter height from a current font size.
  • Auto ignoring of the "\r" char when searching a break place.
  • Added support for XSLT 2.0 for a seamless migration.

Example of applying XSLT Line-Break Template fro XSL-FO