KB Article #175813

CSOS Order View: Remove additional comma from Address field

Problem

-- When looking at a CSOS order via the e222 stylesheet, the Address displays an additional comma between state and zip code, e.g.:

Company, inc
1 Somestreet
City, ST, 12345

Resolution

In order to remove this comma, use the following procedure:
  1. Make a copy of the default e222.xsl at [installDir]/Interchange/conf/web/documents/e222.xsl
  2. Edit the copy and search for the phrase "Name and Address of Registrant"
  3. Edit this section, search for the line " <xsl:value-of select="segment[@code='N4']/element[2]/value"/>," remove the comma at the end and replace it with "&#160;":

    <tr>
        <td>
            <div class="fieldname">Name and Address of Registrant</div>
        </td>
    </tr>
    <tr>
        <td valign="top">
            <div class="fieldvalue">
                <xsl:for-each select="//loop[segment/@code='N1' and segment/element[1]/value='ST']">
                    <xsl:value-of select="segment[@code='N1']/element[@name='Name']/value"/>
                    <br/>
                    <xsl:value-of select="segment[@code='N3']/element[1]/value"/>
                    <br/>
                    <xsl:value-of select="segment[@code='N4']/element[1]/value"/>,
                                                            <xsl:value-of select="segment[@code='N4']/element[2]/value"/>&#160;
                                                            <xsl:value-of select="segment[@code='N4']/element[3]/value"/>
                    <br/>
                </xsl:for-each>
            </div>
        </td>
    </tr>

  4. Log into the the CSOS Interchange UI, change the stylesheet you wish to use for the CSOS orders to the new, modified e222.xsl. Depending if a Transaction Director (Tx) license is used or not, this is configured in different places. For Tx licenses this is changed at: Transaction configuration -> Manage document types. For non-Tx licenses you find this setting at Message Tracker -> Configure payload view.