|
next
|
 Subject: How Come Stylus Studio Fails To Validate This Derived Date According to xsi;type specification and not the base type? Author: Thomas Richburg Date: 06 Aug 2010 04:33 PM
|
Thanks for your rapid response. I followed your advice and checked the
validity of the document against each of your supported validators. They all reported no errors except your default validator Xerces, which still reports eight. I still don't understand the reasons for the error when reading the W3C Specifications. Can you explain these errors from an XML Schema Validation point of view?
Errors received:
Validating DerivedTypeTesterDoc.xml...
file:///c:/TJRWork/VisualStudio2008Projects/TheFinalFrontier/OasisApplicationDevelopementServices/OasisApplicationScriptMngr/DerivedTypeTesterDoc.xml:5,111: attribute 'typeID' is not declared for element 'DerivedTypeTester'
file:///c:/TJRWork/VisualStudio2008Projects/TheFinalFrontier/OasisApplicationDevelopementServices/OasisApplicationScriptMngr/DerivedTypeTesterDoc.xml:5,111: attribute 'InstName' is not declared for element 'DerivedTypeTester'
file:///c:/TJRWork/VisualStudio2008Projects/TheFinalFrontier/OasisApplicationDevelopementServices/OasisApplicationScriptMngr/DerivedTypeTesterDoc.xml:6,3: no character data is allowed by content model
file:///c:/TJRWork/VisualStudio2008Projects/TheFinalFrontier/OasisApplicationDevelopementServices/OasisApplicationScriptMngr/DerivedTypeTesterDoc.xml:6,15: no declaration found for element 'AnElement'
file:///c:/TJRWork/VisualStudio2008Projects/TheFinalFrontier/OasisApplicationDevelopementServices/OasisApplicationScriptMngr/DerivedTypeTesterDoc.xml:7,3: no character data is allowed by content model
file:///c:/TJRWork/VisualStudio2008Projects/TheFinalFrontier/OasisApplicationDevelopementServices/OasisApplicationScriptMngr/DerivedTypeTesterDoc.xml:7,19: no declaration found for element 'AnotherElement'
file:///c:/TJRWork/VisualStudio2008Projects/TheFinalFrontier/OasisApplicationDevelopementServices/OasisApplicationScriptMngr/DerivedTypeTesterDoc.xml:8,1: no character data is allowed by content model
file:///c:/TJRWork/VisualStudio2008Projects/TheFinalFrontier/OasisApplicationDevelopementServices/OasisApplicationScriptMngr/DerivedTypeTesterDoc.xml:8,25: element 'AnElement' is not allowed for content model 'EMPTY'
The XML document DerivedTypeTesterDoc.xml is NOT valid (8 errors)
xsi:type support for specifying which derived type in the hiearchy of derived types is required when specifying the base type in the XML document. Part two of my post ask why the discrepancy. This happens to be a very important Schema feature that we use quite a bit. Is there a problem with Stylus Studio's internal Validator?
Sincerely,
Thomas J. Richburg
|
|
|