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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1188)
- Stylus Studio Technical Forum (14584)
-> + Exposing xquery as webservice ... (2)
-> + Syntax Identifier (2)
-> + Saving a Converted XML as an X... (5)
-> + Output document cannot be pars... (4)
-> - Archiving output from conversi... (1)
-> + EDIFACT guideline from Stylus ... (3)
-> + CSV file putting all the data ... (5)
-> + Can't install Home version 64b... (5)
-> + presale - Can I covers this sc... (5)
-> + Problem with UNB (5)
-> + Splitting EDIFACT files pipeli... (4)
-> + Problem with SAXO processor - ... (5)
-> + PDF Format Help (4)
-> + License check unreliable (2)
-> - XML related issue (1)
-> + Need help regarding pipeline o... (2)
-> + Error converting XML to EDIFAC... (4)
-> + XSLT Profiling for XSLT 1.0 s... (2)
-> + Grouping (2)
-> + Best Practice for Pipeline err... (2)
-- [1-20] [21-40] [41-60] Next
+ Website Feedback (247)
+ XSLT Help and Discussion (7617)
+ XQuery Help and Discussion (1971)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
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.

   
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.