Apologies. Just realized that I had not CCd the mailing list for archives.
Peter has also already answered the questions I asked below.
Cheers,
Tim
---------- Forwarded message ----------
From: Timothy Cook <[email protected]>
Date: Thu, Apr 21, 2011 at 8:15 AM
Subject: Re: [pyxb-users] xsd:list itemType Problem
To: Peter Bigot <[email protected]>
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
--
================
Timothy Cook, MSc
Project Lead - Multi-Level Healthcare Information Modeling
http://www.mlhim.org
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
Skype ID == timothy.cook
Academic.Edu Profile: http://uff.academia.edu/TimothyCook
You may get my Public GPG key from popular keyservers or
from this link http://timothywayne.cook.googlepages.com/home
------------------------------------------------------------------------------
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