[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

Top N Most Common Mistakes

rpbourret at rpbourret.com rpbourret at rpbourret.com
Mon Aug 13 12:24:02 PDT 2007


  Top N Most Common Mistakes
On Mon, 13 Aug 2007 13:11:43 -0500, Smith, Donald T. wrote
> Ron,
> 
> Curious if the schemas you are facing are mostly machine generated (that
> is, from some IDE) or if they are hand-crafted. And if hand-crafted, 
> do they show any discernable design patterns (by which I mean XML Schema
> design patterns). Do any of these issues make the schemas easier or
> harder to learn?
> 
> Don

As far as I know, they're hand generated, based on some ISO specs in the
geographic world. I've had two major problems:

1) Learning the subject matter itself (geographic metadata)

2) Working with extremely generic XML of the style:

   <Parameter Name="foo">
      <Value>bar</Value>
   </Parameter>

   It's actually much worse than that, with parameters allowing a choice of
stuff instead of just values. There are a fair number of co-constraints (i.e.
if the parameter is of this type, we always use this form of parameter) but
these aren't documented anywhere.

There are also a number of referential structures (i.e. take the value of this
element and go look up another element with an attribute having the same value).

I wouldn't say that the schemas are really all that complex, it's just the
usual learning curve of a consultant getting dumped into an unfamiliar
environment and being expected to know everything at once.

I think the interesting thing is that, when I finally figure out what the
actual query is and what the schema structures I want to work with are,
writing the XQuery query is almost trivial. No idea if this is a common
experience, but it does make me like using XQuery.

-- Ron


Purchase Stylus Studio Online Today!

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.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
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-2007 All Rights Reserved.