diff --git a/xsd-fu/python/generateDS/generateDS.html b/xsd-fu/python/generateDS/generateDS.html index 52c4d0282..a5e7af2a7 100644 --- a/xsd-fu/python/generateDS/generateDS.html +++ b/xsd-fu/python/generateDS/generateDS.html @@ -2068,7 +2068,7 @@

13.1   Capturing xs:date

Then, define date_calcs.py as:

 #!/usr/bin/env python
-# -*- mode: pymode; coding: utf-8; -*-
+# -*- mode: pymode; -*-
 
 import datetime
 
@@ -2147,13 +2147,6 @@ 

15   Includes -- The XML script scans your XML Schema document and, recursively, documents that are included looking for include elements; it inserts all content into a single document, which it writes out.

-

Since process_includes.py uses the ElementTree API, in order -to use process_includes.py you will need one of the following:

-

Here are samples of how you might use process_includes.py, if your schema contains include elements.

Example 1:

diff --git a/xsd-fu/python/generateDS/generateDS.py b/xsd-fu/python/generateDS/generateDS.py index 39fb5138e..0c0a9bc8e 100755 --- a/xsd-fu/python/generateDS/generateDS.py +++ b/xsd-fu/python/generateDS/generateDS.py @@ -85,10 +85,6 @@ -#from __future__ import generators # only needed for Python 2.2 - - - import sys import os.path import time @@ -905,7 +901,7 @@ def getKeys(self): def add(self, name, attr): self.group[name] = attr def delete(self, name): - if has_key(self.group, name): + if name in self.group: del self.group[name] return 1 else: diff --git a/xsd-fu/python/generateDS/process_includes.py b/xsd-fu/python/generateDS/process_includes.py index 39aa58626..7b34b50ae 100755 --- a/xsd-fu/python/generateDS/process_includes.py +++ b/xsd-fu/python/generateDS/process_includes.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# -*- mode: pymode; coding: utf-8; -*- +# -*- mode: pymode; -*- """ Synopsis: Recursively process the include elements in an XML Schema file.