Rick
>Well, "mixed content" in XSD includes data-only content. Or to put it
another way, in XSD untyped data-only content is done by having mixed
content but disallowing any elements (hence the maxOccurs='0'). So that
schema doesn't suggest that there can be other elements, it forbids it.
(And, I stress again, the XSD is *not* my schema, and out of my control.)
While I accept that XSD is not your schema, I still submit that the proper
RNC representation of a mixed content model from which all elements have
been excluded is by use of the keyword text, not anyType.
Martin
----- Original Message -----
From: "Rick Jelliffe" <rjelliffe@allette.com.au>
To: <dsdl-discuss@dsdl.org>
Sent: Friday, August 18, 2006 9:00 PM
Subject: [dsdl-discuss] Re: What is the best way to simulate
Martin Bryan said:
> Rick
>
> Re:
>>The technical answer is that that restricting anyType with mixed content
> and a null sequence is a typical way that people get text content in XML
> Schemas without typing that content: ugly isnt it? XSD makes it easier to
> say data content has a type (like xs:string) rather than saying data
> content has no type. Actually this declaration prevents any further
> datatyping of the DC data content, because of mixed='true'.
>
> Wouldn't it be simpler to make the model for the DC elements just "text"?
I am trying to match the XSD production for production. So if they have
some named grouping in the XSD, I have a corresponding pattern in RELAX
NG. (In some cases, like type derivation and susbtitution groups it gets
more complicated.) I think it is better to have that kind of traceability
where the XSD is the canonical source, though it is certainly open for
discussion.
> Do
> you really mean to suggest that users can embed other elements within DC
> element contents to create mixed content? If so, how do you get to convert
> it to RDF?
Well, "mixed content" in XSD includes data-only content. Or to put it
another way, in XSD untyped data-only content is done by having mixed
content but disallowing any elements (hence the maxOccurs='0'). So that
schema doesn't suggest that there can be other elements, it forbids it.
(And, I stress again, the XSD is *not* my schema, and out of my control.)
Cheers
Rick
-- DSDL members discussion list To unsubscribe, please send a message with the command "unsubscribe" to dsdl-discuss-request@dsdl.org (mailto:dsdl-discuss-request@dsdl.org?Subject=unsubscribe) -- DSDL members discussion list To unsubscribe, please send a message with the command "unsubscribe" to dsdl-discuss-request@dsdl.org (mailto:dsdl-discuss-request@dsdl.org?Subject=unsubscribe)Received on Sun Aug 20 22:21:42 2006
This archive was generated by hypermail 2.1.8 : Mon Aug 21 2006 - 07:23:13 UTC