Hi all,

I guess this question is more for Andre, Theres is something in your namespace 
handling code that I don't understand :

In the startelement method (840) there is :

            for name, value in attrs.items():
                if name[:6] == 'xmlns:':
                    nameSpace = name[6:] + ':'
                    if value == 'http://www.w3.org/2001/XMLSchema':
                        set_type_constants(nameSpace)
                    NamespacesDict[value] = nameSpace
                elif name == 'targetNamespace':
                    Targetnamespace = value

and in the generateClasses (2600ish)

    if Targetnamespace in NamespacesDict:
        namespace = NamespacesDict[Targetnamespace]
    else:
        namespace = ''

And nowhere else in the code you touch the NamespacesDict, That mean that the 
test is always false and namespace always an empty string.

Don't we want to use the TargetNamespace directly instead ?

Cheers,
Guillaume 
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to