Si vous configurez le système pour la récupération de données MIS, des champs XSLT spécifiques sont requis pour différents types de mises en page, par exemple les mises en page de copie en répétition et les mises en page de découpe.
Remarque : par défaut, toutes les unités sont en points. Vous pouvez définir les unités des ressources ShopMap directement dans le schéma en pouces (po.), millimètres (mm) ou centimètres (cm). Les unités des autres paramètres doivent être converties manuellement par l'ajout d'opérations mathématiques au fichier XSLT. Par exemple, ajoutez *72
pour convertir des pouces en points.
Vous pouvez utiliser le logiciel Stylus Studio pour créer des fichiers XLST. Vous trouverez la procédure ici.
Champs XSLT obligatoires pour travaux de copie en répétition non remplis
Un travail de copie en répétition non rempli doit inclure les champs suivants :
Job/jobName
Job/jobType
: peut être figé dans le code en nom de la fiche de mise en page dans le logiciel PLA.Job/layoutName
: peut être figé dans le code enLayout
Job/Shopmap/PressSheet/Width
Job/Shopmap/PressSheet/Height
Job/StepRepeatList/StepRepeat/cols
Job/StepRepeatList/StepRepeat/rows
Job/StepRepeatList/StepRepeat/name
: figé dans le code enSR1
Job/StepRepeatList/StepRepeat/id
: figé dans le code en1
Job/StepRepeatList/StepRepeat/StepRepeatArtworkList/ StepRepeatArtwork/scaleX
: figé dans le code en 1Job/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/scaleY
: figé dans le code en 1Job/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/dummyWidth
Job/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/dummyHeight
Exemple de fichiers XML et XSLT : travail de copie en répétition non rempli
Commencez par un fichier XML, par exemple, le suivant :
<?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>
Créez un fichier XSLT à l'aide d'un programme d'édition XSLT, tel que 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>
Champs XSLT obligatoires pour un travail de copie en répétition non rempli
Un travail de copie en répétition rempli doit inclure les champs suivants :
Job/jobName
Job/jobType
: peut être figé dans le code en nom de la fiche de mise en page dans le logiciel PLA.Job/layoutName
: peut être figé dans le code enLayout
Job/Shopmap/PressSheet/Width
Job/Shopmap/PressSheet/Height
Job/StepRepeatList/StepRepeat/cols
Job/StepRepeatList/StepRepeat/rows
Job/StepRepeatList/StepRepeat/name
: figé dans le code enSR1
Job/StepRepeatList/StepRepeat/id
: figé dans le code en1
: figé dans le code enJob/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/ownerID
:1
Job/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/scaleX
: figé dans le code en1
Job/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/scaleY
: figé dans le code en1
Job/ArtworkList/Artwork/Name
Job/ArtworkList/Artwork/id
: figé dans le code en2
J
ob/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/referenceId
: figé dans le code en2
Exemple de fichiers XML et XSLT : travaux de copie en répétition rempli
Commencez par un fichier XML, par exemple, le suivant :
<?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>
Créez un fichier XSLT à l'aide d'un programme d'édition XSLT, tel que 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>
Champs XSLT obligatoires pour une mise en page de découpe
Une mise en page de découpe doit inclure les champs suivants :
Job/jobName
Job/jobType
: peut être figé dans le code en nom de la fiche de mise en page dans le logiciel PLA.Job/layoutName
: peut être figé dans le code enLayout
Job/Shopmap/PressSheet/Width
Job/Shopmap/PressSheet/Height
Job/ArtworkList/Artwork/Name
Job/Die/Name
Exemple de fichiers XML et XSLT : mise en page de découpe
Commencez par un fichier XML, par exemple, le suivant :
<?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>
Créez un fichier XSLT à l'aide d'un programme d'édition XSLT, tel que 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>