![]() |
|
txform |
Longname: | t x ml trans form | ![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Released: | 7.08a | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Created: | 7.08a | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Default value: | n/a |
Summary |
This macro allows you to transform XML data to your requirements using XSLT. |
Example extract |
Below is a basic example of the syntax required to perform an XSLT transformation in Arbortext APP. First, the tag to be transformed is entered and the relevant number for the frequency of the transformation, in this case, zero stands for fully automatic. Next, the type of transformation is entered which is XSLT and then the source_tag is entered. Finally, a stylesheet is required in order to carry out the transformation.
|
Syntax
|
tag name:s |
Name of the target tag to overwrite. If the tag does not exist it will be created. |
frequency:s |
Enter the frequency of the transformation required.
|
type:n |
Type of transformation.
|
source tag:s |
The name of the source tag for transform. |
control tag:s |
Optional control tag or stylesheet for transform. This is the name of the stream that contains the XSLT, translation map, search and replace script etc. |
parameter control tag:s |
Optional parameter control tag or stylesheet for transform. A parameter control tag can be used to pass external parameters to the stylesheet. When performing transformations, it is sometimes necessary to pass variable values from one template to another. This is particularly useful if you are using a named template to transform different XML trees. Similarly, it is also possible to modify the way a template behaves based on the value(s) set by an external parameter control stream. The parameter control stream can be of any type. The syntax for parameters in the control stream is: ParameterName="value" for example: Indent="Right" |
![]() |
Note that using parameter control tags is only available with the libxml parser. For more information on parsers in 3B2 see the XML in 3B2 chapter. |
Perl Script transformations |
This option calls a perl script to transform the input stream. The specified input, output and parameter streams are opened and close for use by the perl script by default. |
The default names for the streams and associcated file handles are: |
|
The code that gets run before the perl control script is located in string 1475, and the code that is run at the end is in string 1476. |
Document created on 08-Feb-2003, last reviewed on 06-Sep-2005 (revision 1)