CyberStore Documentation
New and Modified XSLT Files
In This Topic

The following CyberStore e-commerce XSLT Files have been added or modified in the 2.20 release:

New XSLT Files

The following XSLT Files have been added to CyberStore in this version:

Modified XSLT Files

The XSLT File markup for the following XSLT Files have been modified in this version.

We have also modified base XSLT files as part of this release. If you use a standard version of this file, this is automatically updated when you install version 2.20. If you use a custom version, you should make changes within the following XSLT file to maintain full functionality.

Modified XSLT File Classification Description of Modification
SORQND

Required

Replace the entire version 2.19 file to the 2.20 version as shown below:

  • From 2.19:
<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:param name="InvoiceNumber" />
<xsl:template match="/">
<Query xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xsd:noNamespaceSchemaLocation="SORQND.XSD">
  <Filter>
    <InvoiceNumber>
      <FilterType>L</FilterType>
      <FilterValue>
        <xsl:value-of select="$InvoiceNumber" />
      </FilterValue>
    </InvoiceNumber>
  </Filter>
  <Option>
    <Reprint>Y</Reprint>
    <DocumentType>I</DocumentType>
    <IncludeForms/>
    <IncludeCustomerForms/>
    <IncludeStockForms/>
    <IncludeDetailForms/>
    <IncludeNotes/>
    <IgnorePrintStatus/>
    <RoundMass>O</RoundMass>
    <RoundMassDecs/>
    <RoundVolume>O</RoundVolume>
    <RoundVolumeDecs/>
    <XslStylesheet/>
  </Option>
</Query>
</xsl:template>
</xsl:stylesheet>
 
  • To 2.20
