以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 SVG/GML/VRML/X3D/XAML 』  (http://bbs.xml.org.cn/list.asp?boardid=21)
----  请高手帮助,缺少XMLStyle.documentElement'怎么办  (http://bbs.xml.org.cn/dispbbs.asp?boardid=21&rootid=&id=19790)


--  作者:blaze123
--  发布时间:6/20/2005 6:43:00 PM

--  请高手帮助,缺少XMLStyle.documentElement'怎么办
我从动网下载了dvbbs7.1运行发现有这个错误:缺少对象: 'XMLStyle.documentElement'

我的论坛模板制作了95%了,就是首页的论坛版块的XML部分模板不知道怎么修改.我按XML格式加的图片边框但是始终出错.

就是这部分,按XML格式加了图片边框在预览中能看到图片边框加上了,一按保存修改就出错.错误类型:
Microsoft VBScript 运行时错误 (0x800A01A8)
缺少对象: 'XMLStyle.documentElement'


望高手指点! QQ:122650524  MSN:YILUKA365@HOTMAIL.COM

<?xml version="1.0" encoding="gb2312"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:output method="html" indent="yes" version="4.0"/>
  <!--
Copyright (C) 2004,2005 AspSky.Net. All rights reserved.
Written by dvbbs.net Lao Mi
Web: http://www.aspsky.net/,http://www.dvbbs.net/
Email: eway@aspsky.net
-->
<xsl:variable name="tr1"><![CDATA[<tr>]]></xsl:variable>
<xsl:variable name="tr2"><![CDATA[</tr>]]></xsl:variable>
<xsl:variable name="table"><![CDATA[<table cellspacing="2" cellpadding="2" width="100%" border="0">
<tr>
    <td width="100%"  colspan="3">&nbsp; </td>
  </tr>
<tr>
    <td width="25%" valign="middle">&nbsp;</td>
                
    <td width="30%" valign="middle">&nbsp;</td>
                
    <td width="45%" vAlign="middle">&nbsp; </td>
</tr>
<tr>
    <td class="tablebody2" height="20" width=* colspan="3">&nbsp;</td>
</tr>
</table>]]></xsl:variable>
<xsl:template xmlns:xsl="http://www.w3.org/1999/XSL/Transform" match="/">
  <xsl:apply-templates select="BoardList"/>
</xsl:template>
<xsl:template xmlns:xsl="http://www.w3.org/1999/XSL/Transform" match="BoardList">
  <xsl:for-each select="board">
  <table cellspacing="1" cellpadding="0" align="center" class="tableBorder1">
     <tr>
       <th align="left"><xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text><span id="titlepic_{@boardid}">
       <a target="hiddenframe">
       <xsl:choose>
      <xsl:when test="@mode!='0'"><xsl:attribute name="href">cookies.asp?action=setlistmod&amp;thisvalue=0&amp;id=<xsl:value-of select="@boardid"/></xsl:attribute>
        <img alt="切换到列表模式" src="Skins/Default/plus.gif" border="0"/>
        </xsl:when>
        <xsl:otherwise>
        <xsl:attribute name="href">cookies.asp?action=setlistmod&amp;thisvalue=1&amp;id=<xsl:value-of select="@boardid"/>
        </xsl:attribute>
        <img alt="切换到简洁模式" src="Skins/Default/nofollow.gif" border="0"/>
        </xsl:otherwise>
        </xsl:choose>
       </a></span>
       <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
       <xsl:choose>
       <xsl:when test="/BoardList/@boardid='0'">
       <a href="index.asp?boardid={@boardid}" title="进入本分类论坛"><xsl:value-of select="@boardtype" disable-output-escaping="yes" /></a>
       </xsl:when>
       <xsl:otherwise><xsl:value-of select="@boardtype" disable-output-escaping="yes" />-论坛列表</xsl:otherwise>
       </xsl:choose>
       </th>
    </tr>
</table>
  <xsl:choose>
   <xsl:when test="@mode!='1'"><table cellspacing="1" cellpadding="0" align="center" class="tableBorder1">
   <xsl:for-each select="board">
   <tr>
        <td valign="middle" width="46" align="center" class="tablebody1">
        <img border="0"><xsl:choose>
        <xsl:when test="@checkout=1">
         <xsl:attribute name="title">认证论坛,<xsl:choose>
         <xsl:when test="@hasnew=1">有新贴子</xsl:when>
         <xsl:otherwise>无新贴子</xsl:otherwise>
         </xsl:choose>
         </xsl:attribute>
         <xsl:attribute name="src"><xsl:value-of select="$pic_2"/></xsl:attribute>
        </xsl:when>
        <xsl:otherwise>
         <xsl:choose>
         <xsl:when test="@hasnew=1"><xsl:attribute name="alt">开放的论坛,有新贴子</xsl:attribute>
         <xsl:attribute name="src"><xsl:value-of select="$pic_1"/></xsl:attribute>
         </xsl:when>
         <xsl:otherwise><xsl:attribute name="alt">开放的论坛,无新贴子</xsl:attribute>
         <xsl:attribute name="src"><xsl:value-of select="$pic_0"/></xsl:attribute>
         </xsl:otherwise>
         </xsl:choose>
        </xsl:otherwise>
        </xsl:choose></img>
        </td>
    <td valign="top" width="*" class="tablebody1">
    <table cellSpacing="0" cellPadding="2" width="100%" border="0">
     <tr>
         <td class="tablebody1" width="*" height="20"><a href="index.asp?boardid={@boardid}">
      <xsl:if test="count(board)!='0'"><xsl:attribute name="alt">有<xsl:value-of select="count(board)"/>个下属论坛</xsl:attribute>
      </xsl:if>
               <xsl:value-of select="@boardtype" disable-output-escaping="yes"/></a>
             <xsl:if test="count(board)!='0'"><a><xsl:attribute name="onmouseover">showmenu(event,BoardJumpList(<xsl:value-of select="@boardid"/>),0);</xsl:attribute>(<xsl:value-of select="count(board)"/>)</a></xsl:if>
               </td>
               <td width="40" rowspan="2" align="center" class="tablebody1"> <xsl:if test="@indeximg!=''">
                <table align="left">
        <tr>
         <td>
         
          <a href="index.asp?boardid={@boardid}"><img border="0" src="{@indeximg}" alt=""/></a>
         
         </td>
         <td width="20">
         </td>
        </tr>
       </table>
       </xsl:if>
       </td>
               <td width="240" rowspan="2" class="tablebody1">
             <xsl:choose>
              <xsl:when test="@checkout='1'">
              <div></div>
              <div>认证论坛,请认证用户进入浏览</div>
              <div></div>
              </xsl:when>
              <xsl:otherwise>
               <div>主题: <a href="Dispbbs.asp?boardid={@lastpost7}&amp;ID={@lastpost6}&amp;replyID={@lastpost1}&amp;skin=1"><xsl:value-of select="@lastpost3"/></a></div>
               <div>发贴: <a href="dispuser.asp?id={@lastpost5}"><xsl:value-of select="@lastpost0"/></a></div>
               <div>日期: <xsl:value-of select="@lastpost2"/> <a href="Dispbbs.asp?boardid={@lastpost7}&amp;ID={@lastpost6}&amp;replyID={@lastpost1}&amp;skin=1"><img border="0" src="Skins/Default/lastpost.gif" title="主题:{@lastpost3}"/></a></div>
              </xsl:otherwise>
               </xsl:choose>
               </td>
     </tr>
     <tr>
              <td width="*">
                <font face="Arial"><img alt="" src="Skins/Default/Forum_readme.gif" align="middle"/><xsl:value-of select="@readme" disable-output-escaping="yes"/></font> </td>
     </tr>
     <tr>
      <td class="tablebody2" height="20" width="*">版主:<xsl:for-each select="boardmasterlist"><xsl:if test="5 &gt; position()">
          <a  href="Dispuser.asp?name={@urlencode}" title="查看版主 {@master} 的资料" target="_blank"><xsl:value-of select="@master"/></a><xsl:text disable-output-escaping="yes">&amp;nbsp; </xsl:text>
          </xsl:if>
       <xsl:if test="last() >4 and position()=last()"><font color="gray">More</font></xsl:if>
      </xsl:for-each>
      </td>
      <td width="40" align="center" class="tablebody2"> </td>
      <td valign="middle" class="tablebody2" width="240"><table width="100%" border="0">
      <tr>
       <td width="30%" valign="middle" nowrap="nowrap"><img src="Skins/Default/Forum_today.gif"  alt="今日发贴数" align="absmiddle"/> <font color="red"><xsl:value-of select="@todaynum"/></font></td>
       <td width="30%" valign="middle" nowrap="nowrap"><img src="Skins/Default/forum_topic.gif" alt="主题贴数" border="0"  align="absmiddle"/> <xsl:value-of select="@topicnum"/></td>
       <td width="40%" vAlign="middle" nowrap="nowrap"><img src="Skins/Default/Forum_post.gif" alt="发贴总数" border="0" align="absmiddle" /> <xsl:value-of select="@postnum"/></td>
      </tr>
      </table>
      </td>
     </tr>
    </table>
    </td>
   </tr>
   </xsl:for-each>
</table><br/>
</xsl:when>
   <xsl:otherwise><xsl:variable name="simplenesswidth"><xsl:value-of select="floor(1 div (@simplenessCount) * 100) " />%</xsl:variable><table cellspacing="1" cellpadding="0" align="center" class="tableBorder1">
    <xsl:for-each select="board">
    <xsl:if test="position()-1 mod (../@simplenessCount)='0'">
     <xsl:value-of select="$tr1" disable-output-escaping="yes"/>
    </xsl:if>
    <td class="tablebody1">
     <xsl:attribute name="width"><xsl:value-of select="$simplenesswidth" /></xsl:attribute>
     <table cellspacing="2" cellPadding="2" width="100%" border="0">
      <tr>
       <td width="100%" colspan="3">
       <xsl:attribute name="title"><xsl:value-of select="@readme" /></xsl:attribute>
        <a>
             <xsl:attribute name="href">index.asp?boardid=<xsl:value-of select="@boardid"/>
      </xsl:attribute>
      <xsl:if test="count(board)!='0'">
      <xsl:attribute name="title">有<xsl:value-of select="count(board)"/>个下属论坛</xsl:attribute>
      </xsl:if>
               <xsl:value-of select="@boardtype" disable-output-escaping="yes"/></a>
             <xsl:if test="count(board)!='0'"><a><xsl:attribute name="onmouseover">showmenu(event,BoardJumpList(<xsl:value-of select="@boardid"/>),0);</xsl:attribute>(<xsl:value-of select="count(board)"/>)</a></xsl:if></td>
      </tr>
      <tr>
       <td width="30%" valign="middle" nowrap="nowrap"><img src="Skins/Default/Forum_today.gif"  alt="今日发贴数" align="absmiddle"/> <font color="red"><xsl:value-of select="@todaynum"/></font></td>
       <td width="30%" valign="middle" nowrap="nowrap"><img src="Skins/Default/forum_topic.gif" alt="主题贴数" border="0"  align="absmiddle"/> <xsl:value-of select="@topicnum"/></td>
       <td width="40%" vAlign="middle" nowrap="nowrap"><img src="Skins/Default/Forum_post.gif" alt="发贴总数" border="0" align="absmiddle" /> <xsl:value-of select="@postnum"/></td>
      </tr>
      <tr>
          <td class="tablebody2" height="20" width="*" colspan="3">版主:<xsl:for-each select="boardmasterlist"><xsl:if test="3 &gt; position()">
          <a  href="Dispuser.asp?name={@urlencode}" title="查看版主 {@master} 的资料" target="_blank"><xsl:value-of select="@master"/></a> <xsl:text disable-output-escaping="yes">&amp;nbsp; </xsl:text>
          </xsl:if>
       <xsl:if test="last() >2 and position()=last()"><font color="gray">More</font></xsl:if>
      </xsl:for-each>
      
      </td>
        </tr>
     </table>
    </td>
    <xsl:if test="position() mod (../@simplenessCount)=0 or position()=last()">
     <xsl:if test="(position() mod (../@simplenessCount))!='0'">
      <td class="tablebody1" colspan="{../@simplenessCount}">
       <xsl:value-of select="$table" disable-output-escaping="yes"/>
      </td>
     </xsl:if>
     <xsl:value-of select="$tr2" disable-output-escaping="yes"/>
    </xsl:if>
   </xsl:for-each>
   </table><br/>
   </xsl:otherwise>
   </xsl:choose>
</xsl:for-each>
<xsl:if test="/BoardList/@boardid='0'">
<xsl:value-of select="$links" disable-output-escaping="yes"/>
</xsl:if>
</xsl:template>
</xsl:stylesheet>


--  作者:blaze123
--  发布时间:6/20/2005 6:50:00 PM

--  
各位指点下啊,急死了,谢了
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
187.500ms