以文本方式查看主题 - 中文XML论坛 - 专业的XML技术讨论区 (http://bbs.xml.org.cn/index.asp) -- 『 DTD/XML Schema 』 (http://bbs.xml.org.cn/list.asp?boardid=23) ---- [求助]openxml4j+dom4j1.6.1+xml-api对.docx进行xsd验证 (http://bbs.xml.org.cn/dispbbs.asp?boardid=23&rootid=&id=71051) |
-- 作者:libaiyu -- 发布时间:12/31/2008 1:50:00 PM -- [求助]openxml4j+dom4j1.6.1+xml-api对.docx进行xsd验证 本人是这么做的,通过openxml4j读取.docx文件转化为xml文档格式,然后通过xml的SAXParser对它进行xsd验证,这些xsd文件就是ooxml schema的文件。可是在验证过程中出现如下错误: src-resolve: Cannot resolve the name 'm:EG_OMathMathElements' to a(n) 'group' component. src-resolve: Cannot resolve the name 'r:id' to a(n) 'attribute declaration' component. s4s-elt-invalid-content.1: The content of 'CT_Control' is invalid. Element 'attribute' is invalid, misplaced, or occurs too often. s4s-elt-invalid-content.1: The content of 'CT_Rel' is invalid. Element 'attribute' is invalid, misplaced, or occurs too often. s4s-elt-invalid-content.1: The content of 'CT_Hyperlink' is invalid. Element 'attribute' is invalid, misplaced, or occurs too often. src-resolve: Cannot resolve the name 'xml:space' to a(n) 'attribute declaration' component. s4s-elt-invalid-content.1: The content of 'CT_Text' is invalid. Element 'attribute' is invalid, misplaced, or occurs too often. s4s-elt-invalid-content.1: The content of 'CT_AltChunk' is invalid. Element 'attribute' is invalid, misplaced, or occurs too often. s4s-elt-invalid-content.1: The content of 'CT_SaveThroughXslt' is invalid. Element 'attribute' is invalid, misplaced, or occurs too often. src-resolve: Cannot resolve the name 'wp:anchor' to a(n) 'element declaration' component. src-resolve: Cannot resolve the name 'sl:schemaLibrary' to a(n) 'element declaration' component. 请求各方好友帮助,这主要是什么原因? |
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
60.547ms |