RemoteScanSendDocument.xsl content

The following information shows the document structure used in the content of the RemoteScanSendDocument.xsl document. Use it as reference material when modifying the XSL file.

Following is the content of the file:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
  <!-- Set encoding here -->
  <xsl:output method="xml" encoding="UTF-8" omit-xml-declaration ="no"/>
  <xsl:template match="/">
     <remotescanimportinvoice>
       <xsl:if test="/invoice/information/buyernumber>0">
        <buyerinfo>
          <number>
            <xsl:value-of select="/invoice/information/buyernumber"/>
          </number>
        </buyerinfo>
      </xsl:if>
       <udvlist>
        <udv>
          <name>
            <xsl:text>RemoteScanTime</xsl:text>
          </name>
          <value>
            <xsl:value-of select="/invoice/information/scantime"/>
          </value>
        </udv>
        <xsl:for-each select="/invoice/udvlist/udv">
          <udv>
            <name>
              <xsl:value-of select="name"/>
            </name>
            <value>
              <xsl:value-of select="value"/>
            </value>
          </udv>
        </xsl:for-each>
      </udvlist>
       <headerfieldlist>
        <xsl:for-each select="/invoice/headerfieldlist/headerfield">
          <headerfield>
            <fieldtype>
              <xsl:value-of select="fieldtype"/>
            </fieldtype>
            <value>
              <xsl:value-of select="value"/>
            </value>
          </headerfield>
        </xsl:for-each>
      </headerfieldlist>
        <xsl:if test="/invoice/information/queuenumber>0">
        <queuenumber>
            <xsl:value-of select="/invoice/information/queuenumber"/>
        </queuenumber>
      </xsl:if>
       <xsl:if test="/invoice/information/endorser!=''">
        <endorser>
          <xsl:value-of select="/invoice/information/endorser"/>
        </endorser>
      </xsl:if> 

      <xsl:if test="/invoice/udvlist/udv[@id='archiveonly']/value=1">
        <statusoverride>64</statusoverride>
      </xsl:if> 

      <xsl:if test="/invoice/udvlist/udv[@id='creditdetection']/value!=''">
        <creditdetection>
          <xsl:value-of select="/invoice/udvlist/udv[@id='creditdetection']/value"/>
        </creditdetection>
      </xsl:if>
    </remotescanimportinvoice>
  </xsl:template>
</xsl:stylesheet>