source code changes

  •  01-07-2013, 9:13 PM

    source code changes

    Hello,

    I have the latest version installed and I also test this out using the demo web site but got the same problem on both the installed version and demo site. Any way to prevent it from reformat my code or is it even possible to do the following? I paste the following code and switch to Normal view and back HTML view and the code got change. Here is partial sample code

     

    Original Code

     

    <table id="title_page" width="690">
                <xsl:choose>
                  <xsl:when test="has_logo = 'Yes'">
                    <tr>
                      <td colspan="2">
                        <img alt="" src="img/company_logo.gif" width="200px" height="200px" />
                      </td>
                    </tr>
                  </xsl:when>
                  <xsl:otherwise>
                    <tr valign="top">
                      <td colspan="2">
                        <h1>No Logo</h1>
                      </td>
                    </tr>
                  </xsl:otherwise>
                </xsl:choose>
    </table> 

     

    Result

     <xsl:choose>
    <xsl:when test="has_logo = 'Yes'">
    </xsl:when></xsl:choose><xsl:otherwise>
    </xsl:otherwise>
    <table id="title_page" width="690">
         <tbody>
             <tr>
                 <td colspan="2">
                 <img alt="" src="img/company_logo.gif" width="200px" height="200px" />
                 </td>
             </tr>
             <tr valign="top">
                 <td colspan="2">
                 <h1>No Logo</h1>
                 </td>
             </tr>
         </tbody>
    </table>

     

    Thanks

     

    Howard 

View Complete Thread