另外,我用的是IE6。Windows 2000 Professional. Resin 2.0.4

解决方案 »

  1.   

    我刚刚开始学习XML,所以很迷惑。
      

  2.   

    change
    <? xml:stylesheet  type='text/xsl'  href='UserList.xsl'?>  
    ==>
    <? xml-stylesheet  type='text/xsl'  href='UserList.xsl'?>  and try this UserList.xsl:<?xml version="1.0"?> 
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
    <xsl:output method="html" indent="yes" /><xsl:template match="/">   
    <html> 
      <body>
    Operator:<xsl:value-of select="UserList/Operator" /><br />
    <table>
    <tr><th>Name</th><th>Age</th></tr>
    <xsl:apply-templates select="UserList/Users/User" />
    </table>
      </body>
    </html>
    </xsl:template> <xsl:template match="User">   
    <tr>
    <td><xsl:value-of select="UserName" /></td>
    <td><xsl:value-of select="UserAge" /></td>
    </tr>
    </xsl:template> </xsl:stylesheet>  
      

  3.   

    you need to remove the space after "<". Why did CSDN ever need to add a space there? weird
      

  4.   

    呵呵,谢谢 karma(无为) 。问题解决了。