Re: Context Sensitive Element Definitions in W3C XSD Schema?

Steve Batides <[email protected]> Sun, 25 Aug 2013 16:47:05 -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">
    Thanks Michael, you made it clear I needed to think a bit more
    comprehensively about what I put into my question. My apologies for
    that; I left out a key factor in my question.<br>
    <br>
    I had thought about the solution you mentioned, and the possibility
    of creating an automated dev tool (presumably xslt) that would run
    through the schema and insert a local element declaration for the IF
    inside each element, mimicking the content model of the parent, such
    that I could run it whenever doing mods to the schema. The
    showstopper, as far as I know, was that the IF element is in a
    different namespace from the various elements of which it is a
    child. These IFs are used for a specific purpose during certain
    "phases" of XSLT that we run instance files through, and
    consequently they are defined in a specific namespace with other
    elements used for related types of parsing. As far as I could figure
    out, though I could be wrong, there is no way to create a local
    definition for an element in a different namespace from it's parent;
    is that right? <br>
    <br>
    I know Im creating a seriously constrained problem, but that's why
    we've ignored it for so long and left in this undesirable allowance
    of the whole "kitchen sink" being insertable within these IF
    elements. It's a big enough issue that I've considered changing the
    namespaces, but that would be a backwards-incompatible change that
    would be unacceptable to all our clients with deployed systems. It
    would be nice to phase the namespace out, but we'd have to double-up
    on the IF elements allowed and probably confuse clients.<br>
    <br>
    <br>
    <br>
    <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:
          &quot;Arial&quot;,&quot;sans-serif&quot;;" lang="EN-US">Regards,</span></p>
      <p><span><span style="font-size: 9pt; line-height: 20%;
            font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;"
            lang="EN-US">steve</span></span><span style="font-size: 9pt;
          line-height: 20%; font-family:
          &quot;Arial&quot;,&quot;sans-serif&quot;;" lang="EN-US">...</span></p>
      <br>
      <p><b><span style="font-size: 9pt; line-height: 20%; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; 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:
            &quot;Arial&quot;,&quot;sans-serif&quot;; 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:
            &quot;Arial&quot;,&quot;sans-serif&quot;; 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:
              &quot;Arial&quot;,&quot;sans-serif&quot;; color: rgb(153,
              153, 153);" lang="EN-US">mobile</span></b></span><b><span
            style="font-size: 9pt; line-height: 20%; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; 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:
                &quot;Arial&quot;,&quot;sans-serif&quot;; color:
                rgb(153, 153, 153);" lang="EN-US">vmail</span></b></span></span><b><span
            style="font-size: 9pt; line-height: 20%; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; color: rgb(153,
            153, 153);" lang="EN-US">:<span style="">&nbsp;&nbsp;&nbsp;&nbsp; </span>1-877-650-8479<span
              style="">&nbsp; </span>x1002</span></b></p>
      <p style="margin-bottom: 0.0001pt;"><b><span style="font-size:
            9pt; line-height: 20%; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; 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:
            &quot;Arial&quot;,&quot;sans-serif&quot;; 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: &quot;Arial&quot;,&quot;sans-serif&quot;;
            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:
          &quot;Arial&quot;,&quot;sans-serif&quot;; color: rgb(153, 153,
          153);" lang="EN-US">DISCLAIMER</span></b><span
        style="font-size: 7.5pt; line-height: 115%; font-family:
        &quot;Arial&quot;,&quot;sans-serif&quot;; 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>