---------- Forwarded message ----------
From: Peter Bigot <[email protected]>
Date: Thu, Apr 21, 2011 at 8:21 AM
Subject: Re: [pyxb-users] xsd:list itemType Problem
To: Timothy Cook <[email protected]>
Some of the material in and around
http://pyxb.sourceforge.net/userref_pyxbgen.html#advanced-topics may
be of value, but yes, unless there's a reason why somebody would want
to use the types from one file independently of those from another
file (in which case they probably should be in different namespaces),
generate all the bindings at once.
Peter
On Thu, Apr 21, 2011 at 8:15 AM, Timothy Cook
<[email protected]> wrote:
> Hi Peter,
>
> On Thu, Apr 21, 2011 at 7:02 AM, Peter Bigot <[email protected]> wrote:
>>
>> DvText is far too complex for its document form to appear in an
>> attribute value. I'm not sure if you're trying to use it to get a
>> recursive data structure (in which case use a ref of DvText with
>> maxOccurs="unbounded" as the element content in DvParagraph),
>
> Thanks. This works.
>
> One more question. The proper way to handle includes?
> I have six schema files. The extensions (inheritance tree) elements are
of
> types from other files.
> If I generate bindings for each file individually, the included schemas
get
> new bindings generated each time.
>
> Should I create just one schema with all of the includes and then just
> generate bindings for that file?
>
> Example: mlhim2.xsd
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!-- Copyright 2011 Timothy W. Cook and Contributors. See
> http://www.mlhim.org-->
> <xs:schema elementFormDefault="qualified" id="mlhim2"
> targetNamespace="http://www.mlhim.org/mlhim2" version="2.0.0"
> xmlns:mlhim2="http://www.mlhim.org/mlhim2"
> xmlns:xs="http://www.w3.org/2001/XMLSchema">
> <xs:include schemaLocation="support.xsd"></xs:include>
> <xs:include schemaLocation="datatypes.xsd"></xs:include>
> <xs:include schemaLocation="common.xsd"></xs:include>
> <xs:include schemaLocation="structures.xsd"></xs:include>
> <xs:include schemaLocation="content.xsd"></xs:include>
> <xs:include schemaLocation="constraint.xsd"></xs:include>
> <xs:include schemaLocation="entity.xsd"></xs:include>
> </xs:schema>
>
> Thanks again.
>
> Tim
>
>
>
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
pyxb-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyxb-users