XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Joyce MallwitzSubject: Required attribute 'space' was not provided
Author: Joyce Mallwitz
Date: 27 Jan 2006 02:48 PM
I have created a Word Document( XX.Doc ) and did a SaveAs XML File(XX.XML). I opened XX.XML document in Stylus and chose to Creat Schema from XML Format. A schema was created. When I did a validation on the XX.XML document with the newly created schema. I get the following error.
Required attribute 'space' was not provided

What do you suggest I do to get a clean validation.

Thanks for your help.

Joyce M.

Postnext
Tony LavinioSubject: Required attribute 'space' was not provided
Author: Tony Lavinio
Date: 27 Jan 2006 03:06 PM
There could be any number of problems; to find them we'd need to see
the actual output from Word.
Each version of Word, and even depending on the patch level, will
produce different XML output.
And XML Schema generators can at best make a guess at the schema that
will match the XML document. It's quite possible to create XML documents
for which no XML schema can fully define, because the XML Schema language
does not provide support for all possible expressions of XML. So the
schema generators take a best 'guess' at matching.
Note also that since each different Word document uses a different
subset of the full product, such a schema may not work for all documents
created even with that version of Word.
Now, the newer versions do have an XML syntax for which Microsoft does
provide the schemas; those are available from Microsoft's web site.
If you want us to take a stab at it, please attach your XML document,
or email a copy to stylus-field-report (at) progress.com

Postnext
Joyce MallwitzSubject: Required attribute 'space' was not provided
Author: Joyce Mallwitz
Date: 27 Jan 2006 03:31 PM
Here is the XML Documents that I created a schema for. Thanks for any help.


Unknown9DA1D608F.xml
XML Document

Posttop
Tony LavinioSubject: Required attribute 'space' was not provided
Author: Tony Lavinio
Date: 27 Jan 2006 05:06 PM
Sadly, you've found a bug.

To generate schemas, we use a 3rd-party component called Trang.
For some reason, it insists on creating schemas for the two reserved
namespace prefixes, xml: and xsi:.

A work-around is to remove the xml:space, and any xsi: elements,
make the schemas (which will add back the proper xsi: element), and
then just add back the xml:space as it was.

I hope this helps.

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.