Word 2010 xml验证 [英] Word 2010 xml validation

查看:126
本文介绍了Word 2010 xml验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在尝试使用xml架构验证单词2010文档及其失败。


我得到了验证时出现以下错误:


我在b
验证时收到以下错误。

" cvc-complex-type.3.2.1:不允许属性(没有通配符
允许
):
Ignorable @ http://schemas.openxmlformats.org/markup-compatibility/2006

元素中的

document @ http://schemas.openxmlformats.org/wordprocessingml/2006/main
"


<你能帮我解决这个问题吗?


谢谢,


Ashok


 


 


Ashok Ambrose

解决方案

Hello Ashok,


您似乎使用了< document>缺少属性的元素 - 由"Ignorable"引用隐含的


您在"Open Sppecifications Developer Forum"的一般帖子中以更一般的方式表达了对此的答案。 ;在
的主题中
http://social.msdn.microsoft.com/Forums/en-US/os_openXML-ecma/thread/adbe4de8-10a0-47ca-90ea-fbe5efffe947


主持人,马克米勒与这个问题和其他人的具体细节。本文发布于"Microsoft Office Developers Forum"。这是一个由使用
Microsoft Visual Studio修改或改编的Word和其他Office产品的团队提供服务。这里的基本问题更多地涉及您对开放规范开发人员论坛的帖子,因为它与验证XML有关


在您上一篇开放规范开发者论坛的帖子中,您询问了哪里可以获得完整的Open Office XML架构的规范。




 网站
http://standards.iso.org/ittf/PubliclyAvailableStandards/index.html
 

包含所有部分的索引架构。参赛作品以ISO / IEC 29500-1-2008电子插页开头。


  

链接ISO / IEC 29500-1-2008 Electronic插入内容与"第1部分基础知识和标记语言参考"相同。文档。




接下来的5个条目包含指向Microsoft Office 2008文档标准部分和Microsoft Office 2010修订的链接。


这些构成完整架构的链接以及对Microsoft Office 2008 XML和Microsoft Office 2010 XML的引用。


您没有说明您使用的是什么工具验证您的XML。有一个名为XMLSpy的Microsoft Visual Studio 2008加载项。您还可以以
的价格获得30天的XMLSpy免费试用版 http://www.altova.com/xmlspy.htm


该工具具有导致无法验证的问题的上下文解释。


HTH





Hi,

I am trying to validate a word 2010 document with the xml schema and its failing.

I get the following error while validating:

I get the following error while
validation.
" cvc-complex-type.3.2.1: Attribute not allowed (no wildcards
allowed): Ignorable@http://schemas.openxmlformats.org/markup-compatibility/2006
in element document@http://schemas.openxmlformats.org/wordprocessingml/2006/main"

Could you please help me on this ?

Thanks,

Ashok

 

 


Ashok Ambrose

解决方案

Hello Ashok,

It appears that you have used a <document> element with a missing attribute - implied by the reference to "Ignorable"

You have persued the answer to this in a more general fashion in your general post to the "Open Sppecifications Developer Forum" in thread at http://social.msdn.microsoft.com/Forums/en-US/os_openXML-ecma/thread/adbe4de8-10a0-47ca-90ea-fbe5efffe947

The moderator there, Mark Miller works with the specifics of this issue and others. The present post is to the "Microsoft Office Developers Forum," which is a served by a team that works with Word and other Office products when modified or adapted using Microsoft Visual Studio. The underlying issue here relates more to your posts to the Open Specifications Developer Forum as it pertains to validating XML

In your last post to the Open Specifications Developer Forum you asked where you can get the complete specifications for the Open Office XML schema.


 The site http://standards.iso.org/ittf/PubliclyAvailableStandards/index.html 
contains the index to all of the pieces of the schema. The entries start with ISO/IEC 29500-1-2008 Electronic Inserts.

  
The link ISO/IEC 29500-1-2008 Electronic Inserts is to the "Part 1 Fundamentals and Markup Language Reference" document.


The next 5 entries contain links to the pieces of the standard for Microsoft Office 2008 documents and the ammendments for Microsoft Office 2010.

Those constitute links to the complete schema and references to Microsoft Office 2008 XML and Microsoft Office 2010 XML.

You don't say what tool you're using to validate your XML. There is an add-in for Microsoft Visual Studio 2008 named XMLSpy. You can also get a 30-day free trial of XMLSpy at http://www.altova.com/xmlspy.htm.

That tool has contextual explanations of the problem causing the failure to validate.

HTH



这篇关于Word 2010 xml验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