Xython - XML-Formed Python

Alan Kennedy alanmk at hotmail.com
Mon Feb 4 04:42:33 EST 2002


Gerard Braad <g_braad at survion.com> wrote:
> Any help would be appreciated. We hope this will become a standard for
> inclusion of Python in XML documents.

Gerard,

I don't understand what's wrong with

<script language="python" xml:space="preserve">
    def messiah():
        print "He's NOT the Messiah."
        print "He's a very naughty boy."
</script>

or something similar.

Alan.

P.S. It's from "The Life of Brian", in case you're wondering.



More information about the Python-list mailing list