CARVIEW |
Select Language
HTTP/2 301
date: Fri, 10 Oct 2025 21:10:16 GMT
content-type: text/html; charset=ISO-8859-1
location: https://lists.w3.org/Archives/Public/public-xsd-databinding/2006Feb/0033.html
cf-ray: 98c91a7c6c56c174-BLR
cache-control: max-age=21600
expires: Sat, 11 Oct 2025 03:10:16 GMT
x-backend: www-mirrors
x-request-id: 98c91a7c6c56c174
strict-transport-security: max-age=15552000; includeSubdomains; preload
content-security-policy: frame-ancestors 'self' https://cms.w3.org/ https://cms-dev.w3.org/; upgrade-insecure-requests
cf-cache-status: MISS
set-cookie: __cf_bm=uxbVgCMnwuE7C8KF30d2CoahoksN553BLhmTuH9kr68-1760130616-1.0.1.1-FBRQDmwXTa1kmbqu0NLGJbaXO5_LZLX3OKQWCjyvLU0qg39vDeJIVeL.b0Cg05zDxHt29XY9PgAooMcvvOFV89zp3nNRfn0dga4DPusK0H0; path=/; expires=Fri, 10-Oct-25 21:40:16 GMT; domain=.w3.org; HttpOnly; Secure; SameSite=None
vary: Accept-Encoding
server: cloudflare
alt-svc: h3=":443"; ma=86400
HTTP/2 200
date: Fri, 10 Oct 2025 21:10:17 GMT
content-type: text/html
content-encoding: gzip
last-modified: Thu, 13 Jul 2023 18:33:33 GMT
cache-control: max-age=2592000, public
expires: Sun, 09 Nov 2025 21:10:17 GMT
vary: Accept-Encoding
access-control-allow-origin: *
x-request-id: 98c91a81bdf97679
strict-transport-security: max-age=15552015; preload
x-frame-options: deny
x-xss-protection: 1; mode=block
cf-cache-status: EXPIRED
server: cloudflare
cf-ray: 98c91a81bdf97679-BLR
alt-svc: h3=":443"; ma=86400
Re: ISSUE-20: Extension of collections from Pete Cordell on 2006-02-22 (public-xsd-databinding@w3.org from February 2006)
Re: ISSUE-20: Extension of collections
- From: Pete Cordell <petexmldev@tech-know-ware.com>
- Date: Wed, 22 Feb 2006 08:02:59 -0000
- To: <public-xsd-databinding@w3.org>
- Message-ID: <005901c63786$6b9ec370$b100a8c0@RW>
Hi Paul, My only comment on this is that the extension type could be a generic type, rather than defining an extension type for each collection. In that case, you end up with: <xs:complexType name="CustomerType"> <xs:sequence> <xs:element name="firstName" type="xs:string" /> <xs:element name="lastName" type="xs:string" /> <xs:element name="extension" type="tns:GenericExtensionType" minOccurs="0" /> </xs:sequence> <xs:anyAttribute/> </xs:complexType> <xs:complexType name="MyOtherType"> <xs:sequence> <xs:element name="Thingy" type="xs:string" /> <xs:element name="extension" type="tns:GenericExtensionType" minOccurs="0" /> </xs:sequence> <xs:anyAttribute/> </xs:complexType> <xs:complexType name="GenericExtensionType"> <xs:sequence> <xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded" namespace="##targetNamespace"/> </xs:sequence> </xs:complexType> This results in less generated code, and less clutter in the XSD. It might be slightly confusing to developers that they can change the extension element to what they want later though. Pete. ----- Original Message ----- From: "Databinding Issue Tracker" <dean+cgi@w3.org> To: <public-xsd-databinding@w3.org> Sent: Tuesday, February 21, 2006 2:05 PM Subject: ISSUE-20: Extension of collections > > > ISSUE-20: Extension of collections > > https://www.w3.org/2005/06/tracker/databinding/issues/20 > > Raised by: Paul Downey > On product: Basic > > The input document offers the following pattern for a collection > which is open to extension, thereby being useful when evolving > or extending a schema during versioning: > > """ > <xs:complexType name="CustomerType"> > <xs:sequence> > <xs:element name="firstName" type="xs:string" /> > <xs:element name="lastName" type="xs:string" /> > <xs:element name="extension" type="tns:CustomerExtensionType" > minOccurs="0" /> > </xs:sequence> > <xs:anyAttribute/> > </xs:complexType> > > <xs:complexType name="CustomerExtensionType"> > <xs:sequence> > <xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded" > namespace="##targetNamespace"/> > </xs:sequence> > </xs:complexType> > > """ > > How well is this pattern supported by tools - does it belong in > the Basic patterns document? > > Are there authoring issues with this pattern we should warn about? > -- ============================================= Pete Cordell Tech-Know-Ware Ltd for XML to C++ data binding visit https://www.tech-know-ware.com/lmx (or https://www.xml2cpp.com) =============================================
Received on Wednesday, 22 February 2006 08:03:15 UTC