|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XML Schemas: Best Practices
--- "Roger L. Costello" <costello@m...> wrote: > Below I have listed what I perceive to be the benefits of > this approach: <snip/> > - The no-namespace components can assume many different semantics. For > each schema that <include>s them, they can take on a new role and new > semantics. > This seems like it could be a disadvantage. A "semantically aware" processor would not realize that the elements in the doc actually refer to the same type of thing. As an example, lets say you are looking for a new car and you want to query the web for cars under $20,000 with a user rating of greater 4 out of 5. Lets say may search engine find the following two code snippets: <productinfo xmlns="www.products.com"> <car>Honda Civic</car> <price>$16,000</price> ... </productinfo> <userreviewsummary xmlns="www.reviews.com"> <productreviewed><car>Honda Civic</car></productreviewed> <rating max="5">4.7</rating> ... </userreviewsummary> Now one "car" element is in the "www.product.com" namespace and the other is in the "www.reviews.com" namespace. How is a processor supposed to match these two? Toivo Lainevool __________________________________________________ Do You Yahoo!? From homework help to love advice, Yahoo! Experts has your answer. http://experts.yahoo.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








