[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: increment pattern for an attribute..

  • From: Rick Jelliffe <rjelliffe@a...>
  • To: xml-dev@l...
  • Date: Thu, 08 Nov 2007 22:26:34 +1100

RE:  increment pattern for an attribute..
On Thu, 2007-11-08 at 10:12 +0000, Michael Kay wrote:
>  > If you were desparate, you could try the following hack: 
> I think the tag structure is a bit wobbly - but I think I know what you are
> getting at. But it surely violates the XSDL rule that if two element
> particles in a content model have the same name then they must have the same
> type.
Doh, I knew that...last month: it came up as an issue with a client's
schema! It is not a problem with UPA but with "Element Declarations

Of course, RELAX NG can do this kind of thing no problems. I see the new
XSD 1.1 draft has no difference in this regard. 

I've been spending a bit more time using XSD recently, both for the XSD
to Schematron converter project (description and code at XML.COM) and
for an ACORD project. XSD seems to have hit that magical middlepoint
where it is convenient for neither implementers nor users.

XSD is so full of distinctions without (necessary) difference, which
only serve to complicate. Really, what is the need for the language to
have <group> or <attributeGroup> when it could ramp up <complexType> to
fulfill the role (more like RELAX NG patterns)? Why is there a
distinction between derivation by union and choice groups? Why is there
a distinction between derivation by extension and sequence groups?  Why
are substitution groups not explained in terms of choice groups?

And why cannot something be both a string and a number? (i.e. why isn't
some genus of string the simple urtype, since the value-space facets of
the urtype are shonky propositions anyway)  If we can have NaN like
NotANumber why cannot we have NotABoolean and so on? 

Rick Jelliffe

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.