Click here to Skip to main content
15,890,336 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Converting carriage returns to <BR> tags Pin
JussiL2-Jun-04 8:06
JussiL2-Jun-04 8:06 
QuestionHow to test if node exists and it's not empty? Pin
Alvaro Mendez1-Jun-04 10:00
Alvaro Mendez1-Jun-04 10:00 
AnswerRe: How to test if node exists and it's not empty? Pin
Anonymous1-Jun-04 17:25
Anonymous1-Jun-04 17:25 
GeneralRe: How to test if node exists and it's not empty? Pin
Alvaro Mendez3-Jun-04 12:49
Alvaro Mendez3-Jun-04 12:49 
AnswerRe: How to test if node exists and it's not empty? Pin
Philip Fitzsimons2-Jun-04 3:25
Philip Fitzsimons2-Jun-04 3:25 
GeneralProblem with mailto link Pin
Alvaro Mendez1-Jun-04 9:10
Alvaro Mendez1-Jun-04 9:10 
GeneralXMLNode datagrid Pin
dotnet_cpp31-May-04 20:20
dotnet_cpp31-May-04 20:20 
GeneralXML Schema(s): Help Needed Pin
mlauzon2728-May-04 10:18
mlauzon2728-May-04 10:18 
I have the following schema, which I believe needs to be fleshed out more to make it more powerful, can someone please help and also point me in the right direction...hopefully once my project gets approved on SourceForge I will be adding this as well as something else I have to the project. Anyeverhow, here is the schema as it stands right now:


<?xml version="1.0" encoding="utf-8"?>


<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">


<xs:element name="student">
<xs:complexType>
<xs:sequence>

<xs:element name="stunum" type="xs:integer" />
<xs:element name="lastname" type="xs:string" />
<xs:element name="firstname" type="xs:string" />
<xs:element name="age" type="xs:integer" />
<xs:element name="dateborn" type="xs:date" />

</xs:sequence>
</xs:complexType>
</xs:element>


<xs:element name="address">
<xs:complexType>
<xs:sequence>

<xs:element name="pnum" type="xs:integer" />
<xs:element name="addnum" type="xs:integer" />
<xs:element name="street" type="xs:string" />
<xs:element name="city" type="xs:string" />
<xs:element name="country" type="xs:string" />
<xs:element name="poczip" type="xs:string" />

</xs:sequence>
</xs:complexType>
</xs:element>


</xs:schema>

If you can make any changes to it, please do...any and all help would be very much appreciated.


Someone said the following to me as well, although I am having problems understanding what he is implying, probably because he didn't include an example:

"In your case, it depends on where you're going with this, but I'd consider creating a ComplexType for a "person" and then define your "Student" as an extension of the Person type, adding perhaps the student ID. That way, if you added Instructor, you'd be able to re-use the generalized part of the definition of a person (since Instructors and Students both have some things in common)."

If I can get this up and running, I will eventually need to be able to easily change some things in it to get it working with a second project that I have on SourceForge.





Michael Lauzon, Founder
The Quill Society
http://www.quillsociety.org/
mlauzon@quillsociety.org
GeneralRe: XML Schema(s): Help Needed Pin
JussiL2-Jun-04 8:34
JussiL2-Jun-04 8:34 
GeneralRe: XML Schema(s): Help Needed Pin
mlauzon272-Jun-04 8:47
mlauzon272-Jun-04 8:47 
GeneralRe: XML Schema(s): Help Needed Pin
JussiL2-Jun-04 23:55
JussiL2-Jun-04 23:55 
GeneralRe: XML Schema(s): Help Needed Pin
mlauzon273-Jun-04 6:00
mlauzon273-Jun-04 6:00 
GeneralRe: XML Schema(s): Help Needed Pin
JussiL3-Jun-04 20:57
JussiL3-Jun-04 20:57 
GeneralVB.net XmlNode to C# Pin
eggie527-May-04 13:34
eggie527-May-04 13:34 
GeneralRe: VB.net XmlNode to C# Pin
eggie527-May-04 15:18
eggie527-May-04 15:18 
GeneralLearning XML Schemas Pin
mlauzon2727-May-04 9:26
mlauzon2727-May-04 9:26 
GeneralRe: Learning XML Schemas Pin
Arjan Einbu27-May-04 13:37
Arjan Einbu27-May-04 13:37 
Generalxsl generating META tag Pin
IsaacB26-May-04 10:56
IsaacB26-May-04 10:56 
GeneralSAX parser - dont work Pin
VictorPr25-May-04 5:21
VictorPr25-May-04 5:21 
GeneralXSD importing problem Pin
Grimolfr24-May-04 4:50
Grimolfr24-May-04 4:50 
Questioncompiling expatpp ? Pin
caignaoli23-May-04 21:57
caignaoli23-May-04 21:57 
QuestionWhy am I getting "The expression...should result in a NodeSet"? Pin
Marc Clifton22-May-04 13:08
mvaMarc Clifton22-May-04 13:08 
AnswerRe: Why am I getting &quot;The expression...should result in a NodeSet&quot;? Pin
Mike Ellison22-May-04 13:47
Mike Ellison22-May-04 13:47 
GeneralRe: Why am I getting &quot;The expression...should result in a NodeSet&quot;? Pin
Marc Clifton22-May-04 14:48
mvaMarc Clifton22-May-04 14:48 
Generalamazon upload Need Help Pin
Sumit Kapoor19-May-04 19:52
Sumit Kapoor19-May-04 19:52 

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.