QA


Q&A

Q.

Are there any simple types other than the ones mentioned in this hour?

A.

Yes. In addition to the simple types you learned about in this hour, there are a few other types such as binary and uriReference that I didn't mention. These types were left out of the lesson primarily for the sake of brevity, as it is difficult to cover the entirety of the XSD language in a single hour. Besides, the aim of this hour is not to make you an XSD expert but to give you the essential knowledge required to design and create XSD schemas.

Q.

How do I find out more about regular expressions and how they are used to create patterned types?

A.

You can learn an immense amount about regular expressions from the book Sams Teach Yourself Regular Expressions in 10 Minutes, by Ben Forta. Or check out Stephen Ramsay's online regular expression tutorial, which is located at http://etext.lib.virginia.edu/services/helpsheets/unix/regex.html. This tutorial is hosted by the University of Virginia's Electronic Text Center.

Q.

I still don't quite understand the distinction between local and global components in an XSD schema. What gives?

A.

Elements and attributes are considered global if they are declared directly below the xsd:schema element. If they are declared anywhere else, they are considered local. Global elements and attributes are used differently in that they must be referenced in order to factor into a schema. Contrast this with local elements and attributes, which are automatically referenced simply by virtue of being local.




Sams Teach Yourself XML in 24 Hours
Sams Teach Yourself XML in 24 Hours, Complete Starter Kit (3rd Edition)
ISBN: 067232797X
EAN: 2147483647
Year: 2005
Pages: 266

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net