Skip to content

Series of XSLT templates to create Line Breaks from a plain text for different layout languages.

License

Notifications You must be signed in to change notification settings

it3xl/xslt-line-break-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Series of XSLT templates to create Line Breaks from a plain text for different layout languages.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages