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

Re: XML Schema: What does <include schemaLocation="" />mean?

  • From: Amelia A Lewis <amyzing@talsever.com>
  • To: Mukul Gandhi <gandhi.mukul@gmail.com>
  • Date: Wed, 11 Mar 2020 12:14:58 -0400

Re:  XML Schema: What does <include schemaLocation="" />mean?
On Wed, 11 Mar 2020 20:38:42 +0530, Mukul Gandhi wrote:
> On Wed, Mar 11, 2020 at 5:00 PM Costello, Roger L. <costello@mitre.org>
> wrote:
> 
>> Today, by accident, I omitted the value of schemaLocation in an
>> xs:include, i.e.,
>> 
>>     <xs:include schemaLocation="" />

[snip]

>> Is there a use case for doing so?
>> 
> 
> I don't think that, there is any legitimate use case for such a statement.
> 
> I'd be happy to be corrected with right concepts, of course.

I believe that it's technically legal because circular includes are 
legal. That is, in the common(-er) case, schema A includes schema B 
includes schema C includes schema A. Import one, and you get them all, 
a technique to insure completeness (circular include-s can also be more 
or less accidental, because (for instance) you've developed a large set 
of schemas that has several 'profiles,' each starting with a different 
schema document, and there's a collection of things that each of them 
pull in). They commonly occur as schema collections grow over time. The 
specification says that the parser has to recognize the occurrence of 
the cycle, and ignore the circularity.

I've always considered schema A includes schema B includes schema A as 
the tightest cycle, but this is simply the degenerate case. It's 
allowed because it's pointless to forbid it; the schema parser has 
already been told "when circularity is detected, parse each included 
document only once".

Amy!
-- 
Amelia A. Lewis                    amyzing {at} talsever.com
There are two major products that came out of Berkeley: LSD and BSD
Unix.  We don't believe this to be a coincidence.


[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.