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)
-> + startup fault (2)
-> + xsd sequence question (5)
-> + Licence authentication failed ... (3)
-> + .NET API for the X12 To XML Ad... (6)
-> + data in tabular format (2)
-> + How to convert the xml String ... (4)
-> + SS Schema Validation misses an... (2)
-> + Problem in converting EDI file... (2)
-> + Generating image from XML and ... (2)
-> + Auto Schema builder is not cre... (3)
-> + XML/SQL update more tables (2)
-> + Default toolbar blocked (3)
-> + Stylus vs Altova Mapforce - St... (4)
-> + Problem with namespace while v... (3)
-> + Web Service Call - "unqualifie... (3)
-> + XML to SQL Server 2005 (2)
-> - XHTML with multiple schemas (2)
-> ->XHTML with multiple schem...
-> + Compare Stylus Studio with OBO... (2)
-> + Deploying java app using deplo... (3)
-> + Validating XML through Schema (3)
-- Previous [1981-2000] [2001-2020] [2021-2040] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2017)
+ 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.