<?xml version="1.0"?>
<!-- edited with XMLSPY v5 rel. 2 U (http://www.xmlspy.com) by O Bromley (Southampton University) -->
<?xml-stylesheet href="webpage.xsl" type="text/xsl"?>
<webpage>

<title>
XSD Schema Syntax
</title>
<navigation_xsd/>
	<gif_text>
		<url>index.xml</url>
		<text>&#160;&#160;Oliver Bromley, Vr.22.5, May 2003</text>
		<gif>image_files/home.gif</gif>
	</gif_text>
	
	
	
	
	<item_no_link>	
		<heading>Objective</heading>
		
		<text>
		Show How to use Schemas (XSD's) to make Structured MS Word 2003 Documents :
		&#160;&#160;&#160;&#160;&#160;&#160;				
		
		Get an XSD schema that can be assigned to a Word document
		so that untrained staff can enter data that is valid against 
		the schema definition built previously by IT staff.  This document can be
		used to generate pure XML or kept as a Word document containing
		its XML tags.		
		</text>
		
		<gif>image_files/blue_button.gif</gif>
	</item_no_link>
	
	
	<item_no_link>	
		<heading>Route 1</heading>
		<text>		
				
		Make an XSD by hand.
				
		Make an XML file by hand (preferably one conforming to the XSD).
				
		Open a blank new document in MS Word 2003 (which has XML features, 
		press F1 then on the right hand pane that appears use the drop down
		to see 'XML Structure').
				
		Use the insert menu option at the top left of word to insert the 
		XML file.  If the file has its XSD specified inside it, such as 
				
						
		&#160;&#160;&#160;&#160;&#160;&#160;			
		dataroot xmlns="choice.xsd"
		&#160;&#160;&#160;&#160;&#160;&#160;	
		
		then Word will automatically assign this XSD to the document
		being edited and will show any non-conformance by a zig-zag
		vertical line (equivalent to the horizontal zig-zag used 
		for spelling errors).  Errors are also displayed by red symbols
		on the right hand pane.  No entry for data required, horizontal 
		bars for attribute specification needed and a cross for invalid
		data.	
		</text>
		
		<gif>image_files/blue_button.gif</gif>
	</item_no_link>
	
	
	<item_no_link>
		
		<heading>Route 2</heading>
		
		<text>				
		Create a new document in Word 2003. Assign an XSD to it by F1,
		then select the 'XML Structure' drop down, then the 
		'Templates and Add-Ins...' link at the bottom.
				
		Now enter your XML checking the right hand pane to see that
		it is valid as checked against the XSD schema. 
				
		Now save the document as XML making sure to check the 
		'Save data only' tick box (otherwise your xml ends up full 
		of Word tags).
		</text>
		
		<gif>image_files/blue_button.gif</gif>
	</item_no_link>
						
					


	<item>
		<url>24.xml</url>
		<text_link>24.xml</text_link>
		<text>&#160;&#160;&#160;XSD Syntax Examples Table</text>
		<gif>image_files/blue_button.gif</gif>
	</item>
			
	
	<tail>
		<hr/>
	</tail>
</webpage>

