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

Features

  • Uses XSLT to transform XML to HTML, XHTML, or wiki markup. Supports XSLT 1.0.
  • Supports capabilities for including data similar to other scripting macros.
  • Supports find and replace for adjusting resulting output.
  • Allows the user to restrict the usage of Javascript in the XSLT macro (based on the configuration ofAllow Javascript in the Configuration page). The Confluence page throws a rendering error if this parameter is not enabled, and Javascript is inserted while using the macro.

Parameters

Table plus


Macro Editor LabelDefaultDescriptionMacro Parameter
Transformed output format

html

Specify how the output is treated. The options are as follows:

  • 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.

output

Location of XML code

macro body

Enter the location of data. Required, if style (XSLT code) is in the macro body.

  • #http://... - Data is read from URL. May require the user and password parameters as well.
  • ^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.

source

Location of XSL code

required or macro body if source is specified

Enter the location of XSL code. Required if source XML is in the macro body, else, it defaults to the content in macro body.

  • #http://... - Data is read from URL. May require the user and password parameters as well.
  • ^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
Find regex patterns

Enter a comma separated list of regex patterns to repair and modify XML prior to processing by the XSLT processor with find and replace logic. Example: (google\.dtd)

find
Replacement strings

Enter a comma separated list corresponding to find patterns via index position in list. If a comma is a part of an entry, use single quotes around itExample: http://www.google.com/$1

replace
File encoding

system default

Specify the encoding for an external file, if different from the system default handling. Example: UTF-8.encoding
URL user 


Enter the user name for URL access via basic authentication.user
URL user password 
Enter the password for URL access via basic authentication. password
Timeout in milliseconds
Enter time in milliseconds such that URL connections do not timeout before getting data. Use this to increase time needed for slow connections. Note that if a zero is given the connection may wait infinitely.timeout
XSLT Version1.0Select the version based on your style (XSLT) input document. This list box contains the XSLT versions that the macro is compatible with. xsltVersion


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


...