Python - CGI - XML - XSD

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • xkenneth

    Python - CGI - XML - XSD

    Hi All,

    Quick question. I've got an XML schema file (XSD) that I've
    written, that works fine when my data is present as an XML file.
    (Served out by apache2.) Now when I call python as a cgi script, and
    tell it print out all of the same XML, also served up by apache2, the
    XSD is not applied. Does this have to do with which content type i
    defined when printing the xml to stdout?

    Regards,
    Kenneth Miller
  • Diez B. Roggisch

    #2
    Re: Python - CGI - XML - XSD

    xkenneth wrote:
    Hi All,
    >
    Quick question. I've got an XML schema file (XSD) that I've
    written, that works fine when my data is present as an XML file.
    (Served out by apache2.) Now when I call python as a cgi script, and
    tell it print out all of the same XML, also served up by apache2, the
    XSD is not applied. Does this have to do with which content type i
    defined when printing the xml to stdout?
    Who's applying the stylesheet? The browser, some application like XmlSpy or
    what?

    Diez

    Comment

    • xkenneth

      #3
      Re: Python - CGI - XML - XSD

      On Mar 12, 6:32 am, "Diez B. Roggisch" <de...@nospam.w eb.dewrote:
      xkenneth wrote:
      Hi All,
      >
         Quick question. I've got an XML schema file (XSD) that I've
      written, that works fine when my data is present as an XML file.
      (Served out by apache2.) Now when I call python as a cgi script, and
      tell it print out all of the same XML, also served up by apache2, the
      XSD is not applied. Does this have to do with which content type i
      defined when printing the xml to stdout?
      >
      Who's applying the stylesheet? The browser, some application like XmlSpy or
      what?
      >
      Diez
      The browser.

      Regards,
      Kenneth Miller

      Comment

      • Stefan Behnel

        #4
        Re: Python - CGI - XML - XSD

        xkenneth wrote:
        On Mar 12, 6:32 am, "Diez B. Roggisch" <de...@nospam.w eb.dewrote:
        >xkenneth wrote:
        >>Hi All,
        >> Quick question. I've got an XML schema file (XSD) that I've
        >>written, that works fine when my data is present as an XML file.
        >>(Served out by apache2.) Now when I call python as a cgi script, and
        >>tell it print out all of the same XML, also served up by apache2, the
        >>XSD is not applied. Does this have to do with which content type i
        >>defined when printing the xml to stdout?
        >Who's applying the stylesheet? The browser, some application like XmlSpy or
        >what?
        >
        The browser.
        Well, why should it validate your file? Browsers don't do that just for fun.

        Stefan

        Comment

        Working...