[dsdl-discuss] Re: What is the best way to simulate

From: Rick Jelliffe <rjelliffe@allette.com.au>
Date: Fri Aug 18 2006 - 20:00:00 UTC

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)
Received on Fri Aug 18 22:02:23 2006

This archive was generated by hypermail 2.1.8 : Sun Aug 20 2006 - 20:23:02 UTC