Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Schema Question from a newbie...

From: gordingin@-------------.--- (----- -------)
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent