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 (1192)
- Stylus Studio Technical Forum (14621)
-> - Stylus Studio - Registrar en o... (1)
-> + Stylus Studio - Registrar en o... (2)
-> + Can a pipeline send a file by ... (2)
-> + After Updateing WIN10 to WIN11... (12)
-> + Where do I add the custom java... (3)
-> + Where is the Diagram tab? (5)
-> + Applying XSLT to Word DOCX/XML (2)
-> - CSV conversion via ConvertToXM... (1)
-> + Text symbols in SS not same as... (4)
-> + Exposing xquery as webservice ... (6)
-> + 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)
-- [1-20] [21-40] [41-60] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2016)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
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

   
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.