<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin-top:0in;
        margin-right:0in;
        margin-bottom:6.0pt;
        margin-left:0in;
        text-indent:.25in;
        line-height:125%;
        font-size:10.0pt;
        font-family:"Times New Roman","serif";}
h1
        {mso-style-priority:9;
        mso-style-link:"Heading 1 Char";
        margin-top:24.0pt;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:0in;
        margin-bottom:.0001pt;
        text-indent:.25in;
        line-height:125%;
        page-break-after:avoid;
        font-size:14.0pt;
        font-family:"Cambria","serif";
        color:#365F91;}
h2
        {mso-style-priority:9;
        mso-style-link:"Heading 2 Char";
        margin:0in;
        margin-bottom:.0001pt;
        text-indent:.25in;
        font-size:12.0pt;
        font-family:"Calibri","sans-serif";}
h3
        {mso-style-priority:9;
        mso-style-link:"Heading 3 Char";
        margin-top:12.0pt;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.3in;
        margin-bottom:.0001pt;
        line-height:150%;
        font-size:12.0pt;
        font-family:"Cambria","serif";
        font-style:italic;}
p.MsoCaption, li.MsoCaption, div.MsoCaption
        {mso-style-priority:35;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:10.0pt;
        margin-left:0in;
        text-indent:.25in;
        line-height:125%;
        font-size:10.0pt;
        font-family:"Times New Roman","serif";
        font-weight:bold;}
p.MsoListNumber, li.MsoListNumber, div.MsoListNumber
        {mso-style-priority:99;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.25in;
        margin-bottom:.0001pt;
        text-indent:-.25in;
        line-height:120%;
        mso-list:l0 level1 lfo5;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:ZH-CN;}
p.MsoTitle, li.MsoTitle, div.MsoTitle
        {mso-style-priority:10;
        mso-style-link:"Title Char";
        margin-top:0in;
        margin-right:0in;
        margin-bottom:6.0pt;
        margin-left:0in;
        text-align:center;
        font-size:16.0pt;
        font-family:"Cambria","serif";
        letter-spacing:.5pt;
        font-weight:bold;
        font-style:italic;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        text-indent:.25in;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        text-indent:.25in;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing
        {mso-style-priority:1;
        margin:0in;
        margin-bottom:.0001pt;
        mso-add-space:auto;
        font-size:10.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:ZH-CN;}
p.MsoNoSpacingCxSpFirst, li.MsoNoSpacingCxSpFirst, div.MsoNoSpacingCxSpFirst
        {mso-style-priority:1;
        mso-style-type:export-only;
        margin:0in;
        margin-bottom:.0001pt;
        mso-add-space:auto;
        font-size:10.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:ZH-CN;}
p.MsoNoSpacingCxSpMiddle, li.MsoNoSpacingCxSpMiddle, div.MsoNoSpacingCxSpMiddle
        {mso-style-priority:1;
        mso-style-type:export-only;
        margin:0in;
        margin-bottom:.0001pt;
        mso-add-space:auto;
        font-size:10.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:ZH-CN;}
p.MsoNoSpacingCxSpLast, li.MsoNoSpacingCxSpLast, div.MsoNoSpacingCxSpLast
        {mso-style-priority:1;
        mso-style-type:export-only;
        margin:0in;
        margin-bottom:.0001pt;
        mso-add-space:auto;
        font-size:10.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:ZH-CN;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:6.0pt;
        margin-left:0in;
        text-indent:.25in;
        line-height:12.05pt;
        text-autospace:none;
        font-size:12.0pt;
        font-family:"Calibri","sans-serif";}
p.MsoQuote, li.MsoQuote, div.MsoQuote
        {mso-style-priority:29;
        mso-style-link:"Quote Char";
        margin-top:0in;
        margin-right:.4in;
        margin-bottom:6.0pt;
        margin-left:.4in;
        text-indent:.25in;
        line-height:125%;
        font-size:10.0pt;
        font-family:"Times New Roman","serif";
        color:#5A5A5A;}
p.Indented, li.Indented, div.Indented
        {mso-style-name:Indented;
        mso-style-link:"Indented Char";
        margin-top:0in;
        margin-right:0in;
        margin-bottom:6.0pt;
        margin-left:.5in;
        mso-add-space:auto;
        line-height:125%;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
p.IndentedCxSpFirst, li.IndentedCxSpFirst, div.IndentedCxSpFirst
        {mso-style-name:IndentedCxSpFirst;
        mso-style-link:"Indented Char";
        mso-style-type:export-only;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        mso-add-space:auto;
        line-height:125%;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
p.IndentedCxSpMiddle, li.IndentedCxSpMiddle, div.IndentedCxSpMiddle
        {mso-style-name:IndentedCxSpMiddle;
        mso-style-link:"Indented Char";
        mso-style-type:export-only;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        mso-add-space:auto;
        line-height:125%;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
p.IndentedCxSpLast, li.IndentedCxSpLast, div.IndentedCxSpLast
        {mso-style-name:IndentedCxSpLast;
        mso-style-link:"Indented Char";
        mso-style-type:export-only;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:6.0pt;
        margin-left:.5in;
        mso-add-space:auto;
        line-height:125%;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.IndentedChar
        {mso-style-name:"Indented Char";
        mso-style-link:Indented;
        font-family:"Calibri","sans-serif";}
span.QuoteChar
        {mso-style-name:"Quote Char";
        mso-style-priority:29;
        mso-style-link:Quote;
        color:#5A5A5A;}
span.TitleChar
        {mso-style-name:"Title Char";
        mso-style-priority:10;
        mso-style-link:Title;
        font-family:"Cambria","serif";
        letter-spacing:.5pt;
        font-weight:bold;
        font-style:italic;}
span.Heading3Char
        {mso-style-name:"Heading 3 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 3";
        font-family:"Cambria","serif";
        font-weight:bold;
        font-style:italic;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle32
        {mso-style-type:personal-compose;}
span.Heading2Char
        {mso-style-name:"Heading 2 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 2";
        font-family:"Calibri","sans-serif";
        font-weight:bold;}
span.Heading1Char
        {mso-style-name:"Heading 1 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 1";
        font-family:"Cambria","serif";
        color:#365F91;
        font-weight:bold;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:-120;
        mso-list-type:simple;
        mso-list-template-ids:-890473630;}
@list l0:level1
        {mso-level-style-link:"List Number";
        mso-level-tab-stop:.25in;
        mso-level-number-position:left;
        margin-left:.25in;
        text-indent:-.25in;}
@list l1
        {mso-list-id:1140802212;
        mso-list-type:hybrid;
        mso-list-template-ids:-746397838 -1155131754 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l1:level1
        {mso-level-number-format:bullet;
        mso-level-text:*;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Times New Roman","serif";}
@list l1:level2
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l1:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l1:level4
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
@list l1:level5
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l1:level6
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
@list l1:level7
        {mso-level-number-format:bullet;
        mso-level-text:\F0B7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Symbol;}
@list l1:level8
        {mso-level-number-format:bullet;
        mso-level-text:o;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:"Courier New";}
@list l1:level9
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;
        font-family:Wingdings;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoPlainText>To: Radu Coravu and oXygen User ML<o:p></o:p></p><h2>Study Subject<o:p></o:p></h2><p class=MsoPlainText>The use of the <span style='font-size:12.0pt;color:#003296'>openContent </span>element in the schema below was part of trying to determine how XHTML5 and XML could work together. If the XSD 1.1 <span style='font-size:12.0pt;color:#003296'>openContent </span>element were usable in XML and XHTML5, it would aid the development of combined implementations.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><h2>Bug: XSD 1.1 openContent mode="interleave in XML Page<o:p></o:p></h2><p class=MsoNormal>Unfortunately, the XML page that was generated by an XSD1.1 schema shown below was incorrect. <o:p></o:p></p><p class=MsoNormal>The schema below, which includes an openContent element successfully validated <o:p></o:p></p><p class=IndentedCxSpFirst>“SystemID: D:\XML\Schema\Schema1_1\interleave\books.xsd<o:p></o:p></p><p class=IndentedCxSpMiddle>Main validation file: D:\XML\Schema\Schema1_1\interleave\books.xsd<o:p></o:p></p><p class=IndentedCxSpMiddle>Engine name: Saxon-EE 9.3.0.5<o:p></o:p></p><p class=IndentedCxSpMiddle>Severity: info<o:p></o:p></p><p class=IndentedCxSpMiddle>Description: Validation successful. <o:p></o:p></p><p class=IndentedCxSpLast><?xml version="1.0" encoding="UTF-8"?>”<o:p></o:p></p><p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p><p class=MsoNormal>The test case is based upon slides 266 and 217 <span style='color:black'>of XML Schema 1.1 by Roger L. Costello, (<a href="http://www.xfront.com">http://www.xfront.com</a>) dated 24 March 2011. </span>Slide 217 is a complete XML page.<span style='color:black'><o:p></o:p></span></p><p class=MsoNormal> <a href="http://www.xfront.com/files/tutorials.html">http://www.xfront.com/files/tutorials.html</a><o:p></o:p></p><p class=MsoNormal>Then pressing xml schema 1.1. This is followed by going “XML Schema 1.1 Tutorial”<o:p></o:p></p><p class=MsoNormal>And then going to the hyperlink labeled<o:p></o:p></p><p class=MsoNormal>Here is the tutorial: <u><span style='color:#7030A0'>XML Schema 1.1</span></u><span style='color:#7030A0'> </span>(PowerPoint document). It appears that there are at least two versions with different dates and slide numbers of this PowerPoint presentation that can be found with a Google search.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>XSD1.1 Schema<o:p></o:p></p><p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p><p class=MsoPlainText><span style='color:black'></xs:schema></span><span style='font-size:12.0pt;color:#8B26C9'> <?xml version="1.0" encoding="UTF-8"?></span><span style='font-size:12.0pt;color:black'><br></span><span style='font-size:12.0pt;color:#003296'><xs:schema</span><span style='font-size:12.0pt;color:#FF0033'> </span><span style='font-size:12.0pt;color:#0099CC'>xmlns:xs</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>"</span><span style='font-size:12.0pt;color:black'><br></span><span style='font-size:12.0pt;color:#FF0033'> targetNamespace</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"<a href="http://www.books.org">http://www.books.org</a>"</span><span style='font-size:12.0pt;color:#FF0033'> xmlns</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"<a href="http://www.books.org">http://www.books.org</a>"</span><span style='font-size:12.0pt;color:black'><br></span><span style='font-size:12.0pt;color:#FF0033'> elementFormDefault</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"qualified"</span><span style='font-size:12.0pt;color:#000096'>></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'><xs:element</span><span style='font-size:12.0pt;color:#FF0033'> name</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"Book"</span><span style='font-size:12.0pt;color:#000096'>></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'><xs:complexType></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'><xs:openContent</span><span style='font-size:12.0pt;color:#FF0033'> mode</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"interleave"</span><span style='font-size:12.0pt;color:#000096'>></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'><xs:any</span><span style='font-size:12.0pt;color:#FF0033'> namespace</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"<a href="http://www.r.org">http://www.r.org</a>"</span><span style='font-size:12.0pt;color:#FF0033'> processContents</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"strict"</span><span style='font-size:12.0pt;color:#000096'>/></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'></xs:openContent></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'><xs:sequence></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'><xs:element</span><span style='font-size:12.0pt;color:#FF0033'> name</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"Title"</span><span style='font-size:12.0pt;color:#FF0033'> type</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"xs:string"</span><span style='font-size:12.0pt;color:#000096'>/></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'><xs:element</span><span style='font-size:12.0pt;color:#FF0033'> name</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"Author"</span><span style='font-size:12.0pt;color:#FF0033'> type</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"xs:string"</span><span style='font-size:12.0pt;color:#000096'>/></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'><xs:element</span><span style='font-size:12.0pt;color:#FF0033'> name</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"Date"</span><span style='font-size:12.0pt;color:#FF0033'> type</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"xs:string"</span><span style='font-size:12.0pt;color:#000096'>/></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'><xs:element</span><span style='font-size:12.0pt;color:#FF0033'> name</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"ISBN"</span><span style='font-size:12.0pt;color:#FF0033'> type</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"xs:string"</span><span style='font-size:12.0pt;color:#000096'>/></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'><xs:element</span><span style='font-size:12.0pt;color:#FF0033'> name</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"Publisher"</span><span style='font-size:12.0pt;color:#FF0033'> type</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"xs:string"</span><span style='font-size:12.0pt;color:#000096'>/></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'></xs:sequence></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'></xs:complexType></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'></xs:element></span><span style='font-size:12.0pt;color:black'><br></span><span style='font-size:12.0pt;color:#003296'></xs:schema><o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p><p class=MsoNormal>When I attempted to use Tools.Generate XML schema, I received the following error message.<o:p></o:p></p><p class=MsoPlainText><span style='color:black'><img border=0 width=510 height=115 id="Picture_x0020_1" src="cid:image001.jpg@01CC38ED.BBDBCA90" alt="Description: cid:image001.jpg@01CC38ED.BBDBCA90"></span><span style='color:black'><o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'>I ignored the error and generated:<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><?xml version="1.0" encoding="UTF-8"?><o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><Book xmlns="<a href="http://www.books.org">http://www.books.org</a>"<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'>xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'>xsi:schemaLocation="<a href="http://www.books.org%20file:/D:/XML/Schema/Schema1_1/interleave/books.xsd">http://www.books.org file:/D:/XML/Schema/Schema1_1/interleave/books.xsd</a>"><o:p></o:p></span></p><div style='mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;padding:0in 0in 1.0pt 0in'><p class=MsoPlainText style='border:none;padding:0in'><span style='color:black'></Book><o:p></o:p></span></p></div><p class=MsoPlainText><span style='color:black'>If I comment out <o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt;color:#003296'><!--xs:openContent</span><span style='font-size:12.0pt;color:#FF0033'> mode</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"interleave"</span><span style='font-size:12.0pt;color:#000096'>></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'><xs:any</span><span style='font-size:12.0pt;color:#FF0033'> namespace</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"<a href="http://www.r.org">http://www.r.org</a>"</span><span style='font-size:12.0pt;color:#FF0033'> processContents</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"strict"</span><span style='font-size:12.0pt;color:#000096'>/></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'></xs:openContent--></span><span style='font-size:12.0pt;color:black'><br></span><span style='color:black'>I was able to generate:<o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt;color:#8B26C9'><?xml version="1.0" encoding="UTF-8"?></span><span style='font-size:12.0pt;color:black'><br></span><span style='font-size:12.0pt;color:#000096'><Book</span><span style='font-size:12.0pt;color:#FF0033'> xmlns</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"http://www.books.org"</span><span style='font-size:12.0pt;color:black'><br></span><span style='font-size:12.0pt;color:#FF0033'> </span><span style='font-size:12.0pt;color:#0099CC'>xmlns:xsi</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"http://www.w3.org/2001/XMLSchema-instance"</span><span style='font-size:12.0pt;color:black'><br></span><span style='font-size:12.0pt;color:#FF0033'> xsi:schemaLocation</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"http://www.books.org file:/D:/XML/Schema/Schema1_1/interleave/books.xsd"</span><span style='font-size:12.0pt;color:#000096'>></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#000096'><Title></span><span style='font-size:12.0pt;color:black'>Title0</span><span style='font-size:12.0pt;color:#000096'></Title></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#000096'><Author></span><span style='font-size:12.0pt;color:black'>Author0</span><span style='font-size:12.0pt;color:#000096'></Author></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#000096'><Date></span><span style='font-size:12.0pt;color:black'>Date0</span><span style='font-size:12.0pt;color:#000096'></Date></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#000096'><ISBN></span><span style='font-size:12.0pt;color:black'>ISBN0</span><span style='font-size:12.0pt;color:#000096'></ISBN></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#000096'><Publisher></span><span style='font-size:12.0pt;color:black'>Publisher0</span><span style='font-size:12.0pt;color:#000096'></Publisher></span><span style='font-size:12.0pt;color:black'><br></span><span style='font-size:12.0pt;color:#000096'></Book><o:p></o:p></span></p><p class=MsoNormal>The result with the above XML page was: <o:p></o:p></p><p class=MsoNormal>SystemID: D:\XML\Schema\Schema1_1\interleave\book_XSD_1.xml<o:p></o:p></p><p class=IndentedCxSpFirst>Main validation file: D:\XML\Schema\Schema1_1\interleave\book_XSD_1.xml<o:p></o:p></p><p class=IndentedCxSpMiddle>Engine name: Saxon-EE 9.3.0.5<o:p></o:p></p><p class=IndentedCxSpMiddle>Severity: info<o:p></o:p></p><p class=IndentedCxSpLast>Description: Validation <u>successful</u>.<o:p></o:p></p><p class=MsoPlainText><span style='color:black'>I created an r.xsd schema based on the XML page shown in :<o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'>The comments in r.xsd (below) are the values shown in the XML page I separate type definitions by a stylized comment </span><b><span style='color:#00B050'><!—xxxxxxxxxxxx</span></b><b><span style='font-family:Wingdings;color:#00B050'>à</span></b><span style='color:black'><o:p></o:p></span></p><p class=MsoPlainText><span style='color:black'><o:p> </o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt;color:#8B26C9'><?xml version="1.0" encoding="UTF-8"?></span><span style='font-size:12.0pt;color:black'><br></span><span style='font-size:12.0pt;color:#003296'><xs:schema</span><span style='font-size:12.0pt;color:#FF0033'> </span><span style='font-size:12.0pt;color:#0099CC'>xmlns:xs</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"http://www.w3.org/2001/XMLSchema"</span><span style='font-size:12.0pt;color:black'><br></span><span style='font-size:12.0pt;color:#FF0033'> targetNamespace</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"http://www.r.org"</span><span style='font-size:12.0pt;color:#FF0033'> xmlns</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"http://www.r.org"</span><span style='font-size:12.0pt;color:black'><br></span><span style='font-size:12.0pt;color:#FF0033'> elementFormDefault</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"qualified"</span><span style='font-size:12.0pt;color:#000096'>></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'><xs:element</span><span style='font-size:12.0pt;color:#FF0033'> name</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"Binding"</span><span style='font-size:12.0pt;color:#FF0033'> type</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"Binding_Type"</span><span style='font-size:12.0pt;color:#000096'>/></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'><xs:simpleType</span><span style='font-size:12.0pt;color:#FF0033'> name</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"Binding_Type"</span><span style='font-size:12.0pt;color:#000096'>></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'><xs:restriction</span><span style='font-size:12.0pt;color:#FF0033'> base</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"xs:token"</span><span style='font-size:12.0pt;color:#000096'>></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'><xs:enumeration</span><span style='font-size:12.0pt;color:#FF0033'> value</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"Hardcover"</span><span style='font-size:12.0pt;color:#000096'>/></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'><xs:enumeration</span><span style='font-size:12.0pt;color:#FF0033'> value</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"Soft"</span><span style='font-size:12.0pt;color:#000096'>/></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'></xs:restriction></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'></xs:simpleType><o:p></o:p></span></p><p class=MsoPlainText><span style='font-size:12.0pt;color:black'> </span><span style='font-size:12.0pt;color:darkgreen'><!--xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx--></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:darkgreen'><!--r:Binding>Hardcover</r:Binding--></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:darkgreen'><!--xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx--></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'><xs:simpleType</span><span style='font-size:12.0pt;color:#FF0033'> name</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"Category_Type"</span><span style='font-size:12.0pt;color:#000096'>></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'><xs:restriction</span><span style='font-size:12.0pt;color:#FF0033'> base</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"xs:token"</span><span style='font-size:12.0pt;color:#000096'>></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'><xs:enumeration</span><span style='font-size:12.0pt;color:#FF0033'> value</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"Non-fiction"</span><span style='font-size:12.0pt;color:#000096'>/></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'><xs:enumeration</span><span style='font-size:12.0pt;color:#FF0033'> value</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"Fiction"</span><span style='font-size:12.0pt;color:#000096'>/></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'></xs:restriction></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'></xs:simpleType></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:darkgreen'><!--xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx--></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'><xs:element</span><span style='font-size:12.0pt;color:#FF0033'> name</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"Size"</span><span style='font-size:12.0pt;color:#FF0033'> type</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"xs:int"</span><span style='font-size:12.0pt;color:#000096'>/></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:darkgreen'><!--r:Size>5 x 7</r:Size --></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'><xs:element</span><span style='font-size:12.0pt;color:#FF0033'> name</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"InStock"</span><span style='font-size:12.0pt;color:#FF0033'> type</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"xs:boolean"</span><span style='font-size:12.0pt;color:#000096'>/></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:darkgreen'><!--r:InStock>true</r:InStock--></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'><xs:element</span><span style='font-size:12.0pt;color:#FF0033'> name</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"Category"</span><span style='font-size:12.0pt;color:#FF0033'> type</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"Category_Type"</span><span style='font-size:12.0pt;color:#000096'>/></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:darkgreen'><!--r:Category>Non-fiction</r:Category --></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'><xs:element</span><span style='font-size:12.0pt;color:#FF0033'> name</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"NumPages"</span><span style='font-size:12.0pt;color:#FF0033'> type</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"xs:int"</span><span style='font-size:12.0pt;color:#000096'>/></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:darkgreen'><!--r:NumPages>299</r:NumPages--></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#003296'><xs:element</span><span style='font-size:12.0pt;color:#FF0033'> name</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"AvailableOnTape"</span><span style='font-size:12.0pt;color:#FF0033'> type</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"xs:boolean"</span><span style='font-size:12.0pt;color:#000096'>/></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:darkgreen'><!--r:AvailableOnTape>false</r:AvailableOnTape--></span><span style='font-size:12.0pt;color:black'><br></span><span style='font-size:12.0pt;color:#003296'></xs:schema></span><span style='font-size:12.0pt;color:black'><br></span><span style='color:black'>----------------------------------------------------------------<o:p></o:p></span></p><p class=MsoNormal>Test XML page that includes one element (<span style='font-size:12.0pt;line-height:125%;color:#000096'><r:Size></span><span style='font-size:12.0pt;line-height:125%'>5 x 7<span style='color:#000096'></r:Size></span></span>) from the schema (r.xsd) that contains the interleaved elements<o:p></o:p></p><p class=MsoPlainText><span style='font-size:12.0pt;color:#8B26C9'><?xml version="1.0" encoding="UTF-8"?></span><span style='font-size:12.0pt;color:black'><br></span><span style='font-size:12.0pt;color:#000096'><Book</span><span style='font-size:12.0pt;color:#FF0033'> xmlns</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"http://www.books.org"</span><span style='font-size:12.0pt;color:black'><br></span><span style='font-size:12.0pt;color:#FF0033'> </span><span style='font-size:12.0pt;color:#0099CC'>xmlns:xsi</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"http://www.w3.org/2001/XMLSchema-instance"</span><span style='font-size:12.0pt;color:black'><br></span><span style='font-size:12.0pt;color:#FF0033'> </span><span style='font-size:12.0pt;color:#0099CC'>xmlns:r</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"http://www.r.org"</span><span style='font-size:12.0pt;color:black'><br></span><span style='font-size:12.0pt;color:#FF0033'> xsi:schemaLocation</span><span style='font-size:12.0pt;color:#333333'>=</span><span style='font-size:12.0pt;color:#993300'>"http://www.books.org file:/D:/XML/Schema/Schema1_1/interleave/books.xsd"</span><span style='font-size:12.0pt;color:#000096'>></span><span style='font-size:12.0pt;color:black'> <br> </span><span style='font-size:12.0pt;color:darkgreen'><!--r:Binding>Hardcover</r:Binding--></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#000096'><Title></span><span style='font-size:12.0pt;color:black'>My Life and Times</span><span style='font-size:12.0pt;color:#000096'></Title></span><span style='font-size:12.0pt;color:black'> <br> </span><span style='font-size:12.0pt;color:#000096'><r:Size></span><span style='font-size:12.0pt;color:black'>5 x 7</span><span style='font-size:12.0pt;color:#000096'></r:Size></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#000096'><Author></span><span style='font-size:12.0pt;color:black'>Paul McCartney</span><span style='font-size:12.0pt;color:#000096'></Author></span><span style='font-size:12.0pt;color:black'> <br> </span><span style='font-size:12.0pt;color:darkgreen'><!--r:InStock>true</r:InStock--></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#000096'><Date></span><span style='font-size:12.0pt;color:black'>1998</span><span style='font-size:12.0pt;color:#000096'></Date></span><span style='font-size:12.0pt;color:black'> <br> </span><span style='font-size:12.0pt;color:darkgreen'><!--r:Category>Non-fiction</r:Category--></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#000096'><ISBN></span><span style='font-size:12.0pt;color:black'>1-56592-235-2</span><span style='font-size:12.0pt;color:#000096'></ISBN></span><span style='font-size:12.0pt;color:black'> <br> </span><span style='font-size:12.0pt;color:darkgreen'><!--r:NumPages>299</r:NumPages--></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:#000096'><Publisher></span><span style='font-size:12.0pt;color:black'>McMillin Publishing</span><span style='font-size:12.0pt;color:#000096'></Publisher></span><span style='font-size:12.0pt;color:black'><br> </span><span style='font-size:12.0pt;color:darkgreen'><!--r:AvailableOnTape>false</r:AvailableOnTape--></span><span style='font-size:12.0pt;color:black'> <br></span><span style='font-size:12.0pt;color:#000096'></Book><o:p></o:p></span></p><p class=IndentedCxSpFirst>“Validating this XML page resulted in<o:p></o:p></p><p class=IndentedCxSpMiddle>SystemID: D:\XML\Schema\Schema1_1\interleave\book_Inter1.xml<o:p></o:p></p><p class=IndentedCxSpMiddle>Main validation file: D:\XML\Schema\Schema1_1\interleave\book_Inter1.xml<o:p></o:p></p><p class=IndentedCxSpMiddle>Engine name: Saxon-EE 9.3.0.5<o:p></o:p></p><p class=IndentedCxSpMiddle>Severity: error<o:p></o:p></p><p class=IndentedCxSpMiddle>Description: In content of element <Book>: The content model does not allow element <r:Size> to appear here. Expected: {http://www.books.org}Author<o:p></o:p></p><p class=IndentedCxSpMiddle>Start location: 8:11<o:p></o:p></p><p class=IndentedCxSpMiddle><o:p> </o:p></p><p class=IndentedCxSpMiddle>SystemID: D:\XML\Schema\Schema1_1\interleave\book_Inter1.xml<o:p></o:p></p><p class=IndentedCxSpMiddle>Main validation file: D:\XML\Schema\Schema1_1\interleave\book_Inter1.xml<o:p></o:p></p><p class=IndentedCxSpMiddle>Engine name: Saxon-EE 9.3.0.5<o:p></o:p></p><p class=IndentedCxSpMiddle>Severity: fatal<o:p></o:p></p><p class=IndentedCxSpMiddle>Description: One or more validation errors were reported<o:p></o:p></p><p class=IndentedCxSpLast>Start location: 17:8. <o:p></o:p></p><p class=MsoNormal>However, the web page was well formed.”<o:p></o:p></p><p class=MsoNormal>Thank you.<o:p></o:p></p><p class=MsoNormal>Bob Leif<o:p></o:p></p></div></body></html>