Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Schema Question from a newbie... Schema Question from a newbie...To: NULL Date: 9/1/2004 2:15:00 PM Ok so I am learning xml and schema's. argh..... In this schema, this line... xmlns:xs="http://www.w3.org/2001/XMLSchema" say that the elements and data types declared with the xs prefix come from http://www.w3.org/2001/XMLSchema. But that is url and I can go to it. I see nothing that says anything about elements and data types. I know the w3.org creates the standards for this type of stuff but where? In this line: targetNamespace="urn:xmlns:25hoursaday-com:my-bookshelf" defines the targetNamespage as urn:xmlns:25hoursaday-com:my-bookshelf. What does 'urn:xmlns:25hoursaday-com:my-bookshelf' mean? Is this just arbitrary text? Could it be anything? In this line" xmlns:bk="urn:xmlns:25hoursaday-com:my-bookshelf" say that the elements and data types declared with the bk prefix come from urn:xmlns:25hoursaday-com:my-bookshelf. What is 'urn:xmlns:25hoursaday-com:my-bookshelf'. I know it was defined by targetNamespace but what does that reslove to? Where or what is 'urn:xmlns:25hoursaday-com:my-bookshelf' ***************************************************************** <?xml version="1.0" encoding="UTF-8" ?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:xmlns:25hoursaday-com:my-bookshelf" xmlns:bk="urn:xmlns:25hoursaday-com:my-bookshelf" elementFormDefault="qualified"> <xs:element name="books"> <xs:complexType> <xs:sequence> <xs:element name="book" type="bk:bookType" maxOccurs="unbounded" /> </xs:sequence> </xs:complexType> </xs:element> <xs:complexType name="bookType"> <xs:sequence> <xs:element name="title" type="xs:string" /> <xs:element name="author" type="xs:string" /> <xs:element name="publication-date" type="xs:date" /> </xs:sequence> <xs:attribute name="publisher" type="xs:string" /> <xs:attribute name="on-loan" type="xs:string" /> </xs:complexType> </xs:schema> ********************************************************************* thanks Ralph Krausse www.consiliumsoft.com Use the START button? Then you need CSFastRunII... A new kind of application launcher integrated in the taskbar! ScreenShot - http://www.consiliumsoft.com/ScreenShot.jpg | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
