Summary of special variables for accessing the runtime hierarchy

You can use @ID and @B/ @D/ @P<variable_name> special variables to get most of the batch, document, and page information from the runtime batch file.

For a full listing of special variables for accessing the runtime hierarchy, see Special variables for accessing the runtime hierarchy. The following examples illustrate how to use special variables to access the runtime hierarchy.

Table 1. Special variables for accessing the runtime hierarchy
Access this part of the runtime hierarchy... ...by using this special variable Hierarchy level
<?xml-stylesheet type="text/xsl" href="..\..\dco.xsl"?>  
Not applicable BATCH
<B id="appdevguide_20110003.001">
@ID BATCH
   <V n="TYPE">TravelDocs</V>
@B.TYPE BATCH
   <V n="LAST_RR_TPROFILE">Rulerunner:m:eRun</V>
@B.LAST_RR_PROFILE BATCH
   <V n="STATUS">1</V>
@B.STATUS BATCH
   <D id="appdevguide_20110003.001.01">         
@ID DOCUMENT
      <V n="TYPE">Car_Rental</V> 
@D.TYPE DOCUMENT
      <V n="STATUS">0</V>
@D.STATUS DOCUMENT
      <P id="appdevguide_TM000001"> 
@ID PAGE
         <V n="TYPE">Rental_Agreement</V> 
@P.TYPE PAGE
         <V n="STATUS">1</V> 
@P.STATUS PAGE
         <V n="IMAGEFILE">tm000001.tif</V>
@P.IMAGEFILE PAGE
         <V n="ScanSrcPath">c:\...\images\page_01.tif</V>
@P.ScanSrcPath PAGE
         <V n="RecogStatus">0</V>
@P.RecogStatus PAGE
         <V n="Confidence">0.9660463</V>
@P.Confidence PAGE
         <V n="TemplateID">556</V> 
@P.TemplateID PAGE
         <V n="DATAFILE">tm000001.xml</V> 
@P.DATAFILE PAGE
      </P>
Not applicable PAGE

Similarly, you can get most of the field information from the runtime page data file by using the @ID, @F.<variable_name>, and @P\<field_name> special variables, for example.

Table 2. Special variables for accessing field data in the runtime hierarchy
Access this part of the runtime hierarchy... ...by using this special variable Hierarchy level
<F id="appdevguide_Pickup_Date">
@ID FIELD
   <V n="TYPE">Pickup_Date</V>
@F.TYPE FIELD
   <V n="Position">179,394,543,462</V>
@F.Position FIELD
   <V n="STATUS">0</V>
@F.STATUS FIELD
   <C cn="7" cr="200,416,220,440">84</C>
@P\Pickup_Date FIELD
   <C cn="10" cr="226,425,240,440">117</C>
@P\Pickup_Date FIELD
   <C cn="10" cr="245,425,258,440">101</C>
@P\Pickup_Date FIELD
   <C cn="10" cr="260,425,270,440">115</C>
@P\Pickup_Date FIELD
</F>
Not applicable FIELD