[osis-core] XMLSpy Question
Patrick Durusau
osis-core@bibletechnologieswg.org
Wed, 05 Feb 2003 16:09:05 -0500
--------------020904050306090408070703
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Harry,
Harry Plantinga wrote:
> What todd means is that you can create a document such as
>
> <?xml version="1.0"?>
> <note>Hello world!</note>
>
> and it will be valid according to the OSIS schema.
>
If you invoke the OSIS schema, however, the following gives a validity
error:
> <?xml version="1.0" encoding="UTF-8"?>
> <osis xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="C:\Working\OSIS_User\osisCore.1.1.1.xsd">
> <note>Hello World</note>
> </osis>
But, the following does not:
<?xml version="1.0" encoding="UTF-8"?>
<note xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="C:\Working\OSIS_User\osisCore.1.1.1.xsd">Hello
World</note>
OK, I remember now why Todd is correct and it does allow the unexpected
behavior. Hmmm, don't know that I like that very much. Means we will
have to tool up the custom editors to start with <osis> as the root
element to enforce the content models.
Well, I'll keep thinking about that while working on the users manual.
Patrick
> -harry
>
> -----Original Message-----
> From: osis-core-admin@bibletechnologieswg.org
> [mailto:osis-core-admin@bibletechnologieswg.org] On Behalf Of
> Patrick Durusau
> Sent: Wednesday, February 05, 2003 3:44 PM
> To: osis-core@bibletechnologieswg.org
> Subject: Re: [osis-core] XMLSpy Question
>
> Todd,
>
> Todd Tillinghast wrote:
>
>> Patrick,
>>
>> About the roots, naturally a document can have only one root
>> element, BUT you can make a valid document relative to our schema
>> with a large number of elements as the document root (example <note> can be the document root).
>>
>>
>>
> Not sure how you are using "root" to say that a note "can be the
> document root." Root in XML/SGML terminology means the outermost
> container element. For the OSIS schema, that means osis.
>
>> About osisCorpus and osisText, XMLSpy will add in <osisCorpus> and some sub-elements of <osisCorpus> when you create an <osis> root element. If you then add in <osisText> the document is invalid unless you remove the <osisCorpus>. Is that you how got to the position you were in? (I have yet
>> to get strange/invalid behavior from XMLSpy in the way you seem
>> to be describing, but then I use the text editor almost exclusively.)
>>
> Yes. When you create a document in the text editor does it add
> osisCorpus? Rather odd behavior for an editor.
>
> Patrick
>
>> Todd
>>
>> -----Original Message-----
>> From: osis-core-admin@bibletechnologieswg.org
>> [mailto:osis-core-admin@bibletechnologieswg.org] On Behalf Of
>> Patrick Durusau
>> Sent: Wednesday, February 05, 2003 11:05 AM
>> To: osis-core@bibletechnologieswg.org
>> Subject: Re: [osis-core] XMLSpy Question
>>
>> Todd,
>>
>> Todd Tillinghast wrote:
>> <!--[if !supportLineBreakNewLine]-->
>> <!--[endif]-->
>>
>>Patrick,
>>
>>
>>
>>
>>
>>>Todd,
>>>
>>>
>>>
>>>I don't know if anyone else is using XMLSpy but thought I would post
>>>
>>>this to the list.
>>>
>>>
>>>
>>>I am working on the OSIS Users Manual and decided to try to use XMLSpy
>>>
>>>for something other than documentation.
>>>
>>>
>>>
>>>OK, so I choose osis as my root (does not default to the root element
>>>
>>>
>>>
>>in
>>
>>
>>
>>>a schema?)
>>>
>>>
>>>
>>
>>
>>There are several possible root elements based on our schema since most
>>
>>elements are defined so they can be used by reference.
>>
>>
>>
>> Eh? That does not sound like XML. You can treat elements as
>> "roots" by XPath and the like but a valid XML document still only
>> has one container element. In our case, it should by <osis>. If XMLSpy is reading it some other way, it is defnitely a bug.
>> Otherwise you could have an ambiguous content model. Bad joss in
>> XML circles. ;-)
>>
>> <!--[if !supportLineBreakNewLine]-->
>> <!--[endif]-->
>>
>>
>>
>>
>>
>>>then choose osisText, which then keeps displaying osisCorpus
>>>
>>>as a possible sibling of osisText? That is not how I intrepret choice.
>>>
>>>In other words,
>>>
>>>
>>>
>>
>>
>>Which view are you using to create/edit your document, the "text" view
>>
>>or the "enhanced grid" view?
>>
>>
>>
>> Enhance view I am sure, has the elements displayed in an indented
>> tree sort of fashion.
>>
>> <!--[if !supportLineBreakNewLine]-->
>> <!--[endif]-->
>>
>>
>>
>>Where are you seeing "osisCorpus as a possible sibling of osisText"?
>>
>>
>>
>> Below the element I am inserting. When I went to save, it did say
>> having osisCorpus was an error. ;-) So, it inserts it, then
>> claims it is an error. Great stuff!
>>
>> <!--[if !supportLineBreakNewLine]-->
>> <!--[endif]-->
>>
>>
>>
>>If you are looking at the "schema design" view of the actual schema then
>>
>>they can be shown as siblings within the choice branch under "osis".
>>
>>
>>
>>
>>
>>
>>
>>><osis>
>>>
>>><osisText>
>>>
>>></osisText>
>>>
>>></osis>
>>>
>>>
>>>
>>>OK.
>>>
>>>
>>>
>>><osis>
>>>
>>><osisCorpus>
>>>
>>><osisText>
>>>
>>></osisText>
>>>
>>><osisText>
>>>
>>></osisText>
>>>
>>></osisCorpus>
>>>
>>></osis>
>>>
>>>
>>>
>>>OK
>>>
>>>
>>>
>>>But,
>>>
>>>
>>>
>>><osis>
>>>
>>><osisText>
>>>
>>></osisText>
>>>
>>><osisCorpus>
>>>
>>><osisText>
>>>
>>></osisText>
>>>
>>><osisText>
>>>
>>></osisText>
>>>
>>></osisCorpus>
>>>
>>></osis>
>>>
>>>
>>>
>>>NOT OK.
>>>
>>>
>>>
>>
>>
>>When you "validate" the documents you have above (using the green check
>>
>>button) the results with XMLSpy are consistent with the schema. (The
>>
>>first two are valid if you add in the required <header> and <work>
>>
>>elements. The third is not valid because you have both an osisText and
>>
>>an osisCorpus under osis.)
>>
>>
>>
>>
>>
>> Yes, I was just being lazy. :-)
>>
>> <!--[if !supportLineBreakNewLine]-->
>> <!--[endif]-->
>>
>>
>>
>>
>>
>>>I checked the schema and it is quite clearly a choice, either osisText
>>>
>>>or osisCorpus and the children of osisText are header and div in that
>>>
>>>order (sequence).
>>>
>>>
>>>
>>>Am I missing something here?
>>>
>>>
>>>
>>>Patrick
>>>
>>>
>>>
>>>
>>>
>>
>>
>>Does that help any or just fog things up?
>>
>>
>>
>> Thanks! One reason for using XMLSpy is that I doubt very many
>> OSIS encoders will use Emacs. Guess we need to start keeping
>> notes on disfunctional editing software as well!
>>
>> Hope you are having a great day!
>>
>> Patrick
>>
>> <!--[if !supportLineBreakNewLine]-->
>> <!--[endif]-->
>>
>>
>>
>>Todd
>>
>>
>>
>>_______________________________________________
>>
>>osis-core mailing list
>>
>>osis-core@bibletechnologieswg.org <mailto:osis-core@bibletechnologieswg.org>
>>
>>http://www.bibletechnologieswg.org/mailman/listinfo/osis-core
>>
>>
>>
>>
>> <!--[if !supportLineBreakNewLine]-->
>> <!--[endif]-->
>>
>>--
>>
>>Patrick Durusau
>>
>>Director of Research and Development
>>
>>Society of Biblical Literature
>>
>>pdurusau@emory.edu <mailto:pdurusau@emory.edu>
>>
>>Co-Editor, ISO Reference Model for Topic Maps
>>
>
>--
>Patrick Durusau
>Director of Research and Development
>Society of Biblical Literature
>pdurusau@emory.edu
>Co-Editor, ISO Reference Model for Topic Maps
>
>
>
--
Patrick Durusau
Director of Research and Development
Society of Biblical Literature
pdurusau@emory.edu
Co-Editor, ISO Reference Model for Topic Maps
--------------020904050306090408070703
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body>
Harry,<br>
<br>
Harry Plantinga wrote:<br>
<blockquote type="cite" cite="mid001d01c2cd57$80c8b040$a2366a99@pc12272">
<meta http-equiv="Content-Type" content="text/html; ">
<title>Message</title>
<meta content="MSHTML 6.00.2800.1106" name="GENERATOR">
<div><span class="753194420-05022003"><font face="Arial"
color="#0000ff" size="2">What todd means is that you can create a document
such as </font></span></div>
<div><span class="753194420-05022003"></span> </div>
<div><span class="753194420-05022003"><font face="Arial"
color="#0000ff" size="2"><?xml version="1.0"?></font></span></div>
<div><span class="753194420-05022003"><font face="Arial"
color="#0000ff" size="2"><note>Hello world!</note></font></span></div>
<div><span class="753194420-05022003"></span> </div>
<div><span class="753194420-05022003"><font face="Arial"
color="#0000ff" size="2">and it will be valid according to the OSIS schema.</font></span></div>
<div><span class="753194420-05022003"></span> </div>
</blockquote>
If you invoke the OSIS schema, however, the following gives a validity error:<br>
<br>
<blockquote type="cite"><?xml version="1.0" encoding="UTF-8"?><br>
<osis xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a> xsi:noNamespaceSchemaLocation="C:\Working\OSIS_User\osisCore.1.1.1.xsd"><br>
<note>Hello World</note><br>
</osis></blockquote>
<br>
But, the following does not:<br>
<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<note xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a> xsi:noNamespaceSchemaLocation="C:\Working\OSIS_User\osisCore.1.1.1.xsd">Hello
World</note><br>
<br>
OK, I remember now why Todd is correct and it does allow the unexpected behavior.
Hmmm, don't know that I like that very much. Means we will have to tool up
the custom editors to start with <osis> as the root element to enforce
the content models. <br>
<br>
Well, I'll keep thinking about that while working on the users manual.<br>
<br>
Patrick<br>
<br>
<br>
<br>
<blockquote type="cite" cite="mid001d01c2cd57$80c8b040$a2366a99@pc12272">
<div><span class="753194420-05022003"><font face="Arial"
color="#0000ff" size="2">-harry</font></span></div>
<blockquote
style="border-left: 2px solid rgb(0,0,255); padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div class="OutlookMessageHeader" lang="en-us" dir="ltr"
align="left"><font face="Tahoma" size="2">-----Original Message-----<br>
<b>From:</b> <a class="moz-txt-link-abbreviated" href="mailto:osis-core-admin@bibletechnologieswg.org">osis-core-admin@bibletechnologieswg.org</a> [<a class="moz-txt-link-freetext" href="mailto:osis-core-admin@bibletechnologieswg.org">mailto:osis-core-admin@bibletechnologieswg.org</a>]
<b>On Behalf Of </b>Patrick Durusau<br>
<b>Sent:</b> Wednesday, February 05, 2003 3:44 PM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:osis-core@bibletechnologieswg.org">osis-core@bibletechnologieswg.org</a><br>
<b>Subject:</b> Re: [osis-core] XMLSpy Question<br>
<br>
</font></div>
Todd,<br>
<br>
Todd Tillinghast wrote:<br>
<blockquote cite="mid000001c2cd55$1345f020$8100a8c0@halogenlight"
type="cite">
<meta content="Word.Document" name="ProgId">
<meta content="Microsoft Word 10" name="Generator">
<meta content="Microsoft Word 10" name="Originator">
<link href="cid:filelist.xml@01C2CD1A.4B1CAF10" rel="File-List">
<O:SMARTTAGTYPE name="time"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"><O:SMARTTAGTYPE
name="date" namespaceuri="urn:schemas-microsoft-com:office:smarttags"><!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:SpellingState>Clean</w:SpellingState>
<w:GrammarState>Clean</w:GrammarState>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:EnvelopeVis/>
<w:Compatibility>
<w:ForgetLastTabAlignment/>
<w:DoNotUseHTMLParagraphAutoSpacing/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<STYLE>st1\:* {
BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<style>@font-face {
font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; mso-header-margin: .5in; mso-footer-margin: .5in; mso-paper-source: 0; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
PRE {
FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Courier New"; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
SPAN.EmailStyle18 {
COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply; mso-style-noshow: yes; mso-ansi-font-size: 10.0pt; mso-bidi-font-size: 10.0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial
}
SPAN.SpellE {
mso-style-name: ""; mso-spl-e: yes
}
DIV.Section1 {
page: Section1
}
</style> <!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]--></O:SMARTTAGTYPE></O:SMARTTAGTYPE>
<div class="Section1">
<p class="MsoNormal"><font face="Arial" color="navy" size="2"><span
style="font-size: 10pt; color: navy; font-family: Arial;">Patrick,<O:P></O:P></span></font></p>
<p class="MsoNormal"><font face="Arial" color="navy" size="2"><span
style="font-size: 10pt; color: navy; font-family: Arial;"><O:P></O:P></span></font></p>
<p class="MsoNormal"><font face="Arial" color="navy" size="2"><span
style="font-size: 10pt; color: navy; font-family: Arial;">About the roots,
naturally a document can have only one root element, BUT you can make
a valid document relative to our schema with a large number of elements
as the document root (example <note> can be the document
root).<O:P></O:P></span></font></p>
<p class="MsoNormal"><font face="Arial" color="navy" size="2"><span
style="font-size: 10pt; color: navy; font-family: Arial;"><span></span></span></font> </p>
</div>
</blockquote>
Not sure how you are using "root" to say that a note "can be the document
root." Root in XML/SGML terminology means the outermost container element.
For the OSIS schema, that means osis. <br>
<br>
<blockquote cite="mid000001c2cd55$1345f020$8100a8c0@halogenlight"
type="cite">
<div class="Section1">
<p class="MsoNormal"><font face="Arial" color="navy" size="2"><span
style="font-size: 10pt; color: navy; font-family: Arial;"><O:P></O:P></span></font></p>
<p class="MsoNormal"><font face="Arial" color="navy" size="2"><span
style="font-size: 10pt; color: navy; font-family: Arial;">About <span
class="SpellE">osisCorpus</span> and osisText, <span class="SpellE">XMLSpy</span>
will add in <<span class="SpellE">osisCorpus</span>> and some sub-elements
of <<span class="SpellE">osisCorpus</span>> when you create an <<span
class="SpellE">osis</span>> root element.<span> </span>If you then
add in <osisText> the document is invalid unless you remove the
<<span class="SpellE">osisCorpus</span>>.<span> </span>Is that
you how got to the position you were in?<span> </span>(I have yet to
get strange/invalid behavior from <span class="SpellE">XMLSpy</span>
in the way you seem to be describing, but then I use the text editor
almost exclusively.)<O:P></O:P></span></font></p>
<p class="MsoNormal"><font face="Arial" color="navy" size="2"><span
style="font-size: 10pt; color: navy; font-family: Arial;"><O:P></O:P></span></font></p>
</div>
</blockquote>
Yes. When you create a document in the text editor does it add osisCorpus?
Rather odd behavior for an editor.<br>
<br>
Patrick<br>
<br>
<blockquote cite="mid000001c2cd55$1345f020$8100a8c0@halogenlight"
type="cite">
<div class="Section1">
<p class="MsoNormal"><font face="Arial" color="navy" size="2"><span
style="font-size: 10pt; color: navy; font-family: Arial;">Todd<O:P></O:P></span></font></p>
<p class="MsoNormal"><font face="Arial" color="navy" size="2"><span
style="font-size: 10pt; color: navy; font-family: Arial;"><O:P></O:P></span></font></p>
<p class="MsoNormal"><font face="Arial" color="navy" size="2"><span
style="font-size: 10pt; color: navy; font-family: Arial;"><O:P></O:P></span></font></p>
<div
style="border-top: medium none; border-bottom: medium none; border-left: 1.5pt solid blue; border-right: medium none; padding: 0in 0in 0in 4pt;">
<p class="MsoNormal"><font face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;">-----Original Message-----<br>
<b><span style="font-weight: bold;">From:</span></b> <a
class="moz-txt-link-abbreviated"
href="mailto:osis-core-admin@bibletechnologieswg.org">osis-core-admin@bibletechnologieswg.org</a>
[<a class="moz-txt-link-freetext"
href="mailto:osis-core-admin@bibletechnologieswg.org">mailto:osis-core-admin@bibletechnologieswg.org</a>]
<b><span style="font-weight: bold;">On Behalf Of </span></b>Patrick
Durusau<br>
<b><span style="font-weight: bold;">Sent:</span></b> </span></font><ST1:DATE
year="2003" day="5" month="2"><font face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;">Wednesday, February 05,
2003</span></font></ST1:DATE><font face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;"> </span></font><ST1:TIME
minute="5" hour="11"><font face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;">11:05 AM</span></font></ST1:TIME><font
face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;"><br>
<b><span style="font-weight: bold;">To:</span></b> <a
class="moz-txt-link-abbreviated"
href="mailto:osis-core@bibletechnologieswg.org">osis-core@bibletechnologieswg.org</a><br>
<b><span style="font-weight: bold;">Subject:</span></b> Re: [osis-core]
XMLSpy Question</span></font></p>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;"><O:P></O:P></span></font></p>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;">Todd,<br>
<br>
Todd Tillinghast wrote:<br>
<!--[if !supportLineBreakNewLine]--><br>
<!--[endif]--><O:P></O:P></span></font></p>
<pre wrap=""><font face="Courier New" size="2"><span
style="font-size: 10pt;">Patrick,<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><O:P> </O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><span> </span><O:P></O:P></span></font></pre>
<blockquote style="margin-top: 5pt; margin-bottom: 5pt;"
type="cite">
<pre wrap=""><font face="Courier New" size="2"><span
style="font-size: 10pt;">Todd,<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><O:P> </O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">I don't know if anyone else is using XMLSpy but thought I would post<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">this to the list.<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><O:P> </O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">I am working on the OSIS Users Manual and decided to try to use XMLSpy<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">for something other than documentation.<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><O:P> </O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">OK, so I choose osis as my root (does not default to the root element<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><span> </span><O:P></O:P></span></font></pre>
</blockquote>
<pre wrap=""><font face="Courier New" size="2"><span
style="font-size: 10pt;">in<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><span> </span><O:P></O:P></span></font></pre>
<blockquote style="margin-top: 5pt; margin-bottom: 5pt;"
type="cite">
<pre wrap=""><font face="Courier New" size="2"><span
style="font-size: 10pt;">a schema?) <O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><span> </span><O:P></O:P></span></font></pre>
</blockquote>
<pre wrap=""><font face="Courier New" size="2"><span
style="font-size: 10pt;"><O:P> </O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">There are several possible root elements based on our schema since most<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">elements are defined so they can be used by reference. <O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><span> </span><O:P></O:P></span></font></pre>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;">Eh? That does not sound like XML. You can treat
elements as "roots" by XPath and the like but a valid XML document still
only has one container element. In our case, it should by <osis>.
If XMLSpy is reading it some other way, it is defnitely a bug. Otherwise
you could have an ambiguous content model. Bad joss in XML circles.
;-)<br>
<br>
<!--[if !supportLineBreakNewLine]--><br>
<!--[endif]--><O:P></O:P></span></font></p>
<pre wrap=""><font face="Courier New" size="2"><span
style="font-size: 10pt;"><O:P> </O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><span> </span><O:P></O:P></span></font></pre>
<blockquote style="margin-top: 5pt; margin-bottom: 5pt;"
type="cite">
<pre wrap=""><font face="Courier New" size="2"><span
style="font-size: 10pt;">then choose osisText, which then keeps displaying osisCorpus<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">as a possible sibling of osisText? That is not how I intrepret choice.<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">In other words,<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><span> </span><O:P></O:P></span></font></pre>
</blockquote>
<pre wrap=""><font face="Courier New" size="2"><span
style="font-size: 10pt;"><O:P> </O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">Which view are you using to create/edit your document, the "text" view<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">or the "enhanced grid" view?<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><span> </span><O:P></O:P></span></font></pre>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;">Enhance view I am sure, has the elements displayed
in an indented tree sort of fashion.<br>
<br>
<!--[if !supportLineBreakNewLine]--><br>
<!--[endif]--><O:P></O:P></span></font></p>
<pre wrap=""><font face="Courier New" size="2"><span
style="font-size: 10pt;"><O:P> </O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">Where are you seeing "osisCorpus as a possible sibling of osisText"?<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><span> </span><O:P></O:P></span></font></pre>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;">Below the element I am inserting. When I went to
save, it did say having osisCorpus was an error. ;-) So, it inserts
it, then claims it is an error. Great stuff!<br>
<br>
<!--[if !supportLineBreakNewLine]--><br>
<!--[endif]--><O:P></O:P></span></font></p>
<pre wrap=""><font face="Courier New" size="2"><span
style="font-size: 10pt;"><O:P> </O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">If you are looking at the "schema design" view of the actual schema then<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">they can be shown as siblings within the choice branch under "osis".<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><O:P> </O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><O:P> </O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><span> </span><O:P></O:P></span></font></pre>
<blockquote style="margin-top: 5pt; margin-bottom: 5pt;"
type="cite">
<pre wrap=""><font face="Courier New" size="2"><span
style="font-size: 10pt;"><osis><O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><osisText><O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"></osisText><O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"></osis><O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><O:P> </O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">OK.<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><O:P> </O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><osis><O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><osisCorpus><O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><osisText><O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"></osisText><O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><osisText><O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"></osisText><O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"></osisCorpus><O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"></osis><O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><O:P> </O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">OK<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><O:P> </O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">But,<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><O:P> </O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><osis><O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><osisText><O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"></osisText><O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><osisCorpus><O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><osisText><O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"></osisText><O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><osisText><O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"></osisText><O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"></osisCorpus><O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"></osis><O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><O:P> </O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">NOT OK.<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><span> </span><O:P></O:P></span></font></pre>
</blockquote>
<pre wrap=""><font face="Courier New" size="2"><span
style="font-size: 10pt;"><O:P> </O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">When you "validate" the documents you have above (using the green check<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">button) the results with XMLSpy are consistent with the schema.<span> </span>(The<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">first two are valid if you add in the required <header> and <work><O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">elements.<span> </span>The third is not valid because you have both an osisText and<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">an osisCorpus under osis.)<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><O:P> </O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><span> </span><O:P></O:P></span></font></pre>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;">Yes, I was just being lazy. :-)<br>
<br>
<!--[if !supportLineBreakNewLine]--><br>
<!--[endif]--><O:P></O:P></span></font></p>
<pre wrap=""><font face="Courier New" size="2"><span
style="font-size: 10pt;"><O:P> </O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><span> </span><O:P></O:P></span></font></pre>
<blockquote style="margin-top: 5pt; margin-bottom: 5pt;"
type="cite">
<pre wrap=""><font face="Courier New" size="2"><span
style="font-size: 10pt;">I checked the schema and it is quite clearly a choice, either osisText<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">or osisCorpus and the children of osisText are header and div in that<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">order (sequence).<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><O:P> </O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">Am I missing something here?<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><O:P> </O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">Patrick<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><O:P> </O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><span> </span><O:P></O:P></span></font></pre>
</blockquote>
<pre wrap=""><font face="Courier New" size="2"><span
style="font-size: 10pt;"><O:P> </O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">Does that help any or just fog things up?<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><span> </span><O:P></O:P></span></font></pre>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;">Thanks! One reason for using XMLSpy is that I doubt
very many OSIS encoders will use Emacs. Guess we need to start keeping
notes on disfunctional editing software as well!<br>
<br>
Hope you are having a great day!<br>
<br>
Patrick<br>
<br>
<!--[if !supportLineBreakNewLine]--><br>
<!--[endif]--><O:P></O:P></span></font></p>
<pre wrap=""><font face="Courier New" size="2"><span
style="font-size: 10pt;"><O:P> </O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">Todd<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><O:P> </O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">_______________________________________________<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">osis-core mailing list<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><a
href="mailto:osis-core@bibletechnologieswg.org">osis-core@bibletechnologieswg.org</a><O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><a
href="http://www.bibletechnologieswg.org/mailman/listinfo/osis-core">http://www.bibletechnologieswg.org/mailman/listinfo/osis-core</a><O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><span> </span><O:P></O:P></span></font></pre>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;"><br>
<!--[if !supportLineBreakNewLine]--><br>
<!--[endif]--><O:P></O:P></span></font></p>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">-- <O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">Patrick Durusau<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">Director of Research and Development<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">Society of Biblical Literature<O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;"><a href="mailto:pdurusau@emory.edu">pdurusau@emory.edu</a><O:P></O:P></span></font></pre>
<pre><font face="Courier New" size="2"><span
style="font-size: 10pt;">Co-Editor, ISO Reference Model for Topic Maps<O:P></O:P></span></font></pre>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;"><O:P></O:P></span></font></p>
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="$mailwrapcol">--
Patrick Durusau
Director of Research and Development
Society of Biblical Literature
<a class="moz-txt-link-abbreviated" href="mailto:pdurusau@emory.edu">pdurusau@emory.edu</a>
Co-Editor, ISO Reference Model for Topic Maps
</pre>
<br>
</blockquote>
</blockquote>
<br>
<pre class="moz-signature" cols="$mailwrapcol">--
Patrick Durusau
Director of Research and Development
Society of Biblical Literature
<a class="moz-txt-link-abbreviated" href="mailto:pdurusau@emory.edu">pdurusau@emory.edu</a>
Co-Editor, ISO Reference Model for Topic Maps
</pre>
<br>
</body>
</html>
--------------020904050306090408070703--