job-info()

Top Previous Topic Next Topic  Print this topic

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 you to extract data out of it and therefore out of the actual job file.

 

The in-memory job info file looks like this:

 

<?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 like this:

 

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

 

To style it, you can use xfj:external-content to reference an external XSLT or XFD stylesheet.

 

This mechanism allows for the creation of a table of contents on-the-fly.