CyberStore Documentation
COMSFM

See the example of COMSFM code below:

<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:param name="FormType" />
  <xsl:param name="KeyField" />
  <xsl:param name="FieldName" />
  <xsl:param name="Value" />
  <xsl:param name="ValueType" />
  <xsl:template match="/">
    <SetupCustomForm xmlns:xsd="http://www.w3.org/2000/10/XMLSchema-instance" xsd:noNamespaceSchemaLocation="COMSFM.XSD">
      <Item>
        <Key>
          <FormType>
            <xsl:value-of select="$FormType" />
          </FormType>
          <KeyField>
            <xsl:value-of select="$KeyField" />
          </KeyField>
          <FieldName>
            <xsl:value-of select="$FieldName" />
          </FieldName>
        </Key>
        <xsl:if test="$ValueType='ALPHA'">
          <AlphaValue>
            <xsl:value-of select="$Value" />
          </AlphaValue>
        </xsl:if>
        <xsl:if test="$ValueType='NUMERIC'">
          <NumericValue>
            <xsl:value-of select="$Value" />
          </NumericValue>
        </xsl:if>
        <xsl:if test="$ValueType='DATE'">
          <DateValue>
            <xsl:value-of select="$Value" />
          </DateValue>
        </xsl:if>
      </Item>
    </SetupCustomForm>
  </xsl:template>
</xsl:stylesheet>