I noticed an oddity when converting DTDs to Schemas using XMLSPY. I added an unparsed content entity (image) as described on pages 62 -65 of our XML book. I used the ENTITY/NOTATION/ELEMENT/ATTLIST sequence as described in figure 4.17 on page 65. The DTD validated just fine. When I converted it to Schema using XMLSPY, one of the resulting lines in the Schema was the following:
<xs:notation name="jpeg" system="image/jpeg"/>
For some reason, validating the Schema failed until I changed this to:
<xs:notation name="jpeg" system="image/jpeg"></xs:notation>
Has anyone else noticed anything similar?
Perhaps it is just a typo when you posted it to the blog, but I believe that instead of this:
<xs:notation name="jpeg" system="image/jpeg"/>
it should be this:
<xs:notation name="jpeg" system="image/jpeg" />
Notice the space between the last attribute and the ending slash. Probably a bug in XMLSpy. On the other hand, XMLSpy does not guarantee that when you convert, the resulting document will be valid. See url below.
http://www.xmlspy.com/support_faq_ide_schema.html#q5_schema
-Jon
Posted by: JonathanD on December 27, 2002 01:50 PM