Rafael Ferreira <[EMAIL PROTECTED]> writes:

> 
> Hi there, 
> 
> I'm trying to use generateDS to parse the SIF xsd schema (which is quite
> complex)
> 
> http://www.sifinfo.org/infrastructure/1.5r1/XSD.zip
> 
> and I get the following error:
> 
> [rafael <at> stan generateDS-1.9a]$ ./generateDS.py
> ~/dev/SIF/XSD/SIF_Message.xsd 
> Traceback (most recent call last):
>   File "./generateDS.py", line 3446, in ?
>     main()
>   File "./generateDS.py", line 3438, in main
>     xschemaFileName, behaviorFilename, superModule=superModule)
>   File "./generateDS.py", line 3349, in parseAndGenerate
>     root.annotate()
> AttributeError: 'NoneType' object has no attribute 'annotate'
> 
> SIF_Message.xsd is actually the "root" element that includes a bunch of
> other xsd files.
> 
> Any ideas? 

Rafael -

While I suspect other problems as well, generateDS.py does not
handle includes (that is the <include> element).

So, ...

I've implemented a script (process_includes.py) that processes
a document containing include elements and creates a single
document containing all the content.

Look here for a bit of documentation (you will have to piece the long URL back 
together yourself):

    http://www.rexx.com/~dkuhlman/generateDS.html#includes-the-xml-schema-
include-element

This script (process_includes.py) is now in the current
distribution, which is at:

    http://www.rexx.com/~dkuhlman/generateDS-1.9a.tar.gz

and, also, at sourceforge.net.

After preprocessing, there is still an error.  I'll try to look
into that before too long.

I apologize for being slow with this.

Dave




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to