</DIV> 
        <xsl:for-each select="Dep">
          <b><font color="blue" size="2"><xsl:value-of select="DepName"/></font></b>
          <DIV >
            <table width="20%"  border="3" cellspacing="5" cellpadding="2">
            <tr>
              <xsl:for-each select="Worker">
              <td width="25%" height="20" align="center"><b><font color="#0066CC" size="2"><xsl:value-of select="WorkerName"/></font></b></td>                      
              </xsl:for-each> 
            </tr>
            </table>
          </DIV>xml显示‘DEP’值前面加2个空字符,或缩进2格,或保留字符前的空格
麻烦修改一下xsl文档
同样对 <table width="20%"  border="3" cellspacing="5" cellpadding="2">

解决方案 »

  1.   

    更正:xml文档在浏览器中显示‘DepName’值前面加2个空字符,或缩进2格,或保留字符前的空格
      

  2.   

    建義楼主把此貼放到Web XML、那里有XSL高手。help up only!
      

  3.   

    </DIV>
    <xsl:for-each select="Dep">
    <b><font color="blue" size="2">&nbsp;&nbsp;<xsl:value-of select="DepName"/></font></b>
    <DIV >
    <table width="20%" border="3" cellspacing="5" cellpadding="2">
    <tr>
    <xsl:for-each select="Worker">
    <td width="25%" height="20" align="center"><b><font color="#0066CC" size="2"><xsl:value-of select="WorkerName"/></font></b></td>
    </xsl:for-each>
    </tr>
    </table>
    </DIV>