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

Re: about "module" in XQuery spec

he harrison harrison076 at gmail.com
Fri Jan 11 09:39:49 PST 2008


  Re: about "module" in XQuery spec
Thank you Jonathan,
So you mean, in my first example, the result of b.xq will be either
"false" or throw an error, but can never be "true"(even if "myType" still
have same definition content after redefine)?

2008/1/9, Jonathan Robie <http://x-query.com/mailman/listinfo/talk>:
>
> he harrison wrote:
> > Here is definition of module:
> > "A query can be assembled from one or more fragments called *modules*.
> > [Definition: A *module* is a fragment of XQuery code that conforms to
> > the Module <http://www.w3.org/TR/xquery/#doc-xquery-Module> grammar
> > and can independently undergo the static analysis phase
> > <http://www.w3.org/TR/xquery/#dt-static-analysis> described in *2.2.3
> > Expression Processing*
> > <http://www.w3.org/TR/xquery/#id-expression-processing>. Each module
> > is either a main module <http://www.w3.org/TR/xquery/#dt-main-module>
> > or a library module <http://www.w3.org/TR/xquery/#dt-library-module>.]"
> >
> > Since modules could independetly undergo the static analysis phase, then
> > I understand wherever it's imported, it's in-scope schema type
> > definition should not be
> > redefined by importing module.
>
> This is true.
>
> Also, note that if you do import definitions that differ into a given
> context, that would violate XQuery's consistency constraints
> (http://www.w3.org/TR/xquery/#id-consistency-constraints). Since each
> module has its own definitions, there's no problem here.
>
> Jonathan
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://x-query.com/pipermail/talk/attachments/20080111/18e75133/attachment.htm


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.