Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin



The sample of XSLT instruction and script is shown below:



Code Block
<!DOCTYPE FIXEdge SYSTEM "BusinessLayer.dtd">
  <!-- All rules are applied independently --> 
    <!-- The first rule.--> 
      <!-- Check where the message is received from --> 
        <!-- Message received from any FIX session --> 
        <FixSession SenderCompID=".*" TargetCompID=".*"/>
      <!-- Check the message content --> 
        <!-- Message with any value of MsgType --> 
        <MatchField Field="35" Value=".*"/>
      <!-- Apply action if Source and Condition succeeded --> 
          -- Apply XSLT script from file 'script1.xslt' to the value
          -- of FIX field 213; since 213 is a RawData field the field
          -- 212 that contains its length is also mentioned.
          -- String ' world' will be used to substitute parameter with name
          -- 'param1'; String '!' will be used to substitute parameter
          -- with name 'param2';
        <Script Language="XSLT" Field="213" LengthField="212" FileName="script1.xslt" >
            <Param Name="param1">' world'</Param>
            <Param Name="param2">'!'</Param>
        <!-- Send message --> 
            -- Send message to the FIX session according to the SenderCompID
            -- and TargetCompID fields in this message.
          <FixSession />




Code Block
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl='' version='1.0'>
<xsl:output encoding='US-ASCII'/>
<!-- Declaration of the parameter with the default value --> 
<xsl:param name="param1" select="'default value'"/>
<!-- Declaration of the parameter with the default value --> 
<xsl:param name="param2" select="'default value'"/>
<!-- Find '<doc>' element inside XML --> 
<xsl:template match='doc'>
    <!-- Replace with '<out>' element --> 
    <!-- Remain text in element unchanged --> 
    <xsl:value-of select="."/>
    <!-- Append value of the first input parameter --> 
    <xsl:value-of select="$param1"/>
    <!-- Append value of the second input parameter --> 
    <xsl:value-of select="$param2"/>