以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 SVG/GML/VRML/X3D/XAML 』  (http://bbs.xml.org.cn/list.asp?boardid=21)
----  急!遇到一个问题,为什么href传多个参数会报“没有排的:行217,栏75”错误  (http://bbs.xml.org.cn/dispbbs.asp?boardid=21&rootid=&id=20062)


--  作者:acccn
--  发布时间:7/1/2005 1:41:00 PM

--  急!遇到一个问题,为什么href传多个参数会报“没有排的:行217,栏75”错误
<a xlink:href="http://Display.jsp?par1='aa'&Id='12345'">
<rect x="126" y="340" width="14" height="7" fill="black" fill-opacity="0.0" onmouseover="ToolTip_Activate(evt,'832.68')"  onmouseout="ToolTip_Deactivate(evt)"  />
</a>

其中href="http://Display.jsp?par1='aa'&Id='12345'报错,如果换成http://Display.jsp?par1='aa'就没问题,加上Id='12345'就有错。

刚刚接触SVG,一头雾水啊,求助各位大虾啦


--  作者:acccn
--  发布时间:7/1/2005 1:43:00 PM

--  

<a xlink:href="http://Display2D.jsp?par1='drill'&Id='12345'">
<rect x="126" y="340" width="14" height="7" fill="black" fill-opacity="0.0" onmouseover="ToolTip_Activate(evt,'832.68')"  onmouseout="ToolTip_Deactivate(evt)"  />
</a>
--  作者:acccn
--  发布时间:7/1/2005 1:45:00 PM

--  
怎么出乱码?

再试一次

<a xlink:href="http://Display2D.jsp?par1=aa&Id=123">
<rect x="126" y="340" width="14" height="7" fill="black" fill-opacity="0.0" onmouseover="ToolTip_Activate(evt,'832.68')"  onmouseout="ToolTip_Deactivate(evt)"  />
</a>


--  作者:acccn
--  发布时间:7/1/2005 1:47:00 PM

--  
其中href="http://Display2D.jsp?par1=aa&Id=123"
报错"没有排的:行217,栏75",如果换成http://Display.jsp?par1=aa就没问题,加上Id='12345'就有错。

求助各位大虾


--  作者:acccn
--  发布时间:7/1/2005 3:52:00 PM

--  
偶知道了,&在xml里是转义字符
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
31.250ms