Actually, I ran into this problem too, using gends_run_gen_django.py.  
It gave an "unhandled simple type" error for xs:anyURI as well as 
xs:duration and xs:Name.  When I looked at generatedssuper.py, I saw 
that although these types appeared in the Simple_Type_Table, they didn't 
appear in any of the more specific ones that get searched in 
generate_model_.  So I added them to String_Type_Table and that did the 
trick.

Regards,
Allyn

On 10/05/2011 06:03 PM, Dave Kuhlman wrote:
>> From: Robert Magee
>> Sent: Wednesday, October 5, 2011 12:31 PM
>>
>>
>> It's me again!  I've been using generateDS with the enclosed schema
>> and it seems like it is having problems with the base64Binary and
>> anyURI XML data-types.  I did see on the generateDS sourceforge site
>> that this has been mentioned before.  It looks like both of these
>> types inherit from the 'anySimpleType'…
>>
>> Here is the XML datatype spec:
>> http://www.w3.org/TR/2004/PER-xmlschema-2-20040318/#built-in-datatypes
>>
>> Included is the schema I was trying to generate the data structures
>> for.  I am wondering if there is a work-around: like changing the
>> values from 'base64Binary' to 'string' or something along those
>> lines?
>>
>> Hope all is well- and thanks, as always, for the great tool.
>>
> Rob -
>
> Good to hear from you again.
>
> Looking at the generateDS.py code, it appears that it already
> handles xs:anyURI, although it does not do much.  It merely treats
> it as a string.
>
> I supose that we could do the same thing with xs:base64Binary,
> specifically (1) during parse/build, capture the value as a string
> and (2) during export, write the value out as a string.  Would that
> be enough?  If so, that's an easy fix to make.
>
> Hope things are going well with you and your work.
>
> - Dave
>
>
>


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to