W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2001

Re: wildcard

From: Rahul Srivastava <Rahul.Srivastava@Sun.COM>
Date: Thu, 20 Sep 2001 18:19:45 +0000 (Asia/Calcutta)
Message-Id: <200109201250.SAA28271@blr-root.India.Sun.COM>
To: xmlschema-dev@w3.org
Thanks a ton Eric. :-)

I have one more question, but, let me repeat my understanding first.
namespace = ##any | 
            ##other | 
            ListOf(anyURI , ##targetNamespace?) | 
            ListOf(anyURI , ##local?)

where anyURI is a *set* of URI's and the '?' suffixed means optional.

Q:I am not very clear about 3.10.6. I mean, when will such case occur?. Given a 
case the spec explains very well how to compute wildcard subset, attribute 
wildcard union or intersection. But...

Can you or anybody else can explain this.

Cheers,
Rahul.



> Date: Thu, 20 Sep 2001 14:16:58 +0200
> From: Eric van der Vlist <vdv@dyomedea.com>
> 
> Hi,
> 
> Rahul Srivastava wrote:
> 
> > Hi,
> > 
> > I am sorry if this question has been asked before on this list.
> > 
> > In the spec, 3.10.2, describing wildcard, it says:
> > 
> > namespace = ((##any | ##other) | List of (anyURI | (##targetNamespace | 
##local)) )
> > 
> > Here, actually the brackets confuse me!. Can I represent the above as:
> > 
> > namespace = ##any | ##other | ListOf( anyURI | ##targetNamespace | ##local)
> 
> 
> Yes. I wasn't under the table, but my guess is that the brackets are 
> coming from the way the schema for schema (from which most of the rec is 
> generated) is defined but they are useless since
> 
> (a or b) or c  == a or b or c.
> 
>  
> > If no, what meaning do these brackets add?.
> > If yes, then the above means, namespace can be either ##any or ##other or 
ListOf(...)
> > where, ListOf( anyURI | ##targetNamespace | ##local) means
> > ListOf( anyURI ) or ListOf( ##targetNamespace) or ListOf( ##local )
> 
> 
> No.
> 
> 
> It's a list of (anyURI or one of the special strings ##targetNamespace 
> or ##local) that can be combined together.
> 
> i.e. "##targetNamespace http://foo.bar" is valid.
> 
> Hope this helps.
> 
> Eric
> 
>  
> > Now, my question is, if the above holds true, what is the meaning of ListOf( 
> > ##targetNamespace ) or ListOf( ##local ) as they are single values.
> > 
> > Cheers,
> > Rahul.
> > 
> > 
> > 
> > 
> 
> 
> 
> -- 
> See you in Scottsdale, Arizona.
>       http://xmlconnections.com/xml/xmlfall2001/speakers.asp#evandervlist
> ------------------------------------------------------------------------
> Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
> http://xsltunit.org      http://4xt.org           http://examplotron.org
> ------------------------------------------------------------------------
> 
Received on Thursday, 20 September 2001 08:51:03 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:53 UTC