如果您正在为 MIS 数据检索进行设置,则需要针对不同的版式类型(如多重拼贴版式和基于刀版的版式)对指定的 XSLT 字段进行设置。
注意:默认情况下所有单位为磅。 您可以将模式中 ShopMap 资源的单位直接设置为英寸 (in.)、毫米 (mm) 或厘米 (cm)。 其他参数的单位必须通过向 XSLT 文件添加数学运算进行手动转换。 例如,添加 *72
从英寸转换为磅。
您可以使用 Stylus Studio 软件创建 XLST 文件。 在此处查找操作步骤。
未填充多重拼贴作业的所需 XSLT 字段
未填充多重拼贴作业必须包含以下字段:
Job/jobName
Job/jobType
:可以在 PLA 软件中硬编码为版式传票名称Job/layoutName
:可以硬编码为Layout
Job/Shopmap/PressSheet/Width
Job/Shopmap/PressSheet/Height
Job/StepRepeatList/StepRepeat/cols
Job/StepRepeatList/StepRepeat/rows
Job/StepRepeatList/StepRepeat/name
:硬编码为SR1
Job/StepRepeatList/StepRepeat/id
:硬编码为1
Job/StepRepeatList/StepRepeat/StepRepeatArtworkList/ StepRepeatArtwork/scaleX
:硬编码为 1Job/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/scaleY
:硬编码为 1Job/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/dummyWidth
Job/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/dummyHeight
示例 XML 和 XSLT 文件:未填充多重拼贴
从如下所示的 XML 文件开始:
<?xml version="1.0" encoding="UTF-8"?>
<Job xmlns:xsi=http://www.kodak.com
xsi: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>
使用 XSLT 编辑软件(例如 Stylus Studio)创建 XSLT 文件:
< ?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>
未填充多重拼贴作业的所需 XSLT 字段
未填充多重拼贴作业必须包含以下字段:
Job/jobName
Job/jobType
:可以在 PLA 软件中硬编码为版式传票名称Job/layoutName
:可以硬编码为Layout
Job/Shopmap/PressSheet/Width
Job/Shopmap/PressSheet/Height
Job/StepRepeatList/StepRepeat/cols
Job/StepRepeatList/StepRepeat/rows
Job/StepRepeatList/StepRepeat/name
:硬编码为SR1
Job/StepRepeatList/StepRepeat/id
:硬编码为1
:硬编码为Job/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/ownerID
:1
Job/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/scaleX
:硬编码为1
Job/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/scaleY
:硬编码为1
Job/ArtworkList/Artwork/Name
Job/ArtworkList/Artwork/id
:硬编码为2
J
ob/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/referenceId
:硬编码为2
示例 XML 和 XSLT 文件:未填充多重拼贴作业
从如下所示的 XML 文件开始:
<?xml version="1.0" encoding="UTF-8"?>
<Job xmlns:xsi=http://www.kodak.com
xsi:noNamespaceSchemaLocation="http://
www.kodak.com">
<Info JobName="MIS-0002"/>
<Prepress Artwork="\\PrinergyServer
\LayoutAutomationSample\ Resources\Hungry Cat Label\Hungry Cat
Label 1.pdf"/>
<Stripping Around="1" Across="3"/>
<Plate Width="57.375" Height="15.5"/>
</Job>
使用 XSLT 编辑软件(例如 Stylus Studio)创建 XSLT 文件:
< ?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>
基于刀版的版式所需的 XSLT 字段
基于刀版的版式必须包含以下字段:
Job/jobName
Job/jobType
:可以在 PLA 软件中硬编码为版式传票名称Job/layoutName
:可以硬编码为Layout
Job/Shopmap/PressSheet/Width
Job/Shopmap/PressSheet/Height
Job/ArtworkList/Artwork/Name
Job/Die/Name
示例 XML 和 XSLT 文件:基于刀版的版式
从如下所示的 XML 文件开始:
<?xml version="1.0" encoding="UTF-8"?>
<Job xmlns:xsi=http://www.kodak.com
xsi:noNamespaceSchemaLocation="http://
www.kodak.com">
<Info JobName="MIS-0003"/>
<Prepress Artwork="\\PrinergyServer
\LayoutAutomationSample\ Resources\Hungry Cat Carton\Hungry Cat
Carton 1.pdf"/>
<Die DieFile="\\PrinergyServer
\LayoutAutomationSample\Resources\
Hungry Cat Carton\Hungry Cat Carton.CF2"/>
<Plate Width="40" Height="30"/>
</Job>
使用 XSLT 编辑软件(例如 Stylus Studio)创建 XSLT 文件:
< ?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>