Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Office 2007 RibbonX (XML) Validation Office 2007 RibbonX (XML) ValidationTo: NULL Date: 9/4/2009 6:00:00 PM
Hello,
I think this is my first post in this group. I am a self-proclaimed idiot
when it comes to XML, so please be gentle.
The little that I do know about XML have been gathered in my novice
accomplishments using the Office 2007 CustomUI Editor (Editor) to write XML
that customizes the Microsoft Word Ribbon. The Editor has some significant
drawbacks from other editors (Find and Replace, Search, Column Mode) such as
UltraEdit.
The one thing that the Editor can do that others don't seem to do as well is
"validate" the XML written againts a file called customUI.xsd that comes
with the Editor. For example, if I had a line
<button idMso="FileOpen" size="gigantic" />
The Editor validator would alert on "gigantic" with the following error:
The size attribute is invalid. The value 'gigantic' is invalid according to
its datatype.
'http://schemas.microsoft.com/office/2006.01/customui:ST_SizeUI' - The
Enumeration Contraint Failed
I have opened customUI.xsd and it looks like other files that I have seen
that where called schemas. UltraEdit has this feature called "XMLlint"
which supposedly validates XML files against some criteria. It has about 25
different check options and a "Parse" command. The options closest to a
schema that I see is "Use a WC3XML schema for validation" and then a text
field to enter the path of the file.
When I run the XMLlint validator, I am getting a bunch of reported errors
that are not reported using the CustomUI Editor and the one important errro
("gigantic") is not reported at all.
Can anyone give me any help or ideas on how a Office customUI file is
validated when using a 3rd party XML editor like UltrEdit?
Thanks.
--
Greg Maxey
See my web site http://gregmaxey.mvps.org
for an eclectic collection of Word Tips.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
