> Subject: Re: [Generateds-users] Namespace Issue
> From: Erica Tolbert
> To: Dave Kuhlman <dkuhl...@rexx.com>
>
>
> Hi Dave,
>
> Attached is the schema I'm working with.
>
> Thanks,
>
Erica -
Thanks for sending gcdml.xsd. There are several includes in that
file:
<include schemaLocation="./basicTypes.xsd" />
<include schemaLocation="./sampleDescTypes.xsd" />
<include schemaLocation="./sourceData.xsd" />
By creating empty files with those names, I was able to parse and
generate output from gcdml.xsd.
*However*, I'm guessing that the problem is that, whereas gcdml.xsd
does not use a namespace prefix on tags like "element",
"complexType", etc, whereas in contrast, one or more of those included files
uses a different namespace prefix. For example perhaps it uses
"xs:" or "xsd:". But, like I say, I'm guessing about that.
I do not believe that generateDS.py will handle that situation.
However, if you want to send me those three files (basicTypes.xsd,
sampleDescTypes.xsd, and sourceData.xsd), I'll give it a try. Oh,
and you might want to check to see if those files include other
schema files.
I apologize for this trouble.
- Dave
>
> On Mon, Nov 23, 2009 at 10:36 PM, Dave Kuhlman <dkuhl...@rexx.com> wrote:
>
> >
> >From: Erica Tolbert <tolbe...@gmail.com>
> >To: generateds-users@lists.sourceforge.net
> >Sent: Mon, November 23, 2009 6:54:32 AM
> >Subject: [Generateds-users] Namespace Issue
> >
> >Hello,
> >
> >I'm new to generateDS and I am receiving this error:
> >
> >Traceback (most recent call last):
> > File "generateDS.py", line 4428, in <module>
> > main()
> > File "generateDS.py", line 4423, in main
> >> processIncludes, superModule=superModule)
> > File "generateDS.py", line 4248, in parseAndGenerate
> > root.annotate()
> >AttributeError: 'NoneType' object has no attribute 'annotate'
> >
> >I see in the documentation that if your XML Schema namespace prefix is
> different than "xs:", you must specify the namespace prefix. However, there
> are multiple namespace prefixes in the schema that I'm using. Any
> suggestions on how to handle this?
> >
> Erica -
>
> I don't believe that generateDS.py will handle a schema that contains
> multiple namespace prefixes. But, I'm not sure. Could you send
> me your schema? Perhaps I can come up with a solution.
>
> - Dave
>
> --
>
>
> Dave Kuhlman
> http://www.rexx.com/~dkuhlman
>
>
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
>
>From: Erica Tolbert <tolbe...@gmail.com>
>To: Dave Kuhlman <dkuhl...@rexx.com>
>Sent: Tue, November 24, 2009 7:01:37 AM
>Subject: Re: [Generateds-users] Namespace Issue
>
>Hi Dave,
>
>Attached is the schema I'm working with.
>
>Thanks,
>
>Erica
>
>
>On Mon, Nov 23, 2009 at 10:36 PM, Dave Kuhlman <dkuhl...@rexx.com> wrote:
>
>>
>>>From: Erica Tolbert <tolbe...@gmail.com>
>>>To: generateds-users@lists.sourceforge.net
>>>Sent: Mon, November 23, 2009 6:54:32 AM
>>>Subject: [Generateds-users] Namespace Issue
>>
>>>
>>>Hello,
>>>
>>>I'm new to generateDS and I am receiving this error:
>>>
>>>Traceback (most recent call last):
>>> File "generateDS.py", line 4428, in <module>
>>> main()
>>> File "generateDS.py", line 4423, in main
>>>> processIncludes, superModule=superModule)
>>> File "generateDS.py", line 4248, in parseAndGenerate
>>> root.annotate()
>>>AttributeError: 'NoneType' object has no attribute 'annotate'
>>>
>>>I see in the documentation that if your XML Schema namespace prefix is
>>>different than "xs:", you must specify the namespace prefix. However, there
>>>are multiple namespace prefixes in the schema that I'm using. Any
>>>suggestions on how to handle this?
>>>
>>Erica -
>>
>>I don't believe that generateDS.py will handle a schema that contains
>>multiple namespace prefixes. But, I'm not sure. Could you send
>>me your schema? Perhaps I can come up with a solution.
>>
>>- Dave
>>
>> --
>>
>>
>>Dave Kuhlman
>>http://www.rexx.com/%7Edkuhlman
>>
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users