Context Sensitive Element Definitions in W3C XSD Schema?
Steve Batides <[email protected]> Fri, 23 Aug 2013 20:27:51 -0600
| Newsgroups | gmane.text.xml.schema.devel |
|---|---|
| Message-ID | <[email protected]> |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
Is this email address the equivalent of a forum post?<br>
<br>
I know of know way to achieve this with the W3C schema rec 1.0 and
I've always assumed it's impossible, but it's been such a pain for
so long I thought I should at least ask if anyone knew of some
clever way to achieve it. I havent read the 1.1 rec, but I believe
it has some sort of context-based defns allowed. Unfortunately, I am
not in a situation to be using 1.1 with any of our clients, so what
I can do with 1.0 is all I have to work with.<br>
<br>
Basically I need to define a hierarchical set of IF/ELSE/ELSEIF
elements that can be used to contain children, and I need the
children allowed to be whatever elements are allowed inside the
*PARENT* of the IF. Because the IF/ELSE/ELSEIF can occur inside most
elements in the schema, all of which have quite different content
models, the only way that I know of to support these requirements is
to allow IF/ELSE/ELSEIF to contain just about anything in the
overall schema. That is bad for obvious reasons; it allows tons of
stuff to be populated where it really has no business existing
because the IF/ELSE/ELSEIF allows so much.<br>
<br>
Does anyone know of any way to effectively have an element (in this
case IF/ELSE/ELSEIF) mimic the content model of it's parent to
support the requirements above, while only allowing elements that
really "belong" as 'grandchildren'?
<div class="moz-signature">-- <br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<p><span style="font-size: 9pt; line-height: 20%; font-family:
"Arial","sans-serif";" lang="EN-US">Regards,</span></p>
<p><span><span style="font-size: 9pt; line-height: 20%;
font-family: "Arial","sans-serif";"
lang="EN-US">steve</span></span><span style="font-size: 9pt;
line-height: 20%; font-family:
"Arial","sans-serif";" lang="EN-US">...</span></p>
<br>
<p><b><span style="font-size: 9pt; line-height: 20%; font-family:
"Arial","sans-serif"; color: rgb(153,
153, 153);" lang="EN-US">-- </span></b></p>
<p style="margin-bottom: 0.0001pt;"><b><span style="font-size:
9pt; line-height: 20%; font-family:
"Arial","sans-serif"; color: rgb(153,
153, 153);" lang="EN-US">Steve Batides</span></b></p>
<p style="margin-bottom: 0.0001pt;"><b><span style="font-size:
9pt; line-height: 20%; font-family:
"Arial","sans-serif"; color: rgb(153,
153, 153);" lang="EN-US">MOLTEK Inc.</span></b></p>
<p style="margin-bottom: 0.0001pt;"><span><b><span
style="font-size: 9pt; line-height: 20%; font-family:
"Arial","sans-serif"; color: rgb(153,
153, 153);" lang="EN-US">mobile</span></b></span><b><span
style="font-size: 9pt; line-height: 20%; font-family:
"Arial","sans-serif"; color: rgb(153,
153, 153);" lang="EN-US">: 1-727-505-1473</span></b></p>
<p style="margin-bottom: 0.0001pt;"><span class="SpellE"><span><b><span
style="font-size: 9pt; line-height: 20%; font-family:
"Arial","sans-serif"; color:
rgb(153, 153, 153);" lang="EN-US">vmail</span></b></span></span><b><span
style="font-size: 9pt; line-height: 20%; font-family:
"Arial","sans-serif"; color: rgb(153,
153, 153);" lang="EN-US">:<span style=""> </span>1-877-650-8479<span
style=""> </span>x1002</span></b></p>
<p style="margin-bottom: 0.0001pt;"><b><span style="font-size:
9pt; line-height: 20%; font-family:
"Arial","sans-serif"; color: rgb(153,
153, 153);" lang="EN-US"><a class="moz-txt-link-abbreviated"
href="mailto:[email protected]">[email protected]</a></span></b></p>
<p><b><span style="font-size: 9pt; line-height: 20%; font-family:
"Arial","sans-serif"; color: rgb(153,
153, 153);" lang="EN-US"><a href="http://www.moltek.com">www.moltek.com</a></span></b></p>
<br>
<p><b><span style="font-size: 10pt; line-height: 115%;
font-family: "Arial","sans-serif";
color: rgb(153, 153, 153);" lang="EN-US">**THE CONTENT OF
THIS EMAIL IS MOLTEK PROPRIETARY**</span></b></p>
<b><span style="font-size: 7.5pt; line-height: 115%; font-family:
"Arial","sans-serif"; color: rgb(153, 153,
153);" lang="EN-US">DISCLAIMER</span></b><span
style="font-size: 7.5pt; line-height: 115%; font-family:
"Arial","sans-serif"; color: rgb(153, 153,
153);" lang="EN-US"> <br>
<br>
<b>Encryption and Viruses:</b> This e-mail and any attachments
may not have not been encrypted and therefore they may be liable
to be compromised. Viruses and compromises of security are
inherent risks in relation to e-mail and consequently it is your
responsibility to scan this e-mail and any attachments for
viruses. We do not, to the extent permitted by law, accept any
liability (whether in contract, negligence or otherwise) for any
virus infection and/or external compromise of security and/or
confidentiality in relation to transmissions sent by e-mail.<br>
<br>
<b>Confidentiality Notice:</b> The information contained within
this is confidential and is intended for the named recipients
only. If you are not one of the intended recipients as indicated
in the TO, CC and BCC fields, please return it to this firm by
e-mail quoting the name of the sender and the addressee. Please
then delete it from your system.</span>
</div>
</body>
</html>