If you are setting up for MIS data retrieval, specific XSLT fields are required for different layout types such as step-and-repeat and die-based layouts.
Note: All units are provided in points by default. You can set the units of ShopMap resources directly in the schema to inches (in.), millimeters (mm), or centimeters (cm). The units of other parameters must be manually converted by adding math operations to the XSLT file. For example, add *72 to convert from inches to points.
You can use Stylus Studio software to create XLST files. Find the procedure here.
Required XSLT fields for unpopulated step-and-repeat jobs
An unpopulated step-and-repeat job must include the following fields:
Job/jobNameJob/jobType: can be hard-coded to the name of the layout ticket in the PLA softwareJob/layoutName: can be hard-coded toLayoutJob/Shopmap/PressSheet/WidthJob/Shopmap/PressSheet/HeightJob/StepRepeatList/StepRepeat/colsJob/StepRepeatList/StepRepeat/rowsJob/StepRepeatList/StepRepeat/name: hard-code toSR1Job/StepRepeatList/StepRepeat/id: hard-code to1Job/StepRepeatList/StepRepeat/StepRepeatArtworkList/ StepRepeatArtwork/scaleX: hard-code to 1Job/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/scaleY: hard-code to 1Job/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/dummyWidthJob/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/dummyHeight
Sample XML and XSLT files: unpopulated step and repeat
Start with an XML file such as the following:
<?xml version="1.0" encoding="UTF-8"?><Job xmlns:xsi=http://www.kodak.comxsi:noNamespaceSchemaLocation="http://www.kodak.com"> <Info JobName="MIS-0001"/> <Prepress ArtworkWidth="19.125"ArtworkHeight="15.5"/> <Stripping Around="1" Across="3"/> <Plate Width="57.375" Height="15.5"/>
</Job>
Create an XSLT file using XSLT editing software such as Stylus Studio:
< ?xml version='1.0'?><xsl:stylesheetversion="1.0"xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:templatematch="/"> <JobjobType="Demo"layoutName="Layout"> <xsl:attributename="jobName"> <xsl:value-ofselect="Job/Info/@JobName"/> </xsl:attribute> <StepRepeatList> <StepRepeatname="SR1"id="1"> <xsl:attributename="cols"> <xsl:value-ofselect="Job/Stripping/@Across"/> </xsl:attribute> <xsl:attributename="rows"> <xsl:value-ofselect="Job/Stripping/@Around"/> </xsl:attribute> <StepRepeatArtworkList> <StepRepeatArtwork scaleX="1"scaleY="1">
<xsl:attributename="dummyHeight"> <xsl:value-ofselect="Job/Prepress/@ArtworkHeight *72"/> </xsl:attribute><xsl:attributename="dummyWidth"> <xsl:value-ofselect="Job/Prepress/@ArtworkWidth*72"/> </xsl:attribute> </StepRepeatArtwork> </StepRepeatArtworkList> </StepRepeat> </StepRepeatList> <Shopmap> <PressSheetunit="in"> <xsl:attributename="height"> <xsl:value-ofselect="Job/Plate/@Height"/> </xsl:attribute> <xsl:attributename="width"> <xsl:value-ofselect="Job/Plate/@Width"/> </xsl:attribute> </PressSheet> </Shopmap> </Job> </xsl:template> </xsl:stylesheet>
Required XSLT fields for populated step-and-repeat jobs
A populated step-and-repeat job must include the following fields:
Job/jobNameJob/jobType: can be hard-coded to the name of the layout ticket in the PLA softwareJob/layoutName: can be hard-coded toLayoutJob/Shopmap/PressSheet/WidthJob/Shopmap/PressSheet/HeightJob/StepRepeatList/StepRepeat/colsJob/StepRepeatList/StepRepeat/rowsJob/StepRepeatList/StepRepeat/name: hard-code toSR1Job/StepRepeatList/StepRepeat/id: hard-code to1hard-code toJob/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/ownerID:1Job/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/scaleX: hard-code to1Job/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/scaleY: hard-code to1Job/ArtworkList/Artwork/NameJob/ArtworkList/Artwork/id: hard-code to2J
ob/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/referenceId: hard-code to2
Sample XML and XSLT files: populated step and repeat jobs
Start with an XML file such as the following:
<?xml version="1.0" encoding="UTF-8"?><Job xmlns:xsi=http://www.kodak.comxsi:noNamespaceSchemaLocation="http://www.kodak.com"> <Info JobName="MIS-0002"/> <Prepress Artwork="\\PrinergyServer
\LayoutAutomationSample\ Resources\Hungry Cat Label\Hungry CatLabel 1.pdf"/> <Stripping Around="1" Across="3"/> <Plate Width="57.375" Height="15.5"/></Job>
Create an XSLT file using XSLT editing software such as Stylus Studio:
< ?xml version='1.0'?><xsl:stylesheetversion="1.0"xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:templatematch="/"> <JobjobType="Demo"layoutName="Layout"> <xsl:attributename="jobName"> <xsl:value-ofselect="Job/Info/@JobName"/> </xsl:attribute> <ArtworkList> <Artworkid="2"> <Name> <xsl:value-ofselect="Job/
Prepress/@Artwork"/>
</Name>
</Artwork>
</ArtworkList>
<StepRepeatList>
<StepRepeatid="1"name="SR1">
<xsl:attributename="cols">
<xsl:value-ofselect="Job/
Stripping/@Across"/>
</xsl:attribute>
<xsl:attributename="rows">
<xsl:value-ofselect="Job/
Stripping/@Around"/>
</xsl:attribute>
<StepRepeatArtworkList>
<StepRepeatArtworkownerId="1"referenceId="2"scaleX="1"
scaleY="1"/>
</StepRepeatArtworkList>
</StepRepeat>
</StepRepeatList>
<Shopmap>
<PressSheetunit="in">
<xsl:attributename="height">
<xsl:value-ofselect="Job/Plate/@Height"/>
</xsl:attribute>
<xsl:attributename="width">
<xsl:value-ofselect="Job/Plate/
@Width"/>
</xsl:attribute>
</PressSheet>
</Shopmap>
</Job>
</xsl:template>
</xsl:stylesheet>
Required XSLT fields for a die-based layout
A die-based layout must include the following fields:
Job/jobNameJob/jobType: can be hard-coded to the name of the layout ticket in the PLA softwareJob/layoutName: can be hard-coded toLayoutJob/Shopmap/PressSheet/WidthJob/Shopmap/PressSheet/HeightJob/ArtworkList/Artwork/NameJob/Die/Name
Sample XML and XSLT files: die-based layout
Start with an XML file such as the following:
<?xml version="1.0" encoding="UTF-8"?><Job xmlns:xsi=http://www.kodak.comxsi:noNamespaceSchemaLocation="http://www.kodak.com"> <Info JobName="MIS-0003"/> <Prepress Artwork="\\PrinergyServer
\LayoutAutomationSample\ Resources\Hungry Cat Carton\Hungry CatCarton 1.pdf"/>
<Die DieFile="\\PrinergyServer
\LayoutAutomationSample\Resources\
Hungry Cat Carton\Hungry Cat Carton.CF2"/>
<Plate Width="40" Height="30"/>
</Job>
Create an XSLT file using XSLT editing software such as Stylus Studio:
< ?xml version='1.0'?><xsl:stylesheetversion="1.0"xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:templatematch="/"> <JobjobType="Demo"layoutName="Layout"> <xsl:attributename="jobName"> <xsl:value-ofselect="Job/Info/@JobName"/> </xsl:attribute> <ArtworkList>
<Artwork>
<Name>
<xsl:value-ofselect="Job/
Prepress/@Artwork"/>
</Name>
</Artwork>
</ArtworkList>
<Die>
<Name>
<xsl:value-ofselect="Job/Die/
@DieFile"/>
</Name>
</Die>
<Shopmap>
<PressSheetunit="in">
<xsl:attributename="height">
<xsl:value-ofselect="Job/Plate/
@Height"/> </xsl:attribute> <xsl:attributename="width"> <xsl:value-ofselect="Job/Plate/
@Width"/> </xsl:attribute> </PressSheet> </Shopmap> </Job> </xsl:template></xsl:stylesheet>