<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:param name="InvoiceNumberFilter" />
    <xsl:param name="CustomerNumberFilter" />
    <xsl:param name="OrderTypeFilter" />
    <xsl:param name="CustomerPoFilter" />
    <xsl:param name="DispatchNoteFilter" />
    <xsl:param name="GtrReferenceFilter" />
    <xsl:param name="SalesOrderFilter" />
    <xsl:param name="InvoiceDateFilter" />
    <xsl:param name="InvoiceDateRangeFilter" />
    <xsl:param name="OperatorFilter" />
    <xsl:param name="GeographicAreaFilter" />
    <xsl:param name="BranchFilter" />
    <xsl:template match="/">
        <Query xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xsd:noNamespaceSchemaLocation="SORQND.XSD">
            <Option>
                <Reprint>Y</Reprint>
                <DocumentType>I</DocumentType>
                <IncludeForms/>
                <IncludeCustomerForms/>
                <IncludeStockForms/>
                <IncludeDetailForms/>
                <IncludeNotes/>
                <IgnorePrintStatus/>
                <RoundMass>O</RoundMass>
                <RoundMassDecs/>
                <RoundVolume>O</RoundVolume>
                <RoundVolumeDecs/>
                <XslStylesheet/>
            </Option>
            <Filter>
                <xsl:if test="$InvoiceNumberFilter!=''">
                    <xsl:element name="InvoiceNumber" >
                        <xsl:attribute name="FilterType" >L</xsl:attribute>
                        <xsl:attribute name="FilterValue" >
                            <xsl:value-of select="$InvoiceNumberFilter" />
                        </xsl:attribute>
                    </xsl:element>
                </xsl:if>
                <xsl:if test="$BranchFilter!=''">
                    <xsl:element name="Branch" >
                        <xsl:attribute name="FilterType" >S</xsl:attribute>
                        <xsl:attribute name="FilterValue" >
                            <xsl:value-of select="$BranchFilter" />
                        </xsl:attribute>
                    </xsl:element>
                </xsl:if>
                <xsl:if test="$CustomerNumberFilter!=''">
                    <xsl:element name="Customer" >
                        <xsl:attribute name="FilterType" >L</xsl:attribute>
                        <xsl:attribute name="FilterValue" >
                            <xsl:value-of select="$CustomerNumberFilter" />
                        </xsl:attribute>
                    </xsl:element>
                </xsl:if>
                <xsl:if test="$OrderTypeFilter!=''">
                    <xsl:element name="OrderType" >
                        <xsl:attribute name="FilterType" >S</xsl:attribute>
                        <xsl:attribute name="FilterValue" >
                            <xsl:value-of select="$OrderTypeFilter" />
                        </xsl:attribute>
                    </xsl:element>
                </xsl:if>
                <xsl:if test="$CustomerPoFilter!=''">
                    <xsl:element name="CustomerPo" >
                        <xsl:attribute name="FilterType" >S</xsl:attribute>
                        <xsl:attribute name="FilterValue" >
                            <xsl:value-of select="$CustomerPoFilter" />
                        </xsl:attribute>
                    </xsl:element>
                </xsl:if>
                <xsl:if test="$DispatchNoteFilter!=''">
                    <xsl:element name="DispatchNote" >
                        <xsl:attribute name="FilterType" >L</xsl:attribute>
                        <xsl:attribute name="FilterValue" >
                            <xsl:value-of select="$DispatchNoteFilter" />
                        </xsl:attribute>
                    </xsl:element>
                </xsl:if>
                <xsl:if test="$GtrReferenceFilter!=''">
                    <xsl:element name="GtrReference" >
                        <xsl:attribute name="FilterType" >L</xsl:attribute>
                        <xsl:attribute name="FilterValue" >
                            <xsl:value-of select="$GtrReferenceFilter" />
                        </xsl:attribute>
                    </xsl:element>
                </xsl:if>
                <xsl:if test="$SalesOrderFilter!=''">
                    <xsl:element name="SalesOrder" >
                        <xsl:attribute name="FilterType" >L</xsl:attribute>
                        <xsl:attribute name="FilterValue" >
                            <xsl:value-of select="$SalesOrderFilter" />
                        </xsl:attribute>
                    </xsl:element>
                </xsl:if>
                <xsl:if test="$InvoiceDateFilter!='' and $InvoiceDateRangeFilter=''">
                    <xsl:element name="InvoiceDate" >
                        <xsl:attribute name="FilterType" >S</xsl:attribute>
                        <xsl:attribute name="FilterValue" >
                            <xsl:value-of select="$InvoiceDateFilter" />
                        </xsl:attribute>
                    </xsl:element>
                </xsl:if>
                <xsl:if test="$InvoiceDateRangeFilter!='' and $InvoiceDateFilter=''">
                    <xsl:element name="InvoiceDate" >
                        <xsl:attribute name="FilterType" >R</xsl:attribute>
                        <xsl:attribute name="FilterValue" >
                            <xsl:value-of select="$InvoiceDateRangeFilter" />
                        </xsl:attribute>
                    </xsl:element>
                </xsl:if>
                <xsl:if test="$OperatorFilter!=''">
                    <xsl:element name="Operator" >
                        <xsl:attribute name="FilterType" >S</xsl:attribute>
                        <xsl:attribute name="FilterValue" >
                            <xsl:value-of select="$OperatorFilter" />
                        </xsl:attribute>
                    </xsl:element>
                </xsl:if>
                <xsl:if test="$GeographicAreaFilter!=''">
                    <xsl:element name="GeographicArea" >
                        <xsl:attribute name="FilterType" >S</xsl:attribute>
                        <xsl:attribute name="FilterValue" >
                            <xsl:value-of select="$GeographicAreaFilter" />
                        </xsl:attribute>
                    </xsl:element>
                </xsl:if>
            </Filter>
        </Query>
    </xsl:template>
</xsl:stylesheet>

 

Implementer's Note:

If you have custom versions of the above modified XSLT Files in your Site/XSLT folder, please compare them with their released versions in the /ecommerce/XSLT folder for compatibility.