xfj:input-xml

Top Previous Topic Next Topic  Print this topic

This element is a child of xfj:document or xfj:overlay. Please refer to these topics before reading.

 

If the file referenced by the xfj:external-content of the parent document or overlay is an XFD or XSL template, then an input XML file must be specified:

 

<xfj:document>

       <xfj:external-content src="url(XFD_file_url)"/>

       <xfj:input-xml src="url(XML_file_url)"/>

       <!-- an optional xfj:transform element -->

</xfj:document>

 

The template is automatically combined with the XML data file and the resulting XSL-FO is added to the output.

The input XML can be also generated by the server on-the-fly via the job-info() function. This XML will contain information about the job which can be combined with an XFD template to generate a table of contents:

 

<xfj:input-xml src="job-info()"/>

 

 

Note: The xfj:input-xml element is DEPRECATED and should only be used with the job-info() function as its 'src'. For a regular XFD/XSL transform, point the xfj:external-content to the data XML and point either xfj:apply-local-template or xfj:apply-server-template to the template.