Hi Dave, <element name="Reference" type="ds:ReferenceType"/> The DigestValue element is associated with the ‘ds’ namespace just like Transforms and DigestMethod, but the generated code for this element looks different. def exportChildren(self, outfile, level, namespace_='oadr:', name_='ReferenceType', fromsubclass_=False, pretty_print=True): Notice that both Transforms and DigestMethod are exported with namespace_=‘ds:’ but for some reason, DigestValue is exported with the default namespace for exportChildren which in this case is namespace=‘oadr:’. The generated code looks similar if I process only the XML Signature XSD but in this case, the default namespace is ‘ds:’ so it generates correctly. I’ve tried unsuccessfully to isolate just a portion of the XSD to make this happen but haven’t been able to do it. I’m attaching the XML Signature XSD which can be used to generate code that will exhibit the behavior described above. I’m happy to experiment further if you can’t point me in the right direction ;-) BTW, I am able to work around the issue by hand editing the generated code and replacing namespace_ with ‘ds:’. -Bob |
xmldsig-core-schema.xsd
Description: Binary data
Kisensum | 344 Thomas Berkley Way #260 | Oakland, CA, 94612 |
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ generateds-users mailing list generateds-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/generateds-users