Passing 'job-info()' in a src node will point to a dynamic XML document created at runtime by scanning the contents of the job file.
The job info document is not visible to the user as it is generated in memory and represents an index of all the documents in the file.
However, knowing the syntax of this document allows the user to extract data out of it and therefore out of the actual job file.
The in-memory job info file has the below syntax:
<?xml version="1.0" encoding="utf-8"?>
<xfj:job-info xmlns:xfj="http://www.ecrion.com/xfj/1.0">
<xfj:document-info id="doc_id" title="doc_title" page="doc_start_page_number_in_job"/>
…
</xfj:job-info>
and can be included as follows:
<xfj:input-xml src="job-info()"/>
To style it, the xfj:external-content element can be used for referencing an external XSLT or XFD stylesheet.
This mechanism allows the creation of a table of contents on-the-fly.