← Back to team overview

mlhim-specs-dev team mailing list archive

[Branch ~cdd-dev/cdd/trunk] Rev 245: Corrected enumeration annotation issues.

 

------------------------------------------------------------
revno: 245
committer: Timothy W. Cook <timothywayne.cook@xxxxxxxxx>
branch nick: cdd
timestamp: Sun 2012-09-02 12:09:26 -0300
message:
  Corrected enumeration annotation issues.
modified:
  src/xls2ccd/xls2ccd.py


--
lp:cdd
https://code.launchpad.net/~cdd-dev/cdd/trunk

Your team MLHIM Specifications Developers is subscribed to branch lp:cdd.
To unsubscribe from this branch go to https://code.launchpad.net/~cdd-dev/cdd/trunk/+edit-subscription
=== modified file 'src/xls2ccd/xls2ccd.py'
--- src/xls2ccd/xls2ccd.py	2012-08-31 13:54:52 +0000
+++ src/xls2ccd/xls2ccd.py	2012-09-02 15:09:26 +0000
@@ -207,12 +207,13 @@
         for n in range(8, len(ccd_dict[k])):
             enum = (ccd_dict[k][n][0]).replace("'",'')
             adoc = (ccd_dict[k][n][1]).replace("'",'') + " : " + (ccd_dict[k][n][2]).replace("'",'')
-            f.write("""       <xs:enumeration value='"""+enum+"""'/>
-                                 <!--<xs:annotation>
+            f.write("""       <xs:enumeration value='"""+enum+"""'>
+                                 <xs:annotation>
                                     <xs:documentation>
                                       """ + adoc + """
                                     </xs:documentation>
-                                 </xs:annotation>-->
+                                 </xs:annotation>
+                             </xs:enumeration>
             """)
         f.write("""
               </xs:restriction>