</head> <body style="margin-left=0.6in; margin-right=0.6in; margin-top=0.79in; margin-bottom=0.79in"> <xsl:for-each select="$XML"> <br/> <h1> <span> <xsl:text>Envelope Info</xsl:text> </span> </h1> <span> <xsl:text>Transaction ID: </xsl:text> </span> <xsl:for-each select="nsi:retailerTransactionIdentifier"> <xsl:apply-templates/> </xsl:for-each> <xsl:for-each select="nsi:lotteryTransactionIdentifier"> <xsl:apply-templates/> </xsl:for-each> <br/> <span> <xsl:text>Date/Time: </xsl:text> </span> <xsl:for-each select="nsi:dateTimeStamp"> <xsl:apply-templates/> </xsl:for-each> <br/> <span> <xsl:text>User ID: </xsl:text> </span> <xsl:for-each select="nsi:envUserId"> <xsl:apply-templates/> </xsl:for-each> <br/> <span> <xsl:text>Password: </xsl:text> </span> <xsl:for-each select="nsi:envPassword"> <xsl:apply-templates/> </xsl:for-each> <br/> <hr/> <h2> <span> <xsl:text>To</xsl:text> </span> </h2> <br/> <xsl:for-each select="nsi:envTo"> <xsl:for-each select="nsi:organization"> <xsl:for-each select="nsi:organizationName"> <span style="font-size:large; font-weight:bold; "> <xsl:apply-templates/> </span> </xsl:for-each> <br/> <xsl:for-each select="nsi:address"> <xsl:for-each select="nsi:addressStreet"> <xsl:apply-templates/> </xsl:for-each> <br/> <xsl:for-each select="nsi:addressCity"> <xsl:apply-templates/> </xsl:for-each> <span> <xsl:text>, </xsl:text> </span> <xsl:for-each select="nsi:addressStateProvince"> <xsl:apply-templates/> </xsl:for-each> <span> <xsl:text>   </xsl:text> </span> <xsl:for-each select="nsi:addressPostalCode"> <xsl:apply-templates/> </xsl:for-each> </xsl:for-each> </xsl:for-each> </xsl:for-each> <br/> <hr/> <br/> <h2> <span> <xsl:text>From</xsl:text> </span> </h2> <br/> <xsl:for-each select="nsi:envFrom"> <xsl:for-each select="nsi:organization"> <xsl:for-each select="nsi:organizationName"> <span style="font-size:large; font-weight:bold; "> <xsl:apply-templates/> </span> </xsl:for-each> <br/> <xsl:for-each select="nsi:address"> <xsl:for-each select="nsi:addressStreet"> <xsl:apply-templates/> </xsl:for-each> <br/> <xsl:for-each select="nsi:addressCity"> <xsl:apply-templates/> </xsl:for-each> <span> <xsl:text>, </xsl:text> </span> <xsl:for-each select="nsi:addressStateProvince"> <xsl:apply-templates/> </xsl:for-each> <span> <xsl:text>   </xsl:text> </span> <xsl:for-each select="nsi:addressPostalCode"> <xsl:apply-templates/> </xsl:for-each> </xsl:for-each> </xsl:for-each> </xsl:for-each> <br/> <br/> <hr/> <xsl:for-each select="nsi:message"> <br/> <h1> <span> <xsl:text>Message</xsl:text> </span> </h1> <span> <xsl:text>Document ID: </xsl:text> </span> <xsl:for-each select="nsi:messageDocumentIdentifier"> <xsl:apply-templates/> </xsl:for-each> <br/> <br/> <span> <xsl:text>Document Command:</xsl:text> </span> <xsl:for-each select="nsi:messageDocumentCommand"> <xsl:apply-templates/> </xsl:for-each> <br/> <br/> <span> <xsl:text> </xsl:text> </span> <xsl:for-each select="nsi:order"> <h2> <span> <xsl:text>Order</xsl:text> </span> </h2> <span> <xsl:text>Order ID: </xsl:text> </span> <xsl:for-each select="nsi:orderIdentifionNumber"> <xsl:apply-templates/> </xsl:for-each> <br/> <xsl:for-each select="nsi:orderItem"> <span> <xsl:text>Date/Time:</xsl:text> </span> <xsl:for-each select="nsi:dateTimeStamp"> <xsl:apply-templates/> </xsl:for-each> <br/> <span> <xsl:text>UPC/GTIN Number: </xsl:text> </span> <xsl:for-each select="nsi:upcNumber"> <xsl:apply-templates/> </xsl:for-each> <br/> <xsl:variable name="altova:table"> <table border="1"> <xsl:variable name="altova:CurrContextGrid_09680760" select="."/> <xsl:variable name="altova:ColumnData"/> <thead> <tr> <th> <span> <xsl:text>Ordered</xsl:text> </span> </th> <th> <span> <xsl:text>Shipped</xsl:text> </span> </th> <th> <span> <xsl:text>Detail</xsl:text> </span> </th> <th> <span> <xsl:text>serialNumber</xsl:text> </span> </th> <th> <span> <xsl:text>UOM</xsl:text> </span> </th> <th> <span> <xsl:text>UnitCost</xsl:text> </span> </th> <th> <span> <xsl:text>Extension</xsl:text> </span> </th> </tr> </thead> <tbody> <xsl:for-each select="nsi:accountingLineItem"> <tr> <td> <xsl:for-each select="nsi:accountingLineItemQuantityOrdered"> <xsl:apply-templates/> </xsl:for-each> </td> <td> <xsl:for-each select="nsi:accountingLineItemQuantityShipped"> <xsl:apply-templates/> </xsl:for-each> </td> <td> <xsl:for-each select="nsi:accountingLineItemDetail"> <xsl:apply-templates/> </xsl:for-each> </td> <td> <xsl:for-each select="nsi:serialNumber"> <xsl:apply-templates/> </xsl:for-each> </td> <td> <xsl:for-each select="nsi:accountingLineItemUOM"> <xsl:apply-templates/> </xsl:for-each> </td> <td> <xsl:for-each select="nsi:accountingLineItemUnitCost"> <xsl:apply-templates/> </xsl:for-each> </td> <td> <xsl:for-each select="nsi:accountingLineItemCostExtension"> <xsl:apply-templates/> </xsl:for-each> </td> </tr> </xsl:for-each> </tbody> </table> </xsl:variable> <xsl:variable name="altova:col-count" select="sum( for $altova:cell in $altova:table/table/(thead | tbody | tfoot)[ 1 ]/tr[ 1 ]/(th | td) return altova:col-span( $altova:cell ) )"/> <xsl:variable name="altova:generate-cols" as="xs:boolean*" select="for $altova:pos in 1 to $altova:col-count return true()"/> <xsl:apply-templates select="$altova:table" mode="altova:generate-table"> <xsl:with-param name="altova:generate-cols" select="$altova:generate-cols"/> </xsl:apply-templates> </xsl:for-each> </xsl:for-each> <br/> <br/> <xsl:for-each select="nsi:packActivation"> <br/> <h2> <span> <xsl:text>Pack Activation</xsl:text> </span> </h2> <span> <xsl:text>Date/Time: </xsl:text> </span> <xsl:for-each select="nsi:dateTimeStamp"> <xsl:apply-templates/> </xsl:for-each> <br/> <xsl:for-each select="nsi:retailerTransactionIdentifier"> <span> <xsl:text>Retailer Transaction ID: </xsl:text> </span> <xsl:apply-templates/> </xsl:for-each> <span> <xsl:text> - </xsl:text> </span> <xsl:for-each select="nsi:lotteryTransactionIdentifier"> <span> <xsl:text>Lottery Transaction ID: </xsl:text> </span> <xsl:apply-templates/> </xsl:for-each> <br/> <span> <xsl:text>UPC/GTIN: </xsl:text> </span> <xsl:for-each select="nsi:upcNumber"> <xsl:apply-templates/> </xsl:for-each> <br/> <span> <xsl:text>Pack Number: </xsl:text> </span> <xsl:for-each select="nsi:serialNumber"> <xsl:apply-templates/> </xsl:for-each> </xsl:for-each> <br/> <br/> <xsl:for-each select="nsi:receipt"> <br/> <h2> <span> <xsl:text>Receipt</xsl:text> </span> </h2> <span> <xsl:text>Order ID:</xsl:text> </span> <xsl:for-each select="nsi:order"> <xsl:for-each select="nsi:orderIdentifionNumber"> <xsl:apply-templates/> </xsl:for-each> </xsl:for-each> <br/> <span> <xsl:text>Receipt Date: </xsl:text> </span> <xsl:for-each select="nsi:receiptDate"> <xsl:apply-templates/> </xsl:for-each> <br/> <span> <xsl:text>Condition: </xsl:text> </span> <xsl:for-each select="nsi:receiptCondition"> <xsl:apply-templates/> </xsl:for-each> <br/> <span> <xsl:text>Comment: </xsl:text> </span> <xsl:for-each select="nsi:receiptComment"> <xsl:apply-templates/> </xsl:for-each> </xsl:for-each> <br/> <xsl:for-each select="nsi:shipment"> <br/> <h2> <span> <xsl:text>Shipment</xsl:text> </span> </h2> <span> <xsl:text>Order ID: </xsl:text> </span> <xsl:for-each select="nsi:order"> <xsl:for-each select="nsi:orderIdentifionNumber"> <xsl:apply-templates/> </xsl:for-each> </xsl:for-each> <br/> <span> <xsl:text>Date/Time: </xsl:text> </span> <xsl:for-each select="nsi:shipmentDate"> <xsl:apply-templates/> </xsl:for-each> <br/> <span> <xsl:text>Tracking Number: </xsl:text> </span> <xsl:for-each select="nsi:shipmentTrackingNumber"> <xsl:apply-templates/> </xsl:for-each> <br/> <span> <xsl:text>Est Delivery: </xsl:text> </span> <xsl:for-each select="nsi:shipmentEstimatedDelivery"> <xsl:apply-templates/> </xsl:for-each> <br/> <span> <xsl:text>Package Count: </xsl:text> </span> <xsl:for-each select="nsi:shipmentPackageCount"> <xsl:apply-templates/> </xsl:for-each> <br/> <span> <xsl:text>From: </xsl:text> </span> <xsl:for-each select="nsi:shipmentFrom"> <xsl:for-each select="nsi:organization"> <xsl:for-each select="nsi:organizationName"> <xsl:apply-templates/> </xsl:for-each> </xsl:for-each> </xsl:for-each> <br/> <span> <xsl:text>Shiped via: </xsl:text> </span> <xsl:for-each select="nsi:shipmentCarrier"> <xsl:for-each select="nsi:organization"> <xsl:for-each select="nsi:organizationName"> <xsl:apply-templates/> </xsl:for-each> </xsl:for-each> </xsl:for-each> <br/> <br/> </xsl:for-each> <br/> <br/> <xsl:for-each select="nsi:status"> <br/> <h2> <span> <xsl:text>Status</xsl:text> </span> </h2> <span> <xsl:text>UPC/GTIN: </xsl:text> </span> <xsl:for-each select="nsi:upcNumber"> <xsl:apply-templates/> </xsl:for-each> <br/> <span> <xsl:text>Pack Number: </xsl:text> </span> <xsl:for-each select="nsi:serialNumber"> <xsl:apply-templates/> </xsl:for-each> <br/> <span> <xsl:text>Status Detail: </xsl:text> </span> <xsl:for-each select="nsi:statusDetail"> <xsl:apply-templates/> </xsl:for-each> <br/> <span> <xsl:text>Coment: </xsl:text> </span> <xsl:for-each select="nsi:statusComment"> <xsl:apply-templates/> </xsl:for-each> <br/> </xsl:for-each> <br/> <br/> <xsl:for-each select="nsi:validationRequest"> <br/> <h2> <span> <xsl:text>Validation Request</xsl:text> </span> </h2> <span> <xsl:text>Date/Time: </xsl:text> </span> <xsl:for-each select="nsi:dateTimeStamp"> <xsl:apply-templates/> </xsl:for-each> <br/> <span> <xsl:text>Transaction ID: </xsl:text> </span> <xsl:for-each select="nsi:retailerTransactionIdentifier"> <xsl:apply-templates/> </xsl:for-each> <br/> <span> <xsl:text>UPC/GTIN: </xsl:text> </span> <xsl:for-each select="nsi:upcNumber"> <xsl:apply-templates/> </xsl:for-each> <br/> <span> <xsl:text>Ticket Number: </xsl:text> </span> <xsl:for-each select="nsi:serialNumber"> <xsl:apply-templates/> </xsl:for-each> <br/> <span> <xsl:text>Clerk ID: </xsl:text> </span> <xsl:for-each select="nsi:retailerClerkIdentifier"> <xsl:apply-templates/> </xsl:for-each> <br/> <span> <xsl:text>Register ID: </xsl:text> </span> <xsl:for-each select="nsi:retailerRegisterIdentifier"> <xsl:apply-templates/> </xsl:for-each> <br/> </xsl:for-each> <br/> <br/> <xsl:for-each select="nsi:validationResponse"> <br/> <h2> <span> <xsl:text>Validation Response</xsl:text> </span> </h2> <span> <xsl:text>Date/Time: </xsl:text> </span> <xsl:for-each select="nsi:dateTimeStamp"> <xsl:apply-templates/> </xsl:for-each> <br/> <span> <xsl:text>Lottery Transaction ID: </xsl:text> </span> <xsl:for-each select="nsi:lotteryTransactionIdentifier"> <xsl:apply-templates/> </xsl:for-each> <br/> <span> <xsl:text>Retailer Transaction ID: </xsl:text> </span> <xsl:for-each select="nsi:retailerTransactionIdentifier"> <xsl:apply-templates/> </xsl:for-each> <br/> <span> <xsl:text>UPC/GTIN Number: </xsl:text> </span> <xsl:for-each select="nsi:upcNumber"> <xsl:apply-templates/> </xsl:for-each> <br/> <span> <xsl:text>Ticket Number: </xsl:text> </span> <xsl:for-each select="nsi:serialNumber"> <xsl:apply-templates/> </xsl:for-each> <br/> <span> <xsl:text>Validation Status: </xsl:text> </span> <xsl:for-each select="nsi:validationStatus"> <xsl:apply-templates/> </xsl:for-each> <br/> <span> <xsl:text>Message: </xsl:text> </span> <xsl:for-each select="nsi:validationMessage"> <xsl:apply-templates/> </xsl:for-each> <br/> <span> <xsl:text>Amount: </xsl:text> </span> <xsl:for-each select="nsi:validationAmount"> <xsl:apply-templates/> </xsl:for-each> <br/> </xsl:for-each> <br/> </xsl:for-each> <br/> </xsl:for-each> </body> </html> </xsl:template> <xsl:function name="altova:is-cell-empty" as="xs:boolean"> <xsl:param name="altova:cell" as="element()"/> <xsl:sequence select="altova:is-node-empty( $altova:cell )"/> </xsl:function> <xsl:function name="altova:is-node-empty" as="xs:boolean"> <xsl:param name="altova:node" as="element()"/> <xsl:sequence select="every $altova:child in $altova:node/child::node() satisfies ( boolean( $altova:child/self::div ) or boolean( $altova:child/self::span ) or boolean( $altova:child/self::a ) ) and altova:is-node-empty( $altova:child )"/> </xsl:function> <xsl:function name="altova:col-span" as="xs:integer"> <xsl:param name="altova:cell" as="element()"/> <xsl:sequence select="if ( exists( $altova:cell/@colspan ) ) then xs:integer( $altova:cell/@colspan ) else 1"/> </xsl:function> <xsl:template match="@* | node()" mode="altova:generate-table"> <xsl:param name="altova:generate-cols"/> <xsl:copy> <xsl:apply-templates select="@* | node()" mode="#current"> <xsl:with-param name="altova:generate-cols" select="$altova:generate-cols"/> </xsl:apply-templates> </xsl:copy> </xsl:template> <xsl:template match="th | td" mode="altova:generate-table"> <xsl:choose> <xsl:when test="altova:is-cell-empty( . )"> <xsl:copy> <xsl:apply-templates select="@*" mode="#current"/> <xsl:text> </xsl:text> </xsl:copy> </xsl:when> <xsl:otherwise> <xsl:copy> <xsl:apply-templates select="@* | node()" mode="#current"/> </xsl:copy> </xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet>