Click here to Skip to main content
15,886,565 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: Tools for merging multiple xsd files Pin
Member 248888319-Nov-09 0:30
Member 248888319-Nov-09 0:30 
GeneralRe: Tools for merging multiple xsd files Pin
jepskiluv14-Jan-10 17:30
jepskiluv14-Jan-10 17:30 
GeneralRe: Tools for merging multiple xsd files Pin
cateyes9919-Jan-10 15:14
cateyes9919-Jan-10 15:14 
QuestionUse XML code into MS Word 2007 document Pin
Jim Krueger19-Sep-09 6:28
Jim Krueger19-Sep-09 6:28 
QuestionReading into XML section and getting same value again Pin
Gareth H19-Sep-09 0:41
Gareth H19-Sep-09 0:41 
AnswerRe: Reading into XML section and getting same value again Pin
Stuart Dootson19-Sep-09 22:11
professionalStuart Dootson19-Sep-09 22:11 
AnswerRe: Reading into XML section and getting same value again Pin
Lakhan Pal Garg22-Sep-09 19:08
Lakhan Pal Garg22-Sep-09 19:08 
QuestionXSD problem Pin
gantww18-Sep-09 10:09
gantww18-Sep-09 10:09 
I've created the following XML Schema (not for production use, but to learn by doing).

Here's what is burning me at the moment:
The xs:element elements that refer to classes or properties are giving me warnings that "Type 'class' is not declared". I'm still learning this stuff, so I'd really appreciate it if someone could take a quick peek at it and advise me of the (probably obvious) problem in the code below.

Thanks,
Will


<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="http://gantsoftwaresystems.com/classspec.xsd"
    elementFormDefault="qualified"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
	<xs:element name="classDefs">
		<xs:complexType>
		  <xs:sequence minOccurs="1" maxOccurs="unbounded">
			<xs:element name="classes">
			  <xs:complexType>
				<xs:sequence minOccurs="1" maxOccurs="unbounded">					
					<xs:element name="class" type="class"/>
				</xs:sequence>            
			  </xs:complexType>
			</xs:element>
			<xs:element name="views">
			  <xs:complexType>
				<xs:sequence>
					<xs:element name="view" type="class"/>
				</xs:sequence>            
			  </xs:complexType>
			</xs:element>
		  </xs:sequence>      
		</xs:complexType>
	</xs:element>
	<xs:complexType name="class">
		<xs:sequence minOccurs="1" maxOccurs="unbounded">
			<xs:element name="property" type="property"/>
		</xs:sequence>
		<xs:attribute name="name" type="xs:string"/>
		<xs:attribute name="base" type="xs:string"/>
		<xs:attribute name="hasImageUrl" type="xs:boolean"/>
	</xs:complexType>
	<xs:complexType name="property">
		<xs:sequence minOccurs="0" maxOccurs="unbounded">
			<xs:element name="alsoTriggerPropertyChanged">
				<xs:complexType>
					<xs:attribute name="propertyName" type="xs:string"/>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
		<xs:attribute name="name" type="xs:string"/>
		<xs:attribute name="type" type="xs:string"/>
		<xs:attribute name="changesImageUrl" type="xs:boolean"/>
		<xs:attribute name="imageUrlQStringParamName" type="xs:string"/>
		<xs:attribute name="imageUrlOverridePropertyName" type="xs:string"/>
	</xs:complexType>
</xs:schema>

AnswerRe: XSD problem Pin
Stuart Dootson19-Sep-09 22:04
professionalStuart Dootson19-Sep-09 22:04 
Questionsending xml document Pin
aamirzada16-Sep-09 18:31
aamirzada16-Sep-09 18:31 
AnswerVoted to remove message Pin
N a v a n e e t h16-Sep-09 18:45
N a v a n e e t h16-Sep-09 18:45 
AnswerRe: sending xml document Pin
Stuart Dootson16-Sep-09 21:28
professionalStuart Dootson16-Sep-09 21:28 
GeneralRe: sending xml document Pin
aamirzada25-Sep-09 18:40
aamirzada25-Sep-09 18:40 
GeneralRe: sending xml document Pin
Stuart Dootson25-Sep-09 19:04
professionalStuart Dootson25-Sep-09 19:04 
QuestionXML Validation using XSD Pin
scrapper15-Sep-09 4:00
scrapper15-Sep-09 4:00 
AnswerRe: XML Validation using XSD Pin
Stuart Dootson15-Sep-09 7:12
professionalStuart Dootson15-Sep-09 7:12 
GeneralRe: XML Validation using XSD Pin
scrapper16-Sep-09 3:32
scrapper16-Sep-09 3:32 
GeneralRe: XML Validation using XSD Pin
Stuart Dootson16-Sep-09 3:39
professionalStuart Dootson16-Sep-09 3:39 
GeneralRe: XML Validation using XSD Pin
scrapper16-Sep-09 3:44
scrapper16-Sep-09 3:44 
GeneralRe: XML Validation using XSD Pin
Stuart Dootson16-Sep-09 21:27
professionalStuart Dootson16-Sep-09 21:27 
QuestionMSXML2.serverXMLHTTP.4.0 Pin
hemrk14-Sep-09 6:11
hemrk14-Sep-09 6:11 
QuestionMicrosoft VBScript runtime error '800a01a8' Object required Pin
shyamaprasad10-Sep-09 4:38
shyamaprasad10-Sep-09 4:38 
AnswerRe: Microsoft VBScript runtime error '800a01a8' Object required Pin
Christian Graus10-Sep-09 12:54
protectorChristian Graus10-Sep-09 12:54 
GeneralRe: Microsoft VBScript runtime error '800a01a8' Object required Pin
shyamaprasad10-Sep-09 23:53
shyamaprasad10-Sep-09 23:53 
GeneralRe: Microsoft VBScript runtime error '800a01a8' Object required Pin
Stuart Dootson11-Sep-09 0:57
professionalStuart Dootson11-Sep-09 0:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.