Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Office 2007 RibbonX (XML) Validation

From: "Greg Maxey" <gmaxey@--------------------.-------------->
To: 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.




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent