Project

Profile

Help

Support #2682 » DAE71B.XSL

Olga Abramovich, 2016-03-21 15:59

 
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0" xmlns:date="http://exslt.org/dates-and-times" extension-element-prefixes="date">
<xsl:output method="xml" />
<xsl:template match="/">
<fo:root xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions" xmlns:m="http://www.w3.org/1998/Math/MathML">
<fo:layout-master-set>
<fo:simple-page-master master-name="VALIDATE1FRONTPage" page-height="792pt" page-width="1224pt">
<fo:region-body margin-bottom="0pt" margin-top="0pt" margin-left="0pt" margin-right="0pt" />
<fo:region-before display-align="after" />
<fo:region-after display-align="before" />
</fo:simple-page-master>
<fo:simple-page-master master-name="SAMPLESHT1FRONTPage" page-height="792pt" page-width="1224pt">
<fo:region-body margin-bottom="0pt" margin-top="0pt" margin-left="0pt" margin-right="0pt" />
<fo:region-before display-align="after" />
<fo:region-after display-align="before" />
</fo:simple-page-master>
<fo:simple-page-master master-name="CHECK1FRONTPage" page-height="792pt" page-width="1224pt">
<fo:region-body margin-bottom="0pt" margin-top="0pt" margin-left="0pt" margin-right="0pt" />
<fo:region-before display-align="after" />
<fo:region-after display-align="before" />
</fo:simple-page-master>
</fo:layout-master-set>
<xsl:call-template name="SequenceLogic" />
</fo:root>
</xsl:template>
<xsl:template name="LeftPadNumber">
<xsl:param name="PadNumber" />
<xsl:param name="PadString" />
<xsl:param name="FieldLength" />
<xsl:variable name="ValueLength">
<xsl:value-of select="string-length(normalize-space($PadNumber))" />
</xsl:variable>
<xsl:variable name="PadLength">
<xsl:value-of select="$FieldLength - $ValueLength" />
</xsl:variable>
<xsl:if test="$PadNumber = -1">
<fo:inline white-space-treatment="preserve">
<xsl:value-of select="'-'" />
<xsl:value-of select="substring($PadString,1,$PadLength)" />
<xsl:value-of select="1" />
</fo:inline>
</xsl:if>
<xsl:if test="$PadNumber != -1">
<fo:inline white-space-treatment="preserve">
<xsl:value-of select="substring($PadString,1,$PadLength)" />
<xsl:value-of select="$PadNumber" />
</fo:inline>
</xsl:if>
</xsl:template>
<xsl:template name="TranslateCodeLineTxt">
<xsl:param name="CodeLineTxt" />
<xsl:value-of select="translate($CodeLineTxt,'}!=-',' tod')" />
</xsl:template>
<xsl:template name="ParseCodeLineTxt">
<xsl:param name="CodeLineTxt" />
<xsl:param name="StartNbr" />
<xsl:param name="PadString" />
<xsl:param name="FieldLength" />
<xsl:param name="OriginalString" />
<xsl:if test="$StartNbr = ''">
<xsl:if test="$FieldLength != 0">
<fo:inline white-space-treatment="preserve">
<xsl:value-of select="translate($CodeLineTxt,'#',' ')" />
</fo:inline>
</xsl:if>
<xsl:if test="$FieldLength = 0">
<fo:inline white-space-treatment="preserve">
<xsl:value-of select="$CodeLineTxt" />
</fo:inline>
</xsl:if>
</xsl:if>
<xsl:if test="$StartNbr != ''">
<xsl:if test="$FieldLength != 0">
<xsl:variable name="ValueLength">
<xsl:value-of select="string-length(normalize-space($StartNbr))" />
</xsl:variable>
<xsl:if test="$ValueLength &gt; $FieldLength">
<xsl:variable name="Diff">
<xsl:value-of select="$ValueLength - $FieldLength" />
</xsl:variable>
<xsl:variable name="PadLength">
<xsl:value-of select="0" />
</xsl:variable>
<xsl:variable name="StartNbr1">
<xsl:value-of select="substring($StartNbr,$Diff+1,$FieldLength)" />
</xsl:variable>
<fo:inline white-space-treatment="preserve">
<xsl:value-of select="substring-before($CodeLineTxt,'#')" />
<xsl:value-of select="substring($PadString,1,$PadLength)" />
<xsl:value-of select="$StartNbr1" />
<xsl:value-of select="substring-after($CodeLineTxt,$OriginalString)" />
</fo:inline>
</xsl:if>
<xsl:if test="$ValueLength &lt;= $FieldLength">
<xsl:variable name="PadLength">
<xsl:value-of select="$FieldLength - $ValueLength" />
</xsl:variable>
<xsl:if test="$StartNbr = -1">
<fo:inline white-space-treatment="preserve">
<xsl:value-of select="substring-before($CodeLineTxt,'#')" />
<xsl:value-of select="'-'" />
<xsl:value-of select="substring($PadString,1,$PadLength)" />
<xsl:value-of select="1" />
<xsl:value-of select="substring-after($CodeLineTxt,$OriginalString)" />
</fo:inline>
</xsl:if>
<xsl:if test="$StartNbr != -1">
<fo:inline white-space-treatment="preserve">
<xsl:value-of select="substring-before($CodeLineTxt,'#')" />
<xsl:value-of select="substring($PadString,1,$PadLength)" />
<xsl:value-of select="$StartNbr" />
<xsl:value-of select="substring-after($CodeLineTxt,$OriginalString)" />
</fo:inline>
</xsl:if>
</xsl:if>
</xsl:if>
<xsl:if test="$FieldLength = 0">
<fo:inline white-space-treatment="preserve">
<xsl:value-of select="$CodeLineTxt" />
</fo:inline>
</xsl:if>
</xsl:if>
</xsl:template>
<xsl:template name="SequenceLogic">
<xsl:call-template name="VALIDATE1FRONT">
<xsl:with-param name="VALIDATE1FRONTLoopQty">
<xsl:value-of select="1" />
</xsl:with-param>
<xsl:with-param name="GlobalPageNbr">
<xsl:call-template name="LeftPadNumber">
<xsl:with-param name="PadNumber">
<xsl:value-of select="1" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="4" />
</xsl:with-param>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="VALIDATE1FRONTPageStart">
<xsl:value-of select="1" />
</xsl:with-param>
<xsl:with-param name="TotalQuantityLooped">
<xsl:value-of select="0" />
</xsl:with-param>
<xsl:with-param name="MaxLoopQuantity">
<xsl:value-of select="1" />
</xsl:with-param>
</xsl:call-template>
<xsl:call-template name="SAMPLESHT1FRONT">
<xsl:with-param name="SAMPLESHT1FRONTLoopQty">
<xsl:value-of select="4" />
</xsl:with-param>
<xsl:with-param name="GlobalPageNbr">
<xsl:call-template name="LeftPadNumber">
<xsl:with-param name="PadNumber">
<xsl:value-of select="2" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="4" />
</xsl:with-param>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="SAMPLESHT1FRONTPageStart">
<xsl:value-of select="1" />
</xsl:with-param>
<xsl:with-param name="TotalQuantityLooped">
<xsl:value-of select="0" />
</xsl:with-param>
<xsl:with-param name="MaxLoopQuantity">
<xsl:value-of select="4" />
</xsl:with-param>
</xsl:call-template>
<xsl:call-template name="CHECK1FRONT">
<xsl:with-param name="CHECK1FRONTLoopQty">
<xsl:value-of select="250" />
</xsl:with-param>
<xsl:with-param name="GlobalPageNbr">
<xsl:call-template name="LeftPadNumber">
<xsl:with-param name="PadNumber">
<xsl:value-of select="6" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="4" />
</xsl:with-param>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="CHECK1FRONTPageStart">
<xsl:value-of select="1" />
</xsl:with-param>
<xsl:with-param name="TotalQuantityLooped">
<xsl:value-of select="0" />
</xsl:with-param>
<xsl:with-param name="MaxLoopQuantity">
<xsl:value-of select="250" />
</xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template name="VALIDATE1FRONT">
<xsl:param name="VALIDATE1FRONTLoopQty" />
<xsl:param name="GlobalPageNbr" />
<xsl:param name="VALIDATE1FRONTPageStart" />
<xsl:param name="TotalQuantityLooped" />
<xsl:param name="MaxLoopQuantity" />
<xsl:variable name="VALIDATE1FRONTComponentQty">
<xsl:value-of select="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='VALIDATE1' and @ImgCmpntCd='FRONT']/@ComponentOrderQty" />
</xsl:variable>
<xsl:variable name="VALIDATE1FRONTStartNbr1">
<xsl:value-of select="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='VALIDATE1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='1']/@StartNbr" />
</xsl:variable>
<xsl:variable name="VALIDATE1FRONTStartNbr2">
<xsl:value-of select="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='VALIDATE1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='2']/@StartNbr" />
</xsl:variable>
<xsl:variable name="VALIDATE1FRONTCodeLineTxt1">
<xsl:call-template name="TranslateCodeLineTxt">
<xsl:with-param name="CodeLineTxt">
<xsl:value-of select="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='VALIDATE1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='1']/@CodeLineTxt" />
</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="VALIDATE1FRONTCodeLineTxt2">
<xsl:call-template name="TranslateCodeLineTxt">
<xsl:with-param name="CodeLineTxt">
<xsl:value-of select="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='VALIDATE1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='2']/@CodeLineTxt" />
</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<fo:page-sequence master-reference="VALIDATE1FRONTPage">
<fo:flow flow-name="xsl-region-body">
<xsl:call-template name="LoopVALIDATE1FRONT">
<xsl:with-param name="VALIDATE1FRONTPageNbr">
<xsl:value-of select="1" />
</xsl:with-param>
<xsl:with-param name="VALIDATE1FRONTLoopQty">
<xsl:value-of select="$VALIDATE1FRONTLoopQty" />
</xsl:with-param>
<xsl:with-param name="GlobalPageNbr">
<xsl:value-of select="$GlobalPageNbr" />
</xsl:with-param>
<xsl:with-param name="VALIDATE1FRONTPageStart">
<xsl:value-of select="$VALIDATE1FRONTPageStart" />
</xsl:with-param>
<xsl:with-param name="TotalQuantityLooped">
<xsl:value-of select="$TotalQuantityLooped" />
</xsl:with-param>
<xsl:with-param name="MaxLoopQuantity">
<xsl:value-of select="$MaxLoopQuantity" />
</xsl:with-param>
<xsl:with-param name="VALIDATE1FRONTComponentQty">
<xsl:value-of select="$VALIDATE1FRONTComponentQty" />
</xsl:with-param>
<xsl:with-param name="VALIDATE1FRONTStartNbr1">
<xsl:value-of select="$VALIDATE1FRONTStartNbr1" />
</xsl:with-param>
<xsl:with-param name="VALIDATE1FRONTStartNbr2">
<xsl:value-of select="$VALIDATE1FRONTStartNbr2" />
</xsl:with-param>
<xsl:with-param name="VALIDATE1FRONTCodeLineTxt1">
<xsl:value-of select="$VALIDATE1FRONTCodeLineTxt1" />
</xsl:with-param>
<xsl:with-param name="VALIDATE1FRONTCodeLineTxt2">
<xsl:value-of select="$VALIDATE1FRONTCodeLineTxt2" />
</xsl:with-param>
</xsl:call-template>
</fo:flow>
</fo:page-sequence>
</xsl:template>
<xsl:template name="LoopVALIDATE1FRONT">
<xsl:param name="VALIDATE1FRONTPageNbr" />
<xsl:param name="VALIDATE1FRONTLoopQty" />
<xsl:param name="GlobalPageNbr" />
<xsl:param name="VALIDATE1FRONTPageStart" />
<xsl:param name="TotalQuantityLooped" />
<xsl:param name="MaxLoopQuantity" />
<xsl:param name="VALIDATE1FRONTComponentQty" />
<xsl:param name="VALIDATE1FRONTStartNbr1" />
<xsl:param name="VALIDATE1FRONTStartNbr2" />
<xsl:param name="VALIDATE1FRONTCodeLineTxt1" />
<xsl:param name="VALIDATE1FRONTCodeLineTxt2" />
<xsl:if test="$VALIDATE1FRONTPageNbr &lt;= $VALIDATE1FRONTLoopQty">
<fo:block break-before="page">
<fo:block-container absolute-position="absolute" font-family="ConsecutiveGothicBold" font-size="12pt" height="120pt" left="531.24647302904564315352697092pt" top="405.41078838174273858921161826pt" width="72pt" text-align="left" reference-orientation="0" letter-spacing="0pt" overflow="condense" display-align="after" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:block start-indent="0pt">
<xsl:if test="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='VALIDATE1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='1']/@Voucher2NbrInd = 'Y'">
<xsl:call-template name="LeftPadNumber">
<xsl:with-param name="PadNumber">
<xsl:value-of select="$VALIDATE1FRONTStartNbr1" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="7" />
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</fo:block>
</fo:block-container>
<fo:block-container absolute-position="absolute" font-family="ConsecutiveGothicBold" font-size="12pt" height="120pt" left="1143.2464730290456431535269709pt" top="405.41078838174273858921161826pt" width="72pt" text-align="left" reference-orientation="0" letter-spacing="0pt" overflow="condense" display-align="after" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:block start-indent="0pt">
<xsl:if test="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='VALIDATE1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='2']/@Voucher2NbrInd = 'Y'">
<xsl:call-template name="LeftPadNumber">
<xsl:with-param name="PadNumber">
<xsl:value-of select="$VALIDATE1FRONTStartNbr2" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="7" />
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</fo:block>
</fo:block-container>
<fo:block-container absolute-position="absolute" font-family="ConsecutiveGothicBold" font-size="12pt" height="120pt" left="531.24647302904564315352697092pt" top="150.40331950207468879668049793pt" width="72pt" text-align="left" reference-orientation="0" letter-spacing="0pt" overflow="condense" display-align="after" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:block start-indent="0pt">
<xsl:if test="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='VALIDATE1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='1']/@Voucher1NbrInd = 'Y'">
<xsl:call-template name="LeftPadNumber">
<xsl:with-param name="PadNumber">
<xsl:value-of select="$VALIDATE1FRONTStartNbr1" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="7" />
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</fo:block>
</fo:block-container>
<fo:block-container absolute-position="absolute" font-family="ConsecutiveGothicBold" font-size="12pt" height="120pt" left="1143.2464730290456431535269709pt" top="150.40331950207468879668049793pt" width="72pt" text-align="left" reference-orientation="0" letter-spacing="0pt" overflow="condense" display-align="after" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:block start-indent="0pt">
<xsl:if test="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='VALIDATE1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='2']/@Voucher1NbrInd = 'Y'">
<xsl:call-template name="LeftPadNumber">
<xsl:with-param name="PadNumber">
<xsl:value-of select="$VALIDATE1FRONTStartNbr2" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="7" />
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</fo:block>
</fo:block-container>
<fo:block-container absolute-position="absolute" font-family="ConsecutiveGothicBold" font-size="12pt" height="120pt" left="531.24647302904564315352697092pt" top="-90.57261410788381742738589211pt" width="72pt" text-align="left" reference-orientation="0" letter-spacing="0pt" white-space-treatment="preserve" wrap-option="no-wrap" white-space-collapse="false" overflow="condense" display-align="after" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:block start-indent="0pt">
<xsl:if test="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='VALIDATE1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='1']/@CheckNbrInd = 'Y'">
<xsl:call-template name="LeftPadNumber">
<xsl:with-param name="PadNumber">
<xsl:value-of select="$VALIDATE1FRONTStartNbr1" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="7" />
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</fo:block>
</fo:block-container>
<fo:block-container absolute-position="absolute" font-family="ConsecutiveGothicBold" font-size="12pt" height="120pt" left="1143.2464730290456431535269709pt" top="-90.57261410788381742738589211pt" width="72pt" text-align="left" reference-orientation="0" letter-spacing="0pt" white-space-treatment="preserve" wrap-option="no-wrap" white-space-collapse="false" overflow="condense" display-align="after" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:block start-indent="0pt">
<xsl:if test="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='VALIDATE1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='2']/@CheckNbrInd = 'Y'">
<xsl:call-template name="LeftPadNumber">
<xsl:with-param name="PadNumber">
<xsl:value-of select="$VALIDATE1FRONTStartNbr2" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="7" />
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</fo:block>
</fo:block-container>
<fo:block-container absolute-position="absolute" font-family="E13B9" font-size="9pt" height="90pt" left="28.43817427385892116182572611pt" top="145.10041493775933609958506224pt" width="560pt" text-align="right" reference-orientation="0" letter-spacing="0pt" white-space-treatment="preserve" wrap-option="no-wrap" white-space-collapse="false" display-align="after" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:block start-indent="0pt">
<xsl:call-template name="ParseCodeLineTxt">
<xsl:with-param name="CodeLineTxt">
<xsl:value-of select="$VALIDATE1FRONTCodeLineTxt1" />
</xsl:with-param>
<xsl:with-param name="StartNbr">
<xsl:value-of select="$VALIDATE1FRONTStartNbr1" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="7" />
</xsl:with-param>
<xsl:with-param name="OriginalString">
<xsl:value-of select="'#######'" />
</xsl:with-param>
</xsl:call-template>
</fo:block>
</fo:block-container>
<fo:block-container absolute-position="absolute" font-family="E13B9" font-size="9pt" height="90pt" left="640.4381742738589211618257261pt" top="145.10041493775933609958506224pt" width="560pt" text-align="right" reference-orientation="0" letter-spacing="0pt" white-space-treatment="preserve" wrap-option="no-wrap" white-space-collapse="false" display-align="after" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:block start-indent="0pt">
<xsl:call-template name="ParseCodeLineTxt">
<xsl:with-param name="CodeLineTxt">
<xsl:value-of select="$VALIDATE1FRONTCodeLineTxt2" />
</xsl:with-param>
<xsl:with-param name="StartNbr">
<xsl:value-of select="$VALIDATE1FRONTStartNbr2" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="7" />
</xsl:with-param>
<xsl:with-param name="OriginalString">
<xsl:value-of select="'#######'" />
</xsl:with-param>
</xsl:call-template>
</fo:block>
</fo:block-container>
<fo:block-container absolute-position="absolute" height="792pt" left="0pt" top="0pt" width="1224pt" overflow="hidden" display-align="before">
<fo:block text-align="start">
<fo:external-graphic content-type="image/eps" content-height="792pt" content-width="1224pt" src="{/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='VALIDATE1' and @ImgCmpntCd='FRONT']/@PlateFilePath}\{/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='VALIDATE1' and @ImgCmpntCd='FRONT']/@PlateFileName}" />
</fo:block>
</fo:block-container>
<fo:block-container>
<fo:block>
<fo:instream-foreign-object>
<svg:svg xmlns:svg="http://www.w3.org/2000/svg" width="1224pt" height="792pt" viewBoxc="0pt 0pt 1224pt 792pt">
<svg:text x="170.04315352697095435684647303pt" y="166.59253112033195020746887968pt" font-size="18pt" font-family="NEBSGothicBold" text-align="center" letter-spacing="0" fill="rgb(128,128,128)" transform="rotate(-15,170.04315352697095435684647303pt,166.59253112033195020746887968pt)">FOR VALIDATION ONLY!</svg:text>
<svg:text x="782.0431535269709543568464730pt" y="166.59253112033195020746887968pt" font-size="18pt" font-family="NEBSGothicBold" text-align="center" letter-spacing="0" fill="rgb(128,128,128)" transform="rotate(-15,782.0431535269709543568464730pt,166.59253112033195020746887968pt)">FOR VALIDATION ONLY!</svg:text>
<svg:text x="478.80497925311203319502074689pt" y="176.39502074688796680497925312pt" font-size="36pt" font-family="NHelveticaBold" text-align="center" letter-spacing="0" fill="rgb(128,128,128)" transform="rotate(0,478.80497925311203319502074689pt,176.39502074688796680497925312pt)">VOID</svg:text>
<svg:text x="1090.8049792531120331950207469pt" y="176.39502074688796680497925312pt" font-size="36pt" font-family="NHelveticaBold" text-align="center" letter-spacing="0" fill="rgb(128,128,128)" transform="rotate(0,1090.8049792531120331950207469pt,176.39502074688796680497925312pt)">VOID</svg:text>
</svg:svg>
</fo:instream-foreign-object>
</fo:block>
</fo:block-container>
<fo:block-container absolute-position="absolute" font-family="Code39" font-size="12pt" height="220pt" left="15.933609958506224066390041495pt" top="-199.71452282157676348547717841pt" width="120pt" text-align="left" reference-orientation="0" letter-spacing="0pt" overflow="condense" display-align="after" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:block start-indent="0pt">
<xsl:value-of select="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='VALIDATE1' and @ImgCmpntCd='FRONT']/@GrpBarCD" />
</fo:block>
</fo:block-container>
</fo:block>
<xsl:call-template name="LoopVALIDATE1FRONT">
<xsl:with-param name="VALIDATE1FRONTPageNbr">
<xsl:value-of select="$VALIDATE1FRONTPageNbr+1" />
</xsl:with-param>
<xsl:with-param name="VALIDATE1FRONTLoopQty">
<xsl:value-of select="$VALIDATE1FRONTLoopQty" />
</xsl:with-param>
<xsl:with-param name="GlobalPageNbr">
<xsl:call-template name="LeftPadNumber">
<xsl:with-param name="PadNumber">
<xsl:value-of select="$GlobalPageNbr+1" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="4" />
</xsl:with-param>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="VALIDATE1FRONTPageStart">
<xsl:value-of select="$VALIDATE1FRONTPageStart+1" />
</xsl:with-param>
<xsl:with-param name="TotalQuantityLooped">
<xsl:value-of select="$TotalQuantityLooped" />
</xsl:with-param>
<xsl:with-param name="MaxLoopQuantity">
<xsl:value-of select="$MaxLoopQuantity" />
</xsl:with-param>
<xsl:with-param name="VALIDATE1FRONTComponentQty">
<xsl:value-of select="$VALIDATE1FRONTComponentQty" />
</xsl:with-param>
<xsl:with-param name="VALIDATE1FRONTStartNbr1">
<xsl:value-of select="$VALIDATE1FRONTStartNbr1" />
</xsl:with-param>
<xsl:with-param name="VALIDATE1FRONTStartNbr2">
<xsl:value-of select="$VALIDATE1FRONTStartNbr2" />
</xsl:with-param>
<xsl:with-param name="VALIDATE1FRONTCodeLineTxt1">
<xsl:value-of select="$VALIDATE1FRONTCodeLineTxt1" />
</xsl:with-param>
<xsl:with-param name="VALIDATE1FRONTCodeLineTxt2">
<xsl:value-of select="$VALIDATE1FRONTCodeLineTxt2" />
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</xsl:template>
<xsl:template name="SAMPLESHT1FRONT">
<xsl:param name="SAMPLESHT1FRONTLoopQty" />
<xsl:param name="GlobalPageNbr" />
<xsl:param name="SAMPLESHT1FRONTPageStart" />
<xsl:param name="TotalQuantityLooped" />
<xsl:param name="MaxLoopQuantity" />
<xsl:variable name="SAMPLESHT1FRONTComponentQty">
<xsl:value-of select="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='SAMPLESHT1' and @ImgCmpntCd='FRONT']/@ComponentOrderQty" />
</xsl:variable>
<xsl:variable name="SAMPLESHT1FRONTStartNbr1">
<xsl:value-of select="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='SAMPLESHT1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='1']/@StartNbr" />
</xsl:variable>
<xsl:variable name="SAMPLESHT1FRONTStartNbr2">
<xsl:value-of select="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='SAMPLESHT1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='2']/@StartNbr" />
</xsl:variable>
<xsl:variable name="SAMPLESHT1FRONTCodeLineTxt1">
<xsl:call-template name="TranslateCodeLineTxt">
<xsl:with-param name="CodeLineTxt">
<xsl:value-of select="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='SAMPLESHT1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='1']/@CodeLineTxt" />
</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="SAMPLESHT1FRONTCodeLineTxt2">
<xsl:call-template name="TranslateCodeLineTxt">
<xsl:with-param name="CodeLineTxt">
<xsl:value-of select="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='SAMPLESHT1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='2']/@CodeLineTxt" />
</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<fo:page-sequence master-reference="SAMPLESHT1FRONTPage">
<fo:flow flow-name="xsl-region-body">
<xsl:call-template name="LoopSAMPLESHT1FRONT">
<xsl:with-param name="SAMPLESHT1FRONTPageNbr">
<xsl:value-of select="1" />
</xsl:with-param>
<xsl:with-param name="SAMPLESHT1FRONTLoopQty">
<xsl:value-of select="$SAMPLESHT1FRONTLoopQty" />
</xsl:with-param>
<xsl:with-param name="GlobalPageNbr">
<xsl:value-of select="$GlobalPageNbr" />
</xsl:with-param>
<xsl:with-param name="SAMPLESHT1FRONTPageStart">
<xsl:value-of select="$SAMPLESHT1FRONTPageStart" />
</xsl:with-param>
<xsl:with-param name="TotalQuantityLooped">
<xsl:value-of select="$TotalQuantityLooped" />
</xsl:with-param>
<xsl:with-param name="MaxLoopQuantity">
<xsl:value-of select="$MaxLoopQuantity" />
</xsl:with-param>
<xsl:with-param name="SAMPLESHT1FRONTComponentQty">
<xsl:value-of select="$SAMPLESHT1FRONTComponentQty" />
</xsl:with-param>
<xsl:with-param name="SAMPLESHT1FRONTStartNbr1">
<xsl:value-of select="$SAMPLESHT1FRONTStartNbr1" />
</xsl:with-param>
<xsl:with-param name="SAMPLESHT1FRONTStartNbr2">
<xsl:value-of select="$SAMPLESHT1FRONTStartNbr2" />
</xsl:with-param>
<xsl:with-param name="SAMPLESHT1FRONTCodeLineTxt1">
<xsl:value-of select="$SAMPLESHT1FRONTCodeLineTxt1" />
</xsl:with-param>
<xsl:with-param name="SAMPLESHT1FRONTCodeLineTxt2">
<xsl:value-of select="$SAMPLESHT1FRONTCodeLineTxt2" />
</xsl:with-param>
</xsl:call-template>
</fo:flow>
</fo:page-sequence>
</xsl:template>
<xsl:template name="LoopSAMPLESHT1FRONT">
<xsl:param name="SAMPLESHT1FRONTPageNbr" />
<xsl:param name="SAMPLESHT1FRONTLoopQty" />
<xsl:param name="GlobalPageNbr" />
<xsl:param name="SAMPLESHT1FRONTPageStart" />
<xsl:param name="TotalQuantityLooped" />
<xsl:param name="MaxLoopQuantity" />
<xsl:param name="SAMPLESHT1FRONTComponentQty" />
<xsl:param name="SAMPLESHT1FRONTStartNbr1" />
<xsl:param name="SAMPLESHT1FRONTStartNbr2" />
<xsl:param name="SAMPLESHT1FRONTCodeLineTxt1" />
<xsl:param name="SAMPLESHT1FRONTCodeLineTxt2" />
<xsl:if test="$SAMPLESHT1FRONTPageNbr &lt;= $SAMPLESHT1FRONTLoopQty">
<fo:block break-before="page">
<fo:block-container absolute-position="absolute" font-family="ConsecutiveGothicBold" font-size="12pt" height="120pt" left="531.24647302904564315352697092pt" top="405.41078838174273858921161826pt" width="72pt" text-align="left" reference-orientation="0" letter-spacing="0pt" overflow="condense" display-align="after" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:block start-indent="0pt">
<xsl:if test="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='SAMPLESHT1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='1']/@Voucher2NbrInd = 'Y'">
<xsl:call-template name="LeftPadNumber">
<xsl:with-param name="PadNumber">
<xsl:value-of select="$SAMPLESHT1FRONTStartNbr1" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="7" />
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</fo:block>
</fo:block-container>
<fo:block-container absolute-position="absolute" font-family="ConsecutiveGothicBold" font-size="12pt" height="120pt" left="1143.2464730290456431535269709pt" top="405.41078838174273858921161826pt" width="72pt" text-align="left" reference-orientation="0" letter-spacing="0pt" overflow="condense" display-align="after" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:block start-indent="0pt">
<xsl:if test="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='SAMPLESHT1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='2']/@Voucher2NbrInd = 'Y'">
<xsl:call-template name="LeftPadNumber">
<xsl:with-param name="PadNumber">
<xsl:value-of select="$SAMPLESHT1FRONTStartNbr2" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="7" />
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</fo:block>
</fo:block-container>
<fo:block-container absolute-position="absolute" font-family="ConsecutiveGothicBold" font-size="12pt" height="120pt" left="531.24647302904564315352697092pt" top="150.40331950207468879668049793pt" width="72pt" text-align="left" reference-orientation="0" letter-spacing="0pt" overflow="condense" display-align="after" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:block start-indent="0pt">
<xsl:if test="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='SAMPLESHT1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='1']/@Voucher1NbrInd = 'Y'">
<xsl:call-template name="LeftPadNumber">
<xsl:with-param name="PadNumber">
<xsl:value-of select="$SAMPLESHT1FRONTStartNbr1" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="7" />
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</fo:block>
</fo:block-container>
<fo:block-container absolute-position="absolute" font-family="ConsecutiveGothicBold" font-size="12pt" height="120pt" left="1143.2464730290456431535269709pt" top="150.40331950207468879668049793pt" width="72pt" text-align="left" reference-orientation="0" letter-spacing="0pt" overflow="condense" display-align="after" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:block start-indent="0pt">
<xsl:if test="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='SAMPLESHT1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='2']/@Voucher1NbrInd = 'Y'">
<xsl:call-template name="LeftPadNumber">
<xsl:with-param name="PadNumber">
<xsl:value-of select="$SAMPLESHT1FRONTStartNbr2" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="7" />
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</fo:block>
</fo:block-container>
<fo:block-container absolute-position="absolute" font-family="ConsecutiveGothicBold" font-size="12pt" height="120pt" left="531.24647302904564315352697092pt" top="-90.57261410788381742738589211pt" width="72pt" text-align="left" reference-orientation="0" letter-spacing="0pt" white-space-treatment="preserve" wrap-option="no-wrap" white-space-collapse="false" overflow="condense" display-align="after" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:block start-indent="0pt">
<xsl:if test="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='SAMPLESHT1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='1']/@CheckNbrInd = 'Y'">
<xsl:call-template name="LeftPadNumber">
<xsl:with-param name="PadNumber">
<xsl:value-of select="$SAMPLESHT1FRONTStartNbr1" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="7" />
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</fo:block>
</fo:block-container>
<fo:block-container absolute-position="absolute" font-family="ConsecutiveGothicBold" font-size="12pt" height="120pt" left="1143.2464730290456431535269709pt" top="-90.57261410788381742738589211pt" width="72pt" text-align="left" reference-orientation="0" letter-spacing="0pt" white-space-treatment="preserve" wrap-option="no-wrap" white-space-collapse="false" overflow="condense" display-align="after" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:block start-indent="0pt">
<xsl:if test="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='SAMPLESHT1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='2']/@CheckNbrInd = 'Y'">
<xsl:call-template name="LeftPadNumber">
<xsl:with-param name="PadNumber">
<xsl:value-of select="$SAMPLESHT1FRONTStartNbr2" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="7" />
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</fo:block>
</fo:block-container>
<fo:block-container absolute-position="absolute" font-family="E13B9" font-size="9pt" height="90pt" left="28.43817427385892116182572611pt" top="145.10041493775933609958506224pt" width="560pt" text-align="right" reference-orientation="0" letter-spacing="0pt" white-space-treatment="preserve" wrap-option="no-wrap" white-space-collapse="false" display-align="after" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:block start-indent="0pt">
<xsl:call-template name="ParseCodeLineTxt">
<xsl:with-param name="CodeLineTxt">
<xsl:value-of select="$SAMPLESHT1FRONTCodeLineTxt1" />
</xsl:with-param>
<xsl:with-param name="StartNbr">
<xsl:value-of select="$SAMPLESHT1FRONTStartNbr1" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="7" />
</xsl:with-param>
<xsl:with-param name="OriginalString">
<xsl:value-of select="'#######'" />
</xsl:with-param>
</xsl:call-template>
</fo:block>
</fo:block-container>
<fo:block-container absolute-position="absolute" font-family="E13B9" font-size="9pt" height="90pt" left="640.4381742738589211618257261pt" top="145.10041493775933609958506224pt" width="560pt" text-align="right" reference-orientation="0" letter-spacing="0pt" white-space-treatment="preserve" wrap-option="no-wrap" white-space-collapse="false" display-align="after" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:block start-indent="0pt">
<xsl:call-template name="ParseCodeLineTxt">
<xsl:with-param name="CodeLineTxt">
<xsl:value-of select="$SAMPLESHT1FRONTCodeLineTxt2" />
</xsl:with-param>
<xsl:with-param name="StartNbr">
<xsl:value-of select="$SAMPLESHT1FRONTStartNbr2" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="7" />
</xsl:with-param>
<xsl:with-param name="OriginalString">
<xsl:value-of select="'#######'" />
</xsl:with-param>
</xsl:call-template>
</fo:block>
</fo:block-container>
<fo:block-container absolute-position="absolute" height="792pt" left="0pt" top="0pt" width="1224pt" overflow="hidden" display-align="before">
<fo:block text-align="start">
<fo:external-graphic content-type="image/eps" content-height="792pt" content-width="1224pt" src="{/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='SAMPLESHT1' and @ImgCmpntCd='FRONT']/@PlateFilePath}\{/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='SAMPLESHT1' and @ImgCmpntCd='FRONT']/@PlateFileName}" />
</fo:block>
</fo:block-container>
<fo:block-container>
<fo:block>
<fo:instream-foreign-object>
<svg:svg xmlns:svg="http://www.w3.org/2000/svg" width="1224pt" height="792pt" viewBoxc="0pt 0pt 1224pt 792pt">
<svg:text x="478.80497925311203319502074689pt" y="176.39502074688796680497925312pt" font-size="36pt" font-family="NHelveticaBold" text-align="center" letter-spacing="0" fill="rgb(128,128,128)" transform="rotate(0,478.80497925311203319502074689pt,176.39502074688796680497925312pt)">VOID</svg:text>
<svg:text x="1090.8049792531120331950207469pt" y="176.39502074688796680497925312pt" font-size="36pt" font-family="NHelveticaBold" text-align="center" letter-spacing="0" fill="rgb(128,128,128)" transform="rotate(0,1090.8049792531120331950207469pt,176.39502074688796680497925312pt)">VOID</svg:text>
</svg:svg>
</fo:instream-foreign-object>
</fo:block>
</fo:block-container>
</fo:block>
<xsl:call-template name="LoopSAMPLESHT1FRONT">
<xsl:with-param name="SAMPLESHT1FRONTPageNbr">
<xsl:value-of select="$SAMPLESHT1FRONTPageNbr+1" />
</xsl:with-param>
<xsl:with-param name="SAMPLESHT1FRONTLoopQty">
<xsl:value-of select="$SAMPLESHT1FRONTLoopQty" />
</xsl:with-param>
<xsl:with-param name="GlobalPageNbr">
<xsl:call-template name="LeftPadNumber">
<xsl:with-param name="PadNumber">
<xsl:value-of select="$GlobalPageNbr+1" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="4" />
</xsl:with-param>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="SAMPLESHT1FRONTPageStart">
<xsl:value-of select="$SAMPLESHT1FRONTPageStart+1" />
</xsl:with-param>
<xsl:with-param name="TotalQuantityLooped">
<xsl:value-of select="$TotalQuantityLooped" />
</xsl:with-param>
<xsl:with-param name="MaxLoopQuantity">
<xsl:value-of select="$MaxLoopQuantity" />
</xsl:with-param>
<xsl:with-param name="SAMPLESHT1FRONTComponentQty">
<xsl:value-of select="$SAMPLESHT1FRONTComponentQty" />
</xsl:with-param>
<xsl:with-param name="SAMPLESHT1FRONTStartNbr1">
<xsl:value-of select="$SAMPLESHT1FRONTStartNbr1" />
</xsl:with-param>
<xsl:with-param name="SAMPLESHT1FRONTStartNbr2">
<xsl:value-of select="$SAMPLESHT1FRONTStartNbr2" />
</xsl:with-param>
<xsl:with-param name="SAMPLESHT1FRONTCodeLineTxt1">
<xsl:value-of select="$SAMPLESHT1FRONTCodeLineTxt1" />
</xsl:with-param>
<xsl:with-param name="SAMPLESHT1FRONTCodeLineTxt2">
<xsl:value-of select="$SAMPLESHT1FRONTCodeLineTxt2" />
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</xsl:template>
<xsl:template name="CHECK1FRONT">
<xsl:param name="CHECK1FRONTLoopQty" />
<xsl:param name="GlobalPageNbr" />
<xsl:param name="CHECK1FRONTPageStart" />
<xsl:param name="TotalQuantityLooped" />
<xsl:param name="MaxLoopQuantity" />
<xsl:variable name="CHECK1FRONTComponentQty">
<xsl:value-of select="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='CHECK1' and @ImgCmpntCd='FRONT']/@ComponentOrderQty" />
</xsl:variable>
<xsl:variable name="CHECK1FRONTStartNbr1">
<xsl:value-of select="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='CHECK1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='1']/@StartNbr" />
</xsl:variable>
<xsl:variable name="CHECK1FRONTStartNbr2">
<xsl:value-of select="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='CHECK1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='2']/@StartNbr" />
</xsl:variable>
<xsl:variable name="CHECK1FRONTCodeLineTxt1">
<xsl:call-template name="TranslateCodeLineTxt">
<xsl:with-param name="CodeLineTxt">
<xsl:value-of select="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='CHECK1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='1']/@CodeLineTxt" />
</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="CHECK1FRONTCodeLineTxt2">
<xsl:call-template name="TranslateCodeLineTxt">
<xsl:with-param name="CodeLineTxt">
<xsl:value-of select="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='CHECK1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='2']/@CodeLineTxt" />
</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<fo:page-sequence master-reference="CHECK1FRONTPage">
<fo:flow flow-name="xsl-region-body">
<xsl:call-template name="LoopCHECK1FRONT">
<xsl:with-param name="CHECK1FRONTPageNbr">
<xsl:value-of select="1" />
</xsl:with-param>
<xsl:with-param name="CHECK1FRONTLoopQty">
<xsl:value-of select="$CHECK1FRONTLoopQty" />
</xsl:with-param>
<xsl:with-param name="GlobalPageNbr">
<xsl:value-of select="$GlobalPageNbr" />
</xsl:with-param>
<xsl:with-param name="CHECK1FRONTPageStart">
<xsl:value-of select="$CHECK1FRONTPageStart" />
</xsl:with-param>
<xsl:with-param name="TotalQuantityLooped">
<xsl:value-of select="$TotalQuantityLooped" />
</xsl:with-param>
<xsl:with-param name="MaxLoopQuantity">
<xsl:value-of select="$MaxLoopQuantity" />
</xsl:with-param>
<xsl:with-param name="CHECK1FRONTComponentQty">
<xsl:value-of select="$CHECK1FRONTComponentQty" />
</xsl:with-param>
<xsl:with-param name="CHECK1FRONTStartNbr1">
<xsl:value-of select="$CHECK1FRONTStartNbr1" />
</xsl:with-param>
<xsl:with-param name="CHECK1FRONTStartNbr2">
<xsl:value-of select="$CHECK1FRONTStartNbr2" />
</xsl:with-param>
<xsl:with-param name="CHECK1FRONTCodeLineTxt1">
<xsl:value-of select="$CHECK1FRONTCodeLineTxt1" />
</xsl:with-param>
<xsl:with-param name="CHECK1FRONTCodeLineTxt2">
<xsl:value-of select="$CHECK1FRONTCodeLineTxt2" />
</xsl:with-param>
</xsl:call-template>
</fo:flow>
</fo:page-sequence>
</xsl:template>
<xsl:template name="LoopCHECK1FRONT">
<xsl:param name="CHECK1FRONTPageNbr" />
<xsl:param name="CHECK1FRONTLoopQty" />
<xsl:param name="GlobalPageNbr" />
<xsl:param name="CHECK1FRONTPageStart" />
<xsl:param name="TotalQuantityLooped" />
<xsl:param name="MaxLoopQuantity" />
<xsl:param name="CHECK1FRONTComponentQty" />
<xsl:param name="CHECK1FRONTStartNbr1" />
<xsl:param name="CHECK1FRONTStartNbr2" />
<xsl:param name="CHECK1FRONTCodeLineTxt1" />
<xsl:param name="CHECK1FRONTCodeLineTxt2" />
<xsl:if test="$CHECK1FRONTPageNbr &lt;= $CHECK1FRONTLoopQty">
<fo:block break-before="page">
<fo:block-container absolute-position="absolute" font-family="ConsecutiveGothicBold" font-size="12pt" height="120pt" left="531.24647302904564315352697092pt" top="405.41078838174273858921161826pt" width="72pt" text-align="left" reference-orientation="0" letter-spacing="0pt" overflow="condense" display-align="after" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:block start-indent="0pt">
<xsl:if test="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='CHECK1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='1']/@Voucher2NbrInd = 'Y'">
<xsl:call-template name="LeftPadNumber">
<xsl:with-param name="PadNumber">
<xsl:value-of select="$CHECK1FRONTStartNbr1 + (1 * ($CHECK1FRONTPageStart - 1))" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="7" />
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</fo:block>
</fo:block-container>
<fo:block-container absolute-position="absolute" font-family="ConsecutiveGothicBold" font-size="12pt" height="120pt" left="1143.2464730290456431535269709pt" top="405.41078838174273858921161826pt" width="72pt" text-align="left" reference-orientation="0" letter-spacing="0pt" overflow="condense" display-align="after" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:block start-indent="0pt">
<xsl:if test="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='CHECK1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='2']/@Voucher2NbrInd = 'Y'">
<xsl:call-template name="LeftPadNumber">
<xsl:with-param name="PadNumber">
<xsl:value-of select="$CHECK1FRONTStartNbr2 + (1 * ($CHECK1FRONTPageStart - 1))" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="7" />
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</fo:block>
</fo:block-container>
<fo:block-container absolute-position="absolute" font-family="ConsecutiveGothicBold" font-size="12pt" height="120pt" left="531.24647302904564315352697092pt" top="150.40331950207468879668049793pt" width="72pt" text-align="left" reference-orientation="0" letter-spacing="0pt" overflow="condense" display-align="after" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:block start-indent="0pt">
<xsl:if test="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='CHECK1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='1']/@Voucher1NbrInd = 'Y'">
<xsl:call-template name="LeftPadNumber">
<xsl:with-param name="PadNumber">
<xsl:value-of select="$CHECK1FRONTStartNbr1 + (1 * ($CHECK1FRONTPageStart - 1))" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="7" />
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</fo:block>
</fo:block-container>
<fo:block-container absolute-position="absolute" font-family="ConsecutiveGothicBold" font-size="12pt" height="120pt" left="1143.2464730290456431535269709pt" top="150.40331950207468879668049793pt" width="72pt" text-align="left" reference-orientation="0" letter-spacing="0pt" overflow="condense" display-align="after" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:block start-indent="0pt">
<xsl:if test="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='CHECK1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='2']/@Voucher1NbrInd = 'Y'">
<xsl:call-template name="LeftPadNumber">
<xsl:with-param name="PadNumber">
<xsl:value-of select="$CHECK1FRONTStartNbr2 + (1 * ($CHECK1FRONTPageStart - 1))" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="7" />
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</fo:block>
</fo:block-container>
<fo:block-container absolute-position="absolute" font-family="ConsecutiveGothicBold" font-size="12pt" height="120pt" left="531.24647302904564315352697092pt" top="-90.57261410788381742738589211pt" width="72pt" text-align="left" reference-orientation="0" letter-spacing="0pt" white-space-treatment="preserve" wrap-option="no-wrap" white-space-collapse="false" overflow="condense" display-align="after" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:block start-indent="0pt">
<xsl:if test="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='CHECK1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='1']/@CheckNbrInd = 'Y'">
<xsl:call-template name="LeftPadNumber">
<xsl:with-param name="PadNumber">
<xsl:value-of select="$CHECK1FRONTStartNbr1 + (1 * ($CHECK1FRONTPageStart - 1))" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="7" />
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</fo:block>
</fo:block-container>
<fo:block-container absolute-position="absolute" font-family="ConsecutiveGothicBold" font-size="12pt" height="120pt" left="1143.2464730290456431535269709pt" top="-90.57261410788381742738589211pt" width="72pt" text-align="left" reference-orientation="0" letter-spacing="0pt" white-space-treatment="preserve" wrap-option="no-wrap" white-space-collapse="false" overflow="condense" display-align="after" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:block start-indent="0pt">
<xsl:if test="/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='CHECK1' and @ImgCmpntCd='FRONT']/ComponentPositionInfo[@PositionNbr='2']/@CheckNbrInd = 'Y'">
<xsl:call-template name="LeftPadNumber">
<xsl:with-param name="PadNumber">
<xsl:value-of select="$CHECK1FRONTStartNbr2 + (1 * ($CHECK1FRONTPageStart - 1))" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="7" />
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</fo:block>
</fo:block-container>
<fo:block-container absolute-position="absolute" font-family="E13B9" font-size="9pt" height="90pt" left="28.43817427385892116182572611pt" top="145.10041493775933609958506224pt" width="560pt" text-align="right" reference-orientation="0" letter-spacing="0pt" white-space-treatment="preserve" wrap-option="no-wrap" white-space-collapse="false" display-align="after" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:block start-indent="0pt">
<xsl:call-template name="ParseCodeLineTxt">
<xsl:with-param name="CodeLineTxt">
<xsl:value-of select="$CHECK1FRONTCodeLineTxt1" />
</xsl:with-param>
<xsl:with-param name="StartNbr">
<xsl:value-of select="$CHECK1FRONTStartNbr1 + (1 * ($CHECK1FRONTPageStart - 1))" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="7" />
</xsl:with-param>
<xsl:with-param name="OriginalString">
<xsl:value-of select="'#######'" />
</xsl:with-param>
</xsl:call-template>
</fo:block>
</fo:block-container>
<fo:block-container absolute-position="absolute" font-family="E13B9" font-size="9pt" height="90pt" left="640.4381742738589211618257261pt" top="145.10041493775933609958506224pt" width="560pt" text-align="right" reference-orientation="0" letter-spacing="0pt" white-space-treatment="preserve" wrap-option="no-wrap" white-space-collapse="false" display-align="after" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:block start-indent="0pt">
<xsl:call-template name="ParseCodeLineTxt">
<xsl:with-param name="CodeLineTxt">
<xsl:value-of select="$CHECK1FRONTCodeLineTxt2" />
</xsl:with-param>
<xsl:with-param name="StartNbr">
<xsl:value-of select="$CHECK1FRONTStartNbr2 + (1 * ($CHECK1FRONTPageStart - 1))" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="7" />
</xsl:with-param>
<xsl:with-param name="OriginalString">
<xsl:value-of select="'#######'" />
</xsl:with-param>
</xsl:call-template>
</fo:block>
</fo:block-container>
<fo:block-container absolute-position="absolute" height="792pt" left="0pt" top="0pt" width="1224pt" overflow="hidden" display-align="before">
<fo:block text-align="start">
<fo:external-graphic content-type="image/eps" content-height="792pt" content-width="1224pt" src="{/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='CHECK1' and @ImgCmpntCd='FRONT']/@PlateFilePath}\{/Plate/RunGroupInfo/ComponentInfo[@ComponentCD='CHECK1' and @ImgCmpntCd='FRONT']/@PlateFileName}" />
</fo:block>
</fo:block-container>
</fo:block>
<xsl:call-template name="LoopCHECK1FRONT">
<xsl:with-param name="CHECK1FRONTPageNbr">
<xsl:value-of select="$CHECK1FRONTPageNbr+1" />
</xsl:with-param>
<xsl:with-param name="CHECK1FRONTLoopQty">
<xsl:value-of select="$CHECK1FRONTLoopQty" />
</xsl:with-param>
<xsl:with-param name="GlobalPageNbr">
<xsl:call-template name="LeftPadNumber">
<xsl:with-param name="PadNumber">
<xsl:value-of select="$GlobalPageNbr+1" />
</xsl:with-param>
<xsl:with-param name="PadString">
<xsl:value-of select="'0000'" />
</xsl:with-param>
<xsl:with-param name="FieldLength">
<xsl:value-of select="4" />
</xsl:with-param>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="CHECK1FRONTPageStart">
<xsl:value-of select="$CHECK1FRONTPageStart+1" />
</xsl:with-param>
<xsl:with-param name="TotalQuantityLooped">
<xsl:value-of select="$TotalQuantityLooped" />
</xsl:with-param>
<xsl:with-param name="MaxLoopQuantity">
<xsl:value-of select="$MaxLoopQuantity" />
</xsl:with-param>
<xsl:with-param name="CHECK1FRONTComponentQty">
<xsl:value-of select="$CHECK1FRONTComponentQty" />
</xsl:with-param>
<xsl:with-param name="CHECK1FRONTStartNbr1">
<xsl:value-of select="$CHECK1FRONTStartNbr1" />
</xsl:with-param>
<xsl:with-param name="CHECK1FRONTStartNbr2">
<xsl:value-of select="$CHECK1FRONTStartNbr2" />
</xsl:with-param>
<xsl:with-param name="CHECK1FRONTCodeLineTxt1">
<xsl:value-of select="$CHECK1FRONTCodeLineTxt1" />
</xsl:with-param>
<xsl:with-param name="CHECK1FRONTCodeLineTxt2">
<xsl:value-of select="$CHECK1FRONTCodeLineTxt2" />
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
(1-1/3)