以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 DTD/XML Schema 』  (http://bbs.xml.org.cn/list.asp?boardid=23)
----  测试xml文件时出现的问题,请各位帮忙看下  (http://bbs.xml.org.cn/dispbbs.asp?boardid=23&rootid=&id=10899)


--  作者:bigu
--  发布时间:10/11/2004 11:22:00 AM

--  测试xml文件时出现的问题,请各位帮忙看下
我在测试products.xml时出现了以下的提示:

[Fatal Error] products.dtd:3:27: White space is required before the attribute ty
pe in the declaration of attribute "{1}" for element "{0}".
org.xml.sax.SAXException: Stopping after fatal error: White space is required be
fore the attribute type in the declaration of attribute "{1}" for element "{0}".

以下是products.dtd文件:(此文件在xml writer 里检验了是个是良好的)

<!ELEMENT products (vendor)+>

<!ELEMENT vendor (vendor_name,advertisement,suite*,product*)>
<!ATTLIST vendor webvendor (full|partial)  'full'>

<!ELEMENT vendor_name (#PCDATA)>
...........................

请帮我解解疑,感谢!


--  作者:づ紫月サ
--  发布时间:10/11/2004 7:26:00 PM

--  
怎么没看出来啊~~~~~~~~~~~~
--  作者:づ紫月サ
--  发布时间:10/11/2004 7:37:00 PM

--  
我刚才用了一下 也没什么结果也~!!!!!
不知道是什么问题啦?
--  作者:moon1128
--  发布时间:10/20/2004 9:48:00 AM

--  
能不能提供详细的XML和DTD?
--  作者:网络白痴
--  发布时间:10/26/2004 2:21:00 PM

--  
小样,这个真有点 难度,回去问一下你的老师.
--  作者:lighthouse
--  发布时间:11/3/2004 9:04:00 PM

--  
嗯,没看出来
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
64.453ms