By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,772 Members | 906 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,772 IT Pros & Developers. It's quick & easy.

Python - CGI - XML - XSD

P: n/a
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
Mar 12 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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
Mar 12 '08 #2

P: n/a
On Mar 12, 6:32*am, "Diez B. Roggisch" <de...@nospam.web.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
Mar 12 '08 #3

P: n/a
xkenneth wrote:
On Mar 12, 6:32 am, "Diez B. Roggisch" <de...@nospam.web.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
Mar 12 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.