Page tree

Se si sta impostando un recupero dati per MIS, sono richiesti campi XSLT specifici per vari tipi di layout, come layout stampa multipla e basati su fustelle.

Nota: tutte le unità vengono fornite in punti, per impostazione predefinita. È possibile impostare le unità di risorse ShopMap direttamente nello schema, in pollici (poll.), millimetri (mm) o centimetri (cm). Le unità degli altri parametri devono essere convertite manualmente aggiungendo operazioni matematiche al file XSLT. Per esempio, aggiungere *72 per convertire da pollici a punti.

È possibile utilizzare il software Stylus Studio per creare file XSLT. La procedura è disponibile qui.

Campi XSLT obbligatori per processi di stampe multiple non popolati

Un processo di stampa multipla non popolato deve includere i seguenti campi:

  • Job/jobName
  • Job/jobType: può essere hard-coded al nome del ticket layout nel software PLA
  • Job/layoutName: può essere hard-coded su Layout
  • Job/Shopmap/PressSheet/Width
  • Job/Shopmap/PressSheet/Height
  • Job/StepRepeatList/StepRepeat/cols
  • Job/StepRepeatList/StepRepeat/rows
  • Job/StepRepeatList/StepRepeat/name: hard-code su SR1
  • Job/StepRepeatList/StepRepeat/id: hard-code su 1
  • Job/StepRepeatList/StepRepeat/StepRepeatArtworkList/ StepRepeatArtwork/scaleX: hard-code su 1
  • Job/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/scaleY: hard-code su 1
  • Job/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/dummyWidth
  • Job/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/dummyHeight

File XML e XSLT campione: stampa multipla non popolata

Iniziare con un file XML come quello seguente:

<?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>

Creare un file XSLT usando un software di modifica XSLT come 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>

Campi XSLT obbligatori per processi di stampe multiple popolati

Un processo di stampa multipla popolato deve includere i seguenti campi:

  • Job/jobName
  • Job/jobType: può essere hard-coded al nome del ticket layout nel software PLA
  • Job/layoutName: può essere hard-coded su Layout
  • Job/Shopmap/PressSheet/Width
  • Job/Shopmap/PressSheet/Height
  • Job/StepRepeatList/StepRepeat/cols
  • Job/StepRepeatList/StepRepeat/rows
  • Job/StepRepeatList/StepRepeat/name: hard-code su SR1
  • Job/StepRepeatList/StepRepeat/id: hard-code su 1
  • Job/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/ownerID: hard-code su 1
  • Job/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/scaleX: hard-code su 1

  • Job/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/scaleY: hard-code su 1

  • Job/ArtworkList/Artwork/Name

  • Job/ArtworkList/Artwork/id: hard-code su 2

  • Job/StepRepeatList/StepRepeat/StepRepeatArtworkList/StepRepeatArtwork/referenceId: hard-code su 2

File XML e XSLT campione: processi di stampe multiple popolati

Iniziare con un file XML come quello seguente:

<?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>

Creare un file XSLT usando un software di modifica XSLT come 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>

Campi XSLT obbligatori per un layout basato su fustella

Un layout basato su fustella deve includere i seguenti campi:

  • Job/jobName
  • Job/jobType: può essere hard-coded al nome del ticket layout nel software PLA
  • Job/layoutName: può essere hard-coded su Layout
  • Job/Shopmap/PressSheet/Width
  • Job/Shopmap/PressSheet/Height
  • Job/ArtworkList/Artwork/Name

  • Job/Die/Name

File XML e XSLT campione: layout basato su fustella

Iniziare con un file XML come quello seguente:

<?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>

Creare un file XSLT usando un software di modifica XSLT come 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>

  • No labels