...
Note |
---|
With this release, nested macros within the XSLT macro are supported. To make this work, select the Transformed output format macro parameter as Xhtml. |
Info |
---|
Known issue: When a user edits the macro body in the macro editor, the preview is not shown. Publish the page to view the output. |
Parameters
Macro editor label | Default | Description | Macro parameter | ||
---|---|---|---|---|---|
Transformed output format | html | Specify how the output is treated. The options are as follows:
| output | ||
Profile | Enter the profile name to be transformed. Refer to profile configuration settings to know more about profiles. Contact your Confluence administrator for further information about the profiles available in your instance. | profile name | |||
Location of XML code | macro body | Enter the location of data. By default, the macro transforms the code entered in the macro body.
| source | ||
Location of XSL code | macro body | Enter the location of XSL code. This field becomes mandatory if source XML code is entered in the macro body. By default though, the content in macro body is considered.
| 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 it. Example: http://www.google.com/$1 | replace | |||
Error Level | NONE | Specify the level at which the data process fails. If the XSLT transformer produces a message of this level or higher, this value determines whether the action taken by the macro. The options are:
| |||
File encoding | system default | Specify the encoding for an external file, if different from the system default handling. Example: UTF-8. | encoding | ||
User id for URL connection (Removed) | Enter the user name for URL access via basic authentication.
| user | |||
Password for URL connection (Removed) | 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 Version | 1.0 | Select 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> |
...