Associated Transformation (DTF) and XQ files have references to each other in their source code. For example, if you create a Transformation file named union which contains a Transformation method called convert and you create maps between the source and target nodes of the Transformation method the following files are generated:
In the Application tab, the following is displayed:
These two files are associated with each other, the union.dtf refers to the convert.xq file and the convert.xq refers to the union.dtf file. If you change the name of either of these files or the transformation method name you must update the reference to it in the other file.
For the preceding example, the following transform annotation is displayed in the Source View of the union.dtf file, as shown in the following figure.
The following comment is displayed in the Source View of the convert.xq file, as shown in the following figure:
This section contains the following topics:
Rename the DTF File and References in Associated XQ Files
For this example, select the union.dtf file.
For this example, replace union with myunion.
In the Application tab, the DTF file is renamed to myunion.dtf and the associated XQ file (convert.xq) no longer appears under the myunion.dtf file as shown in the following figure:
For this example, in the Application tab double-click convert.xq.
For this example, select the Source View tab of the convert.xq file.
The red underline in the first line of the XQ file disappears.
For this example, change the first line from the following code:
{-- test/union.dtf#convert --}
{-- test/myunion.dtf#convert --}
Rename the XQ File and References In the Associated DTF File
For this example, select the convert.xq file.
For this example, replace convert with myconvert.
For this example, in the Application tab double-click union.dtf.
For this example, select the Source View tab of the union.dtf file.
The red underline under the XQ name disappears.
For this example, change the annotation from the following code:
/** * @dtf:transform xquery-ref="convert.xq" * @dtf:schema-validate return-value="false" parameters="false" */
/** * @dtf:transform xquery-ref="myconvert.xq" * @dtf:schema-validate return-value="false" parameters="false" */
![]() |
![]() |