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

Re: ten years later, time to repeat it?

  • From: Robin Berjon <robin@j...>
  • To: Manos Batsis <manos_lists@g...>
  • Date: Thu, 21 Feb 2008 16:39:34 +0100

Re:  ten years later
On Feb 20, 2008, at 17:30, Manos Batsis wrote:
> Robin Berjon wrote:
>> You already have a namespace URI and a local name, why add a type?  
>> I've only ever seen xsi:type used badly. Document-level casting is  
>> silly, really. It's like saying "what this really is is a whale,  
>> that's what it is, but I'm going to call it a lemur, just because.  
>> I think someone said I could only have lemurs. Yeah it's a lemur;  
>> a humongous, blubbery water lemur."
>
> You dug this one right out of your siglist didn't you?

Not even :)

> True, the expanded name is all one needs to look up the  
> documentation and figure out the actual type manually, but a schema  
> is used to automate the plumbing for validation or, say,  
> deserializing XML to objects or whatnot.

I can understand the occasional need for typing, sure, but the  
expanded name should be all you need to look up the type definition  
in a schema. In other words, the expanded name *is* the type name. If  
you want the element in that position in your language to potentially  
be a whale or a lemur, then have the schema offer <whale> and  
<lemur>, not some hack with xsi:type. This is one part that IMHO DTDs  
got right.

--
Robin Berjon
........................................................................
"The future is here, it's just not evenly distributed yet."
                         -- William Gibson




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


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
 

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.