论坛's Archiver

slime 发表于 2009-4-4 09:39

我的XML/XSLT+JQUERY在FIREFOX下出错

[i=s] 本帖最后由 slime 于 2009-4-4 09:40 编辑 [/i]

我的代码在IE下是好的,可是在firefox下jquery竟然报错了,请帮忙看一下,谢谢。
XML是部分在PHP下生成的:[code]
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="templates/normal/index.xsl" ?>
<root>
<module id="system" title="系统设置">
  <controller module="system" id="setting" title="基本设置"/>
  <controller module="system" id="users" title="用户管理"/>
  <controller module="system" id="helper" title="使用帮助"/>
  <controller module="system" id="about" title="关于系统"/>
</module>
<module id="sheBao" title="数据管理">
  <controller module="sheBao" id="company" title="企业管理"/>
  <controller module="sheBao" id="companyType" title="企业类型管理"/>
  <controller module="sheBao" id="canBaoGuanLi" title="参保情况管理"/>
  <controller module="sheBao" id="canBaoLiuLan" title="参保情况浏览"/>
  <controller module="sheBao" id="gongShangGuanLi" title="工伤数据管理"/>
  <controller module="sheBao" id="gongShangLiuLan" title="工伤数据浏览"/>
  <controller module="sheBao" id="qianJiaoGuanLi" title="基金欠缴数据管理"/>
  <controller module="sheBao" id="qianJiaoLiuLan" title="基金欠缴 数据浏览"/>
  <controller module="sheBao" id="zhengDiGuanLi" title="征地人员数据管理"/>
  <controller module="sheBao" id="zhengDiLiuLan" title="征地人员数据浏览"/>
</module>
<realPath><rootUrl>http://127.0.0.1:89</rootUrl><templateUrl>http://127.0.0.1:89/templates/normal</templateUrl></realPath></root>
[/code]
XSL是这么写的:
[code]
<?xml version='1.0' encoding='UTF-8'?>
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:output method="xml" encoding="UTF-8" media-type="text/xml" />
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>XX管理系统</title>
<link href="/templates/normal/media/admin.css" rel="stylesheet" type="text/css" />
<link href="/media/jquery-ui-1.7.custom.css" rel="stylesheet" type="text/css" />
<script language="Javascript" type="text/javascript" src="{/root/realPath/rootUrl}/scripts/jquery.js"></script>
<script language="Javascript" type="text/javascript" src="{/root/realPath/rootUrl}/scripts/jquery-ui-1.7.custom.min.js"></script>
<script language="Javascript" type="text/javascript" src="{/root/realPath/templateUrl}/scripts/admin.js"></script>
</head>
<body>
<div id='head'>
<div id='logo'>
     <img src='/templates/normal/media/log.jpg'/><img src='/templates/normal/media/zi.jpg'/>
    </div>
</div>
<div id='toolBar'>
<input id='toggleMenu' type="button" class="input" value="显示/关闭工具栏" />
</div>
<div id='main'>
<div id='menu'>
     <div id="accordionMenu">
     <xsl:for-each select='root/module'>
         <h3><a href="#"><xsl:value-of select='@title'/></a></h3>
            <div>
            <xsl:for-each select='controller'>
             <div class='controller'><a href='#'><xsl:value-of select='@title'/></a></div>
            </xsl:for-each>
            </div>
        </xsl:for-each>  
        </div>
    </div>
    <div id='content'>
    welcome
    </div>
</div>
<div id='bottom'></div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
[/code]

slime 发表于 2009-4-4 11:40

出错提示如图

Meteor 发表于 2009-10-30 11:41

[quote]出错提示如图
[size=2][color=#999999]slime 发表于 2009-4-4 11:40[/color] [url=http://board.mozest.com/redirect.php?goto=findpost&pid=175179&ptid=29335][img]http://board.mozest.com/images/common/back.gif[/img][/url][/size][/quote]
出错信息很详细
Jquery里面的那些行出错了

页: [1]

© 2004-2009 Mozest.com