Processing Instructions in the Drive File
In the lines below, note the Action is to CreateNew, that is, to create a new object. The UsePcmObj tells the process what Contenta object to create—in this case it is a CompoundDoc object. Also note that the object is to be a container and there is no property sheet field to be populated.
The UsePcmObj is specified in the map file in the PCM Object field and the HierType is specified in the Hierarchy field.
<Parent ItemNbr="1" Action="CreateNew">
<PcmInfo UsePcmObj="CompoundDoc" HierType="CONTAINER" AppDat="0"
In the next few lines you can see that the CompoundDoc container being created is for the play element. The play element is noted as Parent 1 which is the top-level Contenta parent container and the top level element in the DTD. The Access Level specified in the map file is secure and is being processed as such. Also note the keyword, Kid MyItemNbr=”3” and the Action CreateNew—the child object is being created in this container object and is identified by the number 3.
Below you will see that the child to this one is act, which follows the mappings in the map file.
PropSht="1" PcmPath="/OUTERMOST/play"/>
<AttrData><Attrs>ElementType="play"</Attrs><PcmFields>"Document Type|Document" "Access Level|secure"</PcmFields></AttrData>
<Children Parent="1">
<Slice ItemNbr="0" FileName="slice.1" FileType="DTD"/>
<Slice ItemNbr="1" FileName="fragment.1" FileType="STARTTAG"/>
<Slice ItemNbr="2" FileName="slice.2" FileType="SGML"/>
<Kid MyItemNbr="3" Action="CreateNew">
The next few lines process the act element; the child object identified above by Kid MyItemNbr=”3”. Again, the Contenta object which is to be created is a CompoundDoc and you will note that this is where the Children Parent="3" is identified — if you check above, the child object for play was identified with the number 3.
<PcmInfo UsePcmObj="CompoundDoc" HierType="CONTAINER" AppDat="1" PropSht="1" PcmPath="/OUTERMOST/play/act"/>
<AttrData Pairs=" YES"><Attrs>actnum="one" ElementType="act"</Attrs><PcmFields> "Document Type|Document" "Access Level|secure"</PcmFields></AttrData>
</Kid>
<Slice ItemNbr="107" FileName="slice.81" FileType="ENDTAG"/>
</Children>
</Parent>
<Parent ItemNbr="3" Action="Select">
<PcmInfo UsePcmObj="CompoundDoc" HierType="CONTAINER" AppDat="1" PropSht="1" PcmPath="/OUTERMOST/play/act"/>
<AttrData Pairs=" YES"><Attrs>ElementType="act"</Attrs><PcmFields> "Document Type|Document" "Access Level|secure"</PcmFields></AttrData>
<Children Parent="3">
<Slice ItemNbr="3" FileName="fragment.2" FileType="STARTTAG">
<Slice ItemNbr="4" FileName="slice.3" FileType="SGML">
Note that once again, a child object is being identified and created, Kid MyItemNbr="5" Action=”CreateNew”. This time it is for the element scene which is the next mapping in the map file. Note that Children Parent=”5” which identifies this as a child element/object for act. Also note at this point, that the filenames for the components are being identified.
FileName=”slice.79” is a component file which is created for the data being processed in this element. The lines that read Filename=”slice.n” and FileName="fragment.n" denote names of component files that can be found on your system, in the directory specified in the digui.cfg file by the WORKDIR default value.
<Kid MyItemNbr="5" Action="CreateNew">
<PcmInfo UsePcmObj="CompoundDoc"
HierType="CONTAINER" AppDat="0" PropSht="1" PcmPath="/OUTERMOST/play/act/scene"/>
<AttrData><Attrs>ElementType="scene"<Attrs><PcmFields>"Document Type|Document" "Access Level|secure"</PcmFields></AttrData>
</Kid>
<Slice ItemNbr="105" FileName="slice.79" FileType="ENDTAG"/>
</Children>
</Parent>
<Parent ItemNbr="5" Action="Select">
<PcmInfo UsePcmObj="CompoundDoc" HierType="CONTAINER" AppDat="0" PropSht="1" PcmPath="/OUTERMOST/play/act/scene"/>
<AttrData><Attrs>ElementType="scene"</Attrs><PcmFields>"Document Type|Document" "Access Level|secure"</PcmFields></AttrData>
<Children Parent="5">
<Slice ItemNbr="5" FileName="fragment.3" FileType="STARTTAG"/>
<Slice ItemNbr="6" FileName="slice.4" FileType="SGML"/>
<Kid MyItemNbr="7" Action="CreateNew">
<PcmInfo UsePcmObj="CompoundDoc" HierType="CONTAINER" AppDat="0" PropSht="1" PcmPath="/OUTERMOST/play/act/scene/speech1"/>
<AttrData><Attrs>ElementType="speech"</Attrs><PcmFields>"Document Type|Document" "Access Level|secure"</PcmFields></AttrData>
</Kid>