Changeset 112 for Xml/xsd-fu
- Timestamp:
- 10/12/07 11:46:27 (15 months ago)
- Location:
- Xml/xsd-fu/trunk/generateDS
- Files:
-
- 7 modified
-
PKG-INFO (modified) (1 diff)
-
README (modified) (1 diff)
-
generateDS.html (modified) (24 diffs)
-
generateDS.py (modified) (3 diffs)
-
setup.py (modified) (1 diff)
-
tests/out1sub.py (modified) (1 diff)
-
tests/out1sup.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Xml/xsd-fu/trunk/generateDS/PKG-INFO
r111 r112 1 1 Metadata-Version: 1.0 2 2 Name: generateDS 3 Version: 1.1 0a3 Version: 1.11a 4 4 Summary: Generation of Python data structures and XML parser from Xschema 5 5 Home-page: http://www.rexx.com/~dkuhlman -
Xml/xsd-fu/trunk/generateDS/README
r111 r112 140 140 Change history 141 141 -------------- 142 143 Version 1.11a (10/11/2007) 144 * Various added features contributed by Chris Allan. For more 145 information see: 146 http://www.rexx.com/~dkuhlman/generateDS.html#additional-features 142 147 143 148 Version 1.10a (08/21/2007, again) -
Xml/xsd-fu/trunk/generateDS/generateDS.html
r111 r112 7 7 <title>generateDS -- Generate Data Structures from XML Schema</title> 8 8 <meta name="author" content="Dave Kuhlman" /> 9 <meta name="date" content=" Aug. 21, 2007" />9 <meta name="date" content="Oct. 11, 2007" /> 10 10 <meta name="copyright" content="Copyright (c) 2004 Dave Kuhlman. This documentation and the software it describes is covered by The MIT License: http://www.opensource.org/licenses/mit-license." /> 11 11 <style type="text/css"> 12 12 13 /* training doccss */13 /* css */ 14 14 15 15 body { … … 89 89 font-size: 130%; 90 90 margin-bottom: 0.5em; 91 text-decoration: underline; 91 92 } 92 93 h4 { … … 191 192 </td></tr> 192 193 <tr><th class="docinfo-name">Revision:</th> 193 <td>1.1 0a</td></tr>194 <td>1.11a</td></tr> 194 195 <tr><th class="docinfo-name">Date:</th> 195 <td> Aug. 21, 2007</td></tr>196 <td>Oct. 11, 2007</td></tr> 196 197 <tr><th class="docinfo-name">Copyright:</th> 197 198 <td>Copyright (c) 2004 Dave Kuhlman. This documentation … … 258 259 </ul> 259 260 </li> 260 <li><a class="reference internal" href="#how-to-use-the-generated-source-code" id="id36">7 How-to Use the Generated Source Code</a><ul class="auto-toc"> 261 <li><a class="reference internal" href="#the-parsing-functions" id="id37">7.1 The parsing functions</a></li> 262 <li><a class="reference internal" href="#the-export-methods" id="id38">7.2 The export methods</a><ul class="auto-toc"> 263 <li><a class="reference internal" href="#method-export" id="id39">7.2.1 Method export</a></li> 264 <li><a class="reference internal" href="#method-exportliteral" id="id40">7.2.2 Method <tt class="docutils literal"><span class="pre">exportLiteral</span></tt></a><ul class="auto-toc"> 265 <li><a class="reference internal" href="#what-it-does" id="id41">7.2.2.1 What It Does</a></li> 266 <li><a class="reference internal" href="#why-you-might-care" id="id42">7.2.2.2 Why You Might Care</a></li> 267 <li><a class="reference internal" href="#how-to-use-it" id="id43">7.2.2.3 How to use it</a></li> 268 </ul> 269 </li> 270 </ul> 271 </li> 272 <li><a class="reference internal" href="#building-instances" id="id44">7.3 Building instances</a></li> 273 <li><a class="reference internal" href="#using-the-subclass-module" id="id45">7.4 Using the subclass module</a></li> 274 <li><a class="reference internal" href="#elements-with-attributes-but-no-nested-children" id="id46">7.5 Elements with attributes but no nested children</a></li> 275 <li><a class="reference internal" href="#id3" id="id47">7.6 Mixed content</a></li> 276 <li><a class="reference internal" href="#id5" id="id48">7.7 anyAttribute</a></li> 277 <li><a class="reference internal" href="#user-methods" id="id49">7.8 User Methods</a></li> 278 </ul> 279 </li> 280 <li><a class="reference internal" href="#how-to-modify-the-generated-code" id="id50">8 How-to Modify the Generated Code</a><ul class="auto-toc"> 281 <li><a class="reference internal" href="#adding-features-to-class-definitions" id="id51">8.1 Adding features to class definitions</a></li> 282 </ul> 283 </li> 284 <li><a class="reference internal" href="#examples-and-demonstrations" id="id52">9 Examples and Demonstrations</a></li> 285 <li><a class="reference internal" href="#limitations-of-generateds" id="id53">10 Limitations of generateDS</a><ul class="auto-toc"> 286 <li><a class="reference internal" href="#xml-schema-limitations" id="id54">10.1 XML Schema limitations</a></li> 287 <li><a class="reference internal" href="#large-documents" id="id55">10.2 Large documents</a></li> 288 </ul> 289 </li> 290 <li><a class="reference internal" href="#includes-the-xml-schema-include-element" id="id56">11 Includes -- The XML Schema include element</a></li> 291 <li><a class="reference internal" href="#see-also" id="id57">12 See Also</a></li> 261 <li><a class="reference internal" href="#additional-features" id="id36">7 Additional Features</a><ul class="auto-toc"> 262 <li><a class="reference internal" href="#xsd-list-element-support" id="id37">7.1 xsd:list element support</a></li> 263 <li><a class="reference internal" href="#xsd-enumeration-support" id="id38">7.2 xsd:enumeration support</a></li> 264 <li><a class="reference internal" href="#xsd-union-support" id="id39">7.3 xsd:union support</a></li> 265 <li><a class="reference internal" href="#extended-xsd-choice-support" id="id40">7.4 Extended xsd:choice support</a></li> 266 <li><a class="reference internal" href="#minoccurs-attribute-support" id="id41">7.5 minOccurs attribute support</a></li> 267 <li><a class="reference internal" href="#more-thorough-content-type-and-base-type-resolution" id="id42">7.6 More thorough content type and base type resolution</a></li> 268 <li><a class="reference internal" href="#making-top-level-simpletypes-available-from-xschemahandler" id="id43">7.7 Making top level simpleTypes available from XschemaHandler</a></li> 269 </ul> 270 </li> 271 <li><a class="reference internal" href="#how-to-use-the-generated-source-code" id="id44">8 How-to Use the Generated Source Code</a><ul class="auto-toc"> 272 <li><a class="reference internal" href="#the-parsing-functions" id="id45">8.1 The parsing functions</a></li> 273 <li><a class="reference internal" href="#the-export-methods" id="id46">8.2 The export methods</a><ul class="auto-toc"> 274 <li><a class="reference internal" href="#method-export" id="id47">8.2.1 Method export</a></li> 275 <li><a class="reference internal" href="#method-exportliteral" id="id48">8.2.2 Method <tt class="docutils literal"><span class="pre">exportLiteral</span></tt></a><ul class="auto-toc"> 276 <li><a class="reference internal" href="#what-it-does" id="id49">8.2.2.1 What It Does</a></li> 277 <li><a class="reference internal" href="#why-you-might-care" id="id50">8.2.2.2 Why You Might Care</a></li> 278 <li><a class="reference internal" href="#how-to-use-it" id="id51">8.2.2.3 How to use it</a></li> 279 </ul> 280 </li> 281 </ul> 282 </li> 283 <li><a class="reference internal" href="#building-instances" id="id52">8.3 Building instances</a></li> 284 <li><a class="reference internal" href="#using-the-subclass-module" id="id53">8.4 Using the subclass module</a></li> 285 <li><a class="reference internal" href="#elements-with-attributes-but-no-nested-children" id="id54">8.5 Elements with attributes but no nested children</a></li> 286 <li><a class="reference internal" href="#id3" id="id55">8.6 Mixed content</a></li> 287 <li><a class="reference internal" href="#id5" id="id56">8.7 anyAttribute</a></li> 288 <li><a class="reference internal" href="#user-methods" id="id57">8.8 User Methods</a></li> 289 </ul> 290 </li> 291 <li><a class="reference internal" href="#how-to-modify-the-generated-code" id="id58">9 How-to Modify the Generated Code</a><ul class="auto-toc"> 292 <li><a class="reference internal" href="#adding-features-to-class-definitions" id="id59">9.1 Adding features to class definitions</a></li> 293 </ul> 294 </li> 295 <li><a class="reference internal" href="#examples-and-demonstrations" id="id60">10 Examples and Demonstrations</a></li> 296 <li><a class="reference internal" href="#limitations-of-generateds" id="id61">11 Limitations of generateDS</a><ul class="auto-toc"> 297 <li><a class="reference internal" href="#xml-schema-limitations" id="id62">11.1 XML Schema limitations</a></li> 298 <li><a class="reference internal" href="#large-documents" id="id63">11.2 Large documents</a></li> 299 </ul> 300 </li> 301 <li><a class="reference internal" href="#includes-the-xml-schema-include-element" id="id64">12 Includes -- The XML Schema include element</a></li> 302 <li><a class="reference internal" href="#acknowledgment" id="id65">13 Acknowledgment</a></li> 303 <li><a class="reference internal" href="#see-also" id="id66">14 See Also</a></li> 292 304 </ul> 293 305 </div> … … 350 362 <h2><a class="toc-backref" href="#id8">2.1 Download</a></h2> 351 363 <p>You can find the distribution here: 352 <a class="reference external" href="http://www.rexx.com/~dkuhlman/generateDS-1.1 0a.tar.gz">http://www.rexx.com/~dkuhlman/generateDS-1.10a.tar.gz</a></p>364 <a class="reference external" href="http://www.rexx.com/~dkuhlman/generateDS-1.11a.tar.gz">http://www.rexx.com/~dkuhlman/generateDS-1.11a.tar.gz</a></p> 353 365 <p>It is also available at SourceForge: 354 366 <a class="reference external" href="http://sourceforge.net/projects/generateds/">http://sourceforge.net/projects/generateds/</a></p> … … 1156 1168 </div> 1157 1169 </div> 1170 <div class="section" id="additional-features"> 1171 <h1><a class="toc-backref" href="#id36">7 Additional Features</a></h1> 1172 <p>Here are additional features, contributed by users such as Chris 1173 Allan. Many thanks.</p> 1174 <div class="section" id="xsd-list-element-support"> 1175 <h2><a class="toc-backref" href="#id37">7.1 xsd:list element support</a></h2> 1176 <p>xsd:list elements can be used with a child xsd:simpleType which 1177 confuses the XschemaHandler stack unrolling. xsd:list element 1178 support should allow the following XML Schema definition to be 1179 supported in <tt class="docutils literal"><span class="pre">generateDS.py</span></tt>:</p> 1180 <pre class="literal-block"> 1181 <xsd:attribute name="Foo"> 1182 <xsd:simpleType> 1183 <xsd:list> 1184 <xsd:simpleType> 1185 ... 1186 </xsd:simpleType> 1187 </xsd:list> 1188 </xsd:simpleType> 1189 </xsd:attribute> 1190 </pre> 1191 </div> 1192 <div class="section" id="xsd-enumeration-support"> 1193 <h2><a class="toc-backref" href="#id38">7.2 xsd:enumeration support</a></h2> 1194 <p>The enumerated values for the parent element are resolved and made 1195 available through the instance attribute <tt class="docutils literal"><span class="pre">values</span></tt>.</p> 1196 </div> 1197 <div class="section" id="xsd-union-support"> 1198 <h2><a class="toc-backref" href="#id39">7.3 xsd:union support</a></h2> 1199 <p>In order to properly resolve and query types which are unions in 1200 an XML Schema, an element's membership in an xsd:union is 1201 available through the instance attribute <tt class="docutils literal"><span class="pre">unionOf</span></tt>.</p> 1202 </div> 1203 <div class="section" id="extended-xsd-choice-support"> 1204 <h2><a class="toc-backref" href="#id40">7.4 Extended xsd:choice support</a></h2> 1205 <p>When a parent xsd:choice is exists, an element's "maxOccurs" and 1206 "minOccurs" values can be inherited from the xsd:choice rather 1207 than the element itself. xsd:choice elements have been added to 1208 the child element via the <tt class="docutils literal"><span class="pre">choice</span></tt> instance attribute and are 1209 now used in the "maxOccurs" and "minOccurs" attribute resolution. 1210 This should allow the following XML Schema definition to be 1211 supported in <tt class="docutils literal"><span class="pre">generateDS.py</span></tt>:</p> 1212 <pre class="literal-block"> 1213 <xsd:element name="Foo"> 1214 <xsd:complexType> 1215 <xsd:choice maxOccurs="unbounded"> 1216 <xsd:element ref="Bar"/> 1217 <xsd:element ref="Baz"/> 1218 </xsd:choice> 1219 </xsd:complexType> 1220 </xsd:element> 1221 </pre> 1222 </div> 1223 <div class="section" id="minoccurs-attribute-support"> 1224 <h2><a class="toc-backref" href="#id41">7.5 minOccurs attribute support</a></h2> 1225 <p>Some applications require the availability of the "minOccurs" 1226 attribute in addition to the previous minimal support of 1227 "optionality". This is available through the <tt class="docutils literal"><span class="pre">getMinOccurs</span></tt> 1228 method (which follows the style of the existing API).</p> 1229 </div> 1230 <div class="section" id="more-thorough-content-type-and-base-type-resolution"> 1231 <h2><a class="toc-backref" href="#id42">7.6 More thorough content type and base type resolution</a></h2> 1232 <p>The previous content type and base type resolution is insufficient 1233 for some needs. Basically it was unable to handle more complex 1234 and shared element and simpleType definitions. This support has 1235 been extended to more correctly resolve the base type and properly 1236 indicate the content type of the element. This should provide the 1237 ability to handle more complex XML Schema definitions in 1238 <tt class="docutils literal"><span class="pre">generateDS.py</span></tt>. Documentation on the algorithm for how this is 1239 achieved is available as comments in the source code of 1240 <tt class="docutils literal"><span class="pre">generateDS.py</span></tt> -- see comments in method <tt class="docutils literal"><span class="pre">resolve_type</span></tt> in 1241 class <tt class="docutils literal"><span class="pre">XschemaElement</span></tt>.</p> 1242 </div> 1243 <div class="section" id="making-top-level-simpletypes-available-from-xschemahandler"> 1244 <h2><a class="toc-backref" href="#id43">7.7 Making top level simpleTypes available from XschemaHandler</a></h2> 1245 <p>Some developers working to extend the analysis and code generation 1246 in <tt class="docutils literal"><span class="pre">generateDS.py</span></tt> may be helped by additional information 1247 collected during the parsing of the XML Schema file.</p> 1248 <p>Some applications need all the top level simpleTypes to be 1249 available for further queries after the SAX parser has completed 1250 its work and after all types have been resolved. These types are 1251 available as an instance attribute <tt class="docutils literal"><span class="pre">topLevelSimpleTypes</span></tt> inside 1252 <tt class="docutils literal"><span class="pre">XschemaHandler</span></tt>.</p> 1253 </div> 1254 </div> 1158 1255 <div class="section" id="how-to-use-the-generated-source-code"> 1159 <h1><a class="toc-backref" href="#id 36">7 How-to Use the Generated Source Code</a></h1>1256 <h1><a class="toc-backref" href="#id44">8 How-to Use the Generated Source Code</a></h1> 1160 1257 <div class="section" id="the-parsing-functions"> 1161 <h2><a class="toc-backref" href="#id 37">7.1 The parsing functions</a></h2>1258 <h2><a class="toc-backref" href="#id45">8.1 The parsing functions</a></h2> 1162 1259 <p>The simplest use is to call one of the parsing functions in the 1163 1260 generated source file. You may be able to use one of these … … 1185 1282 </div> 1186 1283 <div class="section" id="the-export-methods"> 1187 <h2><a class="toc-backref" href="#id 38">7.2 The export methods</a></h2>1284 <h2><a class="toc-backref" href="#id46">8.2 The export methods</a></h2> 1188 1285 <p>The generated classes contain methods <tt class="docutils literal"><span class="pre">export</span></tt> and 1189 1286 <tt class="docutils literal"><span class="pre">exportLiteral</span></tt> which can be called to export classes to several … … 1192 1289 functions for examples showing how to call the export methods.</p> 1193 1290 <div class="section" id="method-export"> 1194 <h3><a class="toc-backref" href="#id 39">7.2.1 Method export</a></h3>1291 <h3><a class="toc-backref" href="#id47">8.2.1 Method export</a></h3> 1195 1292 <p>The export method in generated classes writes out an XML document 1196 1293 that represents the instance that contains it and its child … … 1201 1298 </div> 1202 1299 <div class="section" id="method-exportliteral"> 1203 <h3><a class="toc-backref" href="#id4 0">7.2.2 Method <tt class="docutils literal"><span class="pre">exportLiteral</span></tt></a></h3>1300 <h3><a class="toc-backref" href="#id48">8.2.2 Method <tt class="docutils literal"><span class="pre">exportLiteral</span></tt></a></h3> 1204 1301 <p><tt class="docutils literal"><span class="pre">generateDS.py</span></tt> generates Python classes that represent the 1205 1302 elements in an XML document, given an Xschema definition of the … … 1208 1305 classes that represent an XML document.</p> 1209 1306 <div class="section" id="what-it-does"> 1210 <h4><a class="toc-backref" href="#id4 1">7.2.2.1 What It Does</a></h4>1307 <h4><a class="toc-backref" href="#id49">8.2.2.1 What It Does</a></h4> 1211 1308 <p>When <tt class="docutils literal"><span class="pre">generateDS.py</span></tt> generates the Python source code for your 1212 1309 classes, this new feature also generates an <tt class="docutils literal"><span class="pre">exportLiteral</span></tt> … … 1222 1319 </div> 1223 1320 <div class="section" id="why-you-might-care"> 1224 <h4><a class="toc-backref" href="#id 42">7.2.2.2 Why You Might Care</a></h4>1321 <h4><a class="toc-backref" href="#id50">8.2.2.2 Why You Might Care</a></h4> 1225 1322 <p><tt class="docutils literal"><span class="pre">generateDS.py</span></tt> was designed and built with the assumption that 1226 1323 we are <em>not</em> interested in marking up text content at all. What … … 1265 1362 </div> 1266 1363 <div class="section" id="how-to-use-it"> 1267 <h4><a class="toc-backref" href="#id 43">7.2.2.3 How to use it</a></h4>1364 <h4><a class="toc-backref" href="#id51">8.2.2.3 How to use it</a></h4> 1268 1365 <p>See the generated function <tt class="docutils literal"><span class="pre">parseLiteral</span></tt> for an example of how 1269 1366 to use <tt class="docutils literal"><span class="pre">exportLiteral</span></tt>.</p> … … 1272 1369 </div> 1273 1370 <div class="section" id="building-instances"> 1274 <h2><a class="toc-backref" href="#id 44">7.3 Building instances</a></h2>1371 <h2><a class="toc-backref" href="#id52">8.3 Building instances</a></h2> 1275 1372 <p>If you have an instance of a minidom node that represents an 1276 1373 element in an XML document, you can also use the 'build' member … … 1292 1389 </div> 1293 1390 <div class="section" id="using-the-subclass-module"> 1294 <h2><a class="toc-backref" href="#id 45">7.4 Using the subclass module</a></h2>1391 <h2><a class="toc-backref" href="#id53">8.4 Using the subclass module</a></h2> 1295 1392 <p>If you choose to use the generated subclass module, and I 1296 1393 encourage you to do so, you may need to edit and modify that … … 1319 1416 </div> 1320 1417 <div class="section" id="elements-with-attributes-but-no-nested-children"> 1321 <h2><a class="toc-backref" href="#id 46">7.5 Elements with attributes but no nested children</a></h2>1418 <h2><a class="toc-backref" href="#id54">8.5 Elements with attributes but no nested children</a></h2> 1322 1419 <p>Element definitions that contain attributes but <em>no</em> nested child 1323 1420 elements provide access to their data content through getter and … … 1326 1423 </div> 1327 1424 <div class="section" id="id3"> 1328 <span id="id2"></span><h2><a class="toc-backref" href="#id 47">7.6 Mixed content</a></h2>1425 <span id="id2"></span><h2><a class="toc-backref" href="#id55">8.6 Mixed content</a></h2> 1329 1426 <p>The goal of <tt class="docutils literal"><span class="pre">generateDS.py</span></tt> is to support data structures 1330 1427 represented in XML as opposed to text mark-up. However, it does … … 1394 1491 </div> 1395 1492 <div class="section" id="id5"> 1396 <span id="id4"></span><h2><a class="toc-backref" href="#id 48">7.7 anyAttribute</a></h2>1493 <span id="id4"></span><h2><a class="toc-backref" href="#id56">8.7 anyAttribute</a></h2> 1397 1494 <p>For elements that specify <tt class="docutils literal"><span class="pre">anyAttributes</span></tt>, <tt class="docutils literal"><span class="pre">generateDS.py</span></tt> 1398 1495 produces a class containing the following:</p> … … 1415 1512 </div> 1416 1513 <div class="section" id="user-methods"> 1417 <h2><a class="toc-backref" href="#id 49">7.8 User Methods</a></h2>1514 <h2><a class="toc-backref" href="#id57">8.8 User Methods</a></h2> 1418 1515 <p><tt class="docutils literal"><span class="pre">generateDS.py</span></tt> provides a mechanism that enables you to attach 1419 1516 user defined methods to specific generated classes. In order to … … 1521 1618 </div> 1522 1619 <div class="section" id="how-to-modify-the-generated-code"> 1523 <h1><a class="toc-backref" href="#id5 0">8 How-to Modify the Generated Code</a></h1>1620 <h1><a class="toc-backref" href="#id58">9 How-to Modify the Generated Code</a></h1> 1524 1621 <p>This section attempts to explain how to modify and add features to 1525 1622 the generated code.</p> 1526 1623 <div class="section" id="adding-features-to-class-definitions"> 1527 <h2><a class="toc-backref" href="#id5 1">8.1 Adding features to class definitions</a></h2>1624 <h2><a class="toc-backref" href="#id59">9.1 Adding features to class definitions</a></h2> 1528 1625 <p>You can add new member definitions to a generated class. Look at 1529 1626 the 'export' and 'exportLiteral' member functions for examples of … … 1570 1667 </div> 1571 1668 <div class="section" id="examples-and-demonstrations"> 1572 <h1><a class="toc-backref" href="#id 52">9 Examples and Demonstrations</a></h1>1669 <h1><a class="toc-backref" href="#id60">10 Examples and Demonstrations</a></h1> 1573 1670 <p>Under the directory Demos are several examples:</p> 1574 1671 <ul class="simple"> … … 1596 1693 </div> 1597 1694 <div class="section" id="limitations-of-generateds"> 1598 <h1><a class="toc-backref" href="#id 53">10 Limitations of generateDS</a></h1>1695 <h1><a class="toc-backref" href="#id61">11 Limitations of generateDS</a></h1> 1599 1696 <div class="section" id="xml-schema-limitations"> 1600 <h2><a class="toc-backref" href="#id 54">10.1 XML Schema limitations</a></h2>1697 <h2><a class="toc-backref" href="#id62">11.1 XML Schema limitations</a></h2> 1601 1698 <p>There are things in Xschema that are not supported. You will have 1602 1699 to use a restricted sub-set of Xschema to define your data … … 1607 1704 </div> 1608 1705 <div class="section" id="large-documents"> 1609 <h2><a class="toc-backref" href="#id 55">10.2 Large documents</a></h2>1706 <h2><a class="toc-backref" href="#id63">11.2 Large documents</a></h2> 1610 1707 <p><strong>Warning</strong> -- This section describes an optional generated SAX 1611 1708 parser which, I believe, is currently broken for all but the … … 1634 1731 </div> 1635 1732 <div class="section" id="includes-the-xml-schema-include-element"> 1636 <h1><a class="toc-backref" href="#id 56">11 Includes -- The XML Schema include element</a></h1>1733 <h1><a class="toc-backref" href="#id64">12 Includes -- The XML Schema include element</a></h1> 1637 1734 <p>While <tt class="docutils literal"><span class="pre">generateDS.py</span></tt> itself does not process XML Schema 1638 1735 <tt class="docutils literal"><span class="pre">include</span></tt> elements, the distribution provides a script … … 1665 1762 </pre> 1666 1763 </div> 1764 <div class="section" id="acknowledgment"> 1765 <h1><a class="toc-backref" href="#id65">13 Acknowledgment</a></h1> 1766 <p>Many thanks to those who have used <tt class="docutils literal"><span class="pre">generateDS.py</span></tt> and have 1767 contributed their comments and suggestions. These comments have 1768 been valuable both in teaching me about things I needed to know in 1769 order to continue work and in motivating me to do the work in the 1770 first place.</p> 1771 <p>And, a special thanks to those of you who have contributed patches 1772 for fixes and new features. Recent help has been provided by the 1773 following among others:</p> 1774 <ul class="simple"> 1775 <li>Chris Allan -- for several feature additions.</li> 1776 </ul> 1777 </div> 1667 1778 <div class="section" id="see-also"> 1668 <h1><a class="toc-backref" href="#id 57">12 See Also</a></h1>1779 <h1><a class="toc-backref" href="#id66">14 See Also</a></h1> 1669 1780 <p><a class="reference external" href="http://www.python.org">Python</a>: The Python home page.</p> 1670 1781 <p><a class="reference external" href="http://www.rexx.com/~dkuhlman">Dave's Page</a>: My home page, which contains more Python stuff.</p> -
Xml/xsd-fu/trunk/generateDS/generateDS.py
r111 r112 9 9 python generateDS.py [ options ] - 10 10 Options: 11 -h, --help Display this help information. 11 12 -o <outfilename> Output file name for data representation classes 12 13 -s <subclassfilename> Output file name for subclasses … … 3690 3691 UserMethodsPath 3691 3692 args = sys.argv[1:] 3692 options, args = getopt.getopt(args, ' fyo:s:p:a:b:mu:',3693 [' subclass-suffix=', 'root-element=', 'super=',3693 options, args = getopt.getopt(args, 'hfyo:s:p:a:b:mu:', 3694 ['help', 'subclass-suffix=', 'root-element=', 'super=', 3694 3695 'validator-bodies=', 'use-old-getter-setter', 3695 3696 'user-methods=', … … 3702 3703 superModule = '???' 3703 3704 for option in options: 3704 if option[0] == '-p': 3705 if option[0] == '-h' or option[0] == '--help': 3706 usage() 3707 elif option[0] == '-p': 3705 3708 prefix = option[1] 3706 3709 elif option[0] == '-o': -
Xml/xsd-fu/trunk/generateDS/setup.py
r111 r112 3 3 4 4 setup(name="generateDS", 5 version="1.1 0a",5 version="1.11a", 6 6 description="Generation of Python data structures and XML parser from Xschema", 7 7 author="Dave Kuhlman", -
Xml/xsd-fu/trunk/generateDS/tests/out1sub.py
r111 r112 2 2 3 3 # 4 # Generated Tue Aug 21 11:04:532007 by generateDS.py.4 # Generated Tue Oct 9 11:33:52 2007 by generateDS.py. 5 5 # 6 6 -
Xml/xsd-fu/trunk/generateDS/tests/out1sup.py
r111 r112 2 2 3 3 # 4 # Generated Tue Aug 21 11:04:52 2007 by generateDS.py.4 # Generated Tue Oct 9 11:33:52 2007 by generateDS.py. 5 5 # 6 6 … … 342 342 outfile.write(' %s="%s"' % (name, value, )) 343 343 def exportChildren(self, outfile, level, name_='person'): 344 if self.get Name() != None :345 showIndent(outfile, level) 346 outfile.write('<name>%s</name>\n' % quote_xml(self.get Name()))344 if self.get_name() != None : 345 showIndent(outfile, level) 346 outfile.write('<name>%s</name>\n' % quote_xml(self.get_name())) 347 347 showIndent(outfile, level) 348 348 outfile.write('<ratio>%s</ratio>\n' % quote_xml(self.get_ratio()))
