Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Div
idProductTOC

On this page

Table of Contents
maxLevel1
excludeOn this page
typeflat
separatorpipe

...

Excerpt

Uses XSLT to transform XML to HTML, XHTML, or wiki markup. Supports XSLT 1.0.

Parameters

Table plus


ParameterDefaultMacro Browser LabelDescription
outputhtmlTransformed output format

Determines how the transformed output is to be treated.

  • html - transformed output is standard html
  • xhtml - transformed output is treated as xhtml and rendered with the Confluence xhtml renderer
  • wiki - transformed output is treated as wiki markup and rendered with the Confluence wiki renderer
sourcemacro bodyLocation of XML code

Required if style (XSLT code) is in macro body.

  • #filename - Data is read from the file located in confluence home directory/script/filename. Subdirectories can be specified.
  • global page template name - Data is read from a global page template. Special note: How to deal with templates on Confluence 4.3 and later.
  • space:page template name - Data is read from a space template.
  • #http://... - Data is read from the URL specified.
  • ^attachment - Data is read from an attachment to the current page.
  • page^attachment - Data is read from an attachment to the page name provided.
  • space:page^attachment - Data is read from an attachment to the page name provided in the space indicated.
style

required or

macro body if source is specified

Location of XSLT code

Required if source XML is in the macro body, otherwise defaults to the macro body

  • #filename - Data is read from the file located in confluence home directory/script/filename. Subdirectories can be specified.
  • global page template name - Data is read from a global page template. Special note: How to deal with templates on Confluence 4.3 and later.
  • space:page template name - Data is read from a space template.
  • #http://... - Data is read from the URL specified.
  • ^attachment - Data is read from an attachment to the current page.
  • page^attachment - Data is read from an attachment to the page name provided.
  • space:page^attachment - Data is read from an attachment to the page name provided in the space indicated.
find
Find regex patterns

Comma separated list of regex patterns to use for repairing and modifying XML prior to processing by the XSLT processor with find and replace logic. HTML-68 has a bit more on this.

  • Example: (google\.dtd)
replace
Replacement strings

Comma separated list corresponding to find patterns via index position in list. Single quote entries containing a comma.

  • Example: http://www.google.com/$1
headfalseInclude head section HTMLOnly in affect if clean=true. The head tag is always removed. However, setting this to as true will retain all the other tags from the head section and treat them as regular body content. This is useful for retaining style information in particular.
showErrorsfalseShow error message panelXSLT transformer generated warning and errors will appear in a panel even if the transform is not terminated with an error. Terminating errors automatically generate an error panel.
encodingsystem defaultFile encodingEncoding for an external file if different from the system default handling. Example: UTF-8.
user
URL user User name for URL access via basic authentication.
password
URL user password User password for URL access via basic authentication. 
timeout
Timeout in millisecondsURL connections may timeout before getting data. Use this to increase time needed for slow connections. Be careful using 0 for an infinite wait.
disableSecureProcessingfalseDisable secure processing feature
If authorized by your Confluence administrator to change this setting, then more powerful capabilities are available. See
Jira Legacy
HTML-89
HTML-89
for details. Administrators can use CMSP to enable these more powerful capabilities.
xsltVersion1.0XSLT VersionThis parameter is available with 5.4.0 version. This lists the XSLT versions the macro is compatible with. Select the version based on your style (XSLT) input document.
<transformer parameters>

Only available when specifying xslt macro via wiki markup. See Passing parameters to the XSLT engine below.


...