Edit remote URL XSL

This information is provided in connection with the ScanInfo component, and it is used when the RemoteScanSender component is configured.

If (multiple conditional) remote destinations are used (one folder for each buyer, for example), an XSL file named RemoteScanRemoteUrl.xsl is used to determine the remote URL to be used for each invoice. You can open and edit this file by clicking Edit remote URL XSL in the RemoteScanSender dialog.

Below is an example of a customized remote URL XSL where the FTP server folder depends on the buyer number. If buyer number starts with 4, the invoice is sent to the folder named "MyFolder". If the buyer number starts with 5, the invoice is sent to the folder named "MyOtherFolder".

<?xml version='1.0' encoding='UTF-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="text" encoding="UTF-8"/>
  <xsl:template match="/">
    <xsl:if test="substring(/invoice/information/buyernumber,1,1) = '4'">
      <xsl:text>ftp://ftp.someserver.com/myfolder</xsl:text>
    </xsl:if>
    <xsl:if test="substring(/invoice/information/buyernumber,1,1) = '5'">
      <xsl:text>ftp://ftp.someserver.com/myotherfolder</xsl:text>
    </xsl:if>
  </xsl:template>
</xsl:stylesheet>