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
Robert LeifSubject: XHTML with multiple schemas
Author: Robert Leif
Date: 12 Sep 2006 08:20 PM
Bob Leif
In an effort to find a decent environment to develop XForms, the first step is to be able to work in xhtml with multiple schemas. I first started with a simple xhtml example that had a doctype. This validated with Stylus Studio. I then added the schemas that are required for XForms. My 50 error messages seemed to all refer to Stylus Studio libraries. I also tested this both xhtml documents with XMLSpy, which produced an entirely different, error message, which will as usual only have a meaning after the problem has been solved.

The first few Stylus Studio error messages were:
Validating Xform_Test.html...
file:///c:/Program Files/Stylus Studio XML Professional Edition/bin//Catalogs/java.sun.com/datatypes.dtd:99,7: warning: Attribute 'id' has already been declared for element 'xs:simpleType'
file:///c:/Program Files/Stylus Studio XML Professional Edition/bin//Catalogs/java.sun.com/datatypes.dtd:122,7: warning: Attribute 'id' has already been declared for element 'xs:list'
file:///c:/Program Files/Stylus Studio XML Professional Edition/bin//Catalogs/java.sun.com/datatypes.dtd:130,7: warning: Attribute 'id' has already been declared for element 'xs:union'

Too many errors: validation canceled

The XML document Xform_Test.html is NOT valid (50 errors)

P.S. Besides your error messages usually being meaningful, this report is much more user friendly than that of your competitor's


UnknownXform_Test.html
xhtml file with multiple schemas

UnknownXhtml_Demo.html
xhtml file whicht validates.

Unknowntest.css
css file

UnknownXForms-Schema.xsd
top level schema

Unknownxml-events.xsd
second level schema

Unknownxml-events-attribs.xsd
Third level schema

Posttop
Ivan PedruzziSubject: XHTML with multiple schemas
Author: Ivan Pedruzzi
Date: 13 Sep 2006 10:39 PM

Robert,

You are trying to validate a "compound" document (XHTML + XForm) using two schemata.

The problem is that xhtml1-strict.dtd describes XHTML but doesn't know anything about XForm and XForms-Schema.xsd describes an XForm but doesn't know anything about XHTML.

I believe you will need to use a special tool for this task.

See Micah's XForm validator
http://www-128.ibm.com/developerworks/library/x-xfvalid.html
http://xformsinstitute.com/validator/

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

 
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.