
You must state exactly in what, else go to www.google.com On Tue, Mar 8, 2011 at 11:46 AM, ibtisam jamal <ibty.jamal@gmail.com> wrote:
Hi,i urgently need assistance on the above. _______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

i concurr. On Tue, Mar 8, 2011 at 11:47 AM, Paul Kevin <paultitude@gmail.com> wrote:
You must state exactly in what, else go to www.google.com
On Tue, Mar 8, 2011 at 11:46 AM, ibtisam jamal <ibty.jamal@gmail.com>wrote:
Hi,i urgently need assistance on the above. _______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- *“The twentieth century has been characterized by three developments of great political importance: the growth of democracy, the growth of corporate power, and the growth of corporate propaganda as a means of protecting corporate power against democracy”* ~ Alex Carey ~ Tel No: 0x2af23696

im learning but im stuck i created the attached XML doc from the attached DTD then i created a schema doc from my XML and the DTD .but when i referenced the xsd in the xml document it gets stuck when validating . I think i should have 6 elements under root seeker Please find the attached On Tue, Mar 8, 2011 at 11:51 AM, [Brainiac] <arebacollins@gmail.com> wrote:
i concurr.
On Tue, Mar 8, 2011 at 11:47 AM, Paul Kevin <paultitude@gmail.com> wrote:
You must state exactly in what, else go to www.google.com
On Tue, Mar 8, 2011 at 11:46 AM, ibtisam jamal <ibty.jamal@gmail.com>wrote:
Hi,i urgently need assistance on the above. _______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- *“The twentieth century has been characterized by three developments of great political importance: the growth of democracy, the growth of corporate power, and the growth of corporate propaganda as a means of protecting corporate power against democracy”*
~ Alex Carey ~
Tel No: 0x2af23696
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

On Tue, Mar 8, 2011 at 2:06 PM, ibtisam jamal <ibty.jamal@gmail.com> wrote:
im learning but im stuck i created the attached XML doc from the attached DTD then i created a schema doc from my XML and the DTD .but when i referenced the xsd in the xml document it gets stuck when validating .
I think i should have 6 elements under root seeker
Please find the attached
Your schema definition has some problems -- it allows multiple root elements ; does not define a hierarchy ; also you dont need a DTD if you are using a XSD schema. For the schema -- you need to do something like this : <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:element name="seeker"> <xs:complexType> <xs:sequence> <xs:element ref="name"/> <xs:element ref="address"/> <xs:element ref="personalinfo"/> <xs:element ref="email"/> <xs:element ref="skills"/> <xs:element ref="salary"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="name"> <xs:complexType> <xs:sequence> <xs:element ref="first-name"/> <xs:element ref="surname"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="first-name" type="xs:NCName"/> <xs:element name="surname" type="xs:NCName"/> <xs:element name="address"> <xs:complexType> <xs:sequence> <xs:element ref="street"/> <xs:element ref="town"/> <xs:element ref="county"/> <xs:element ref="postcode"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="street" type="xs:string"/> <xs:element name="town" type="xs:NCName"/> <xs:element name="county" type="xs:string"/> <xs:element name="postcode" type="xs:integer"/> <xs:element name="personalinfo"> <xs:complexType> <xs:sequence> <xs:element ref="dateofbirth"/> <xs:element ref="nationality"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="dateofbirth"> <xs:complexType> <xs:attribute name="date" use="required" type="xs:date"/> </xs:complexType> </xs:element> <xs:element name="nationality" type="xs:NCName"/> <xs:element name="email" type="xs:string"/> <xs:element name="skills"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" ref="skill"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="skill" type="xs:NCName"/> <xs:element name="salary"> <xs:complexType> <xs:sequence> <xs:element ref="min-salary"/> <xs:element ref="max-salary"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="min-salary" type="xs:string"/> <xs:element name="max-salary" type="xs:string"/> </xs:schema> A xml corresponding to the schema will look like this : <?xml version="1.0" encoding="UTF-8"?> <!-- JOBSEEKER DETAILS --> <seeker xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="jobseeker.xsd"> <name> <first-name>MUKHTAR</first-name> <surname>OMAR</surname> </name> <address> <street>SOUTH C</street> <town>NAIROBI</town> <county>NAIROBI WEST</county> <postcode>00506</postcode> </address> <personalinfo> <dateofbirth date="1970-01-12" /> <nationality>Kenya</nationality> </personalinfo> <email>M.OMAR@GMAIL.COM</email> <skills> <skill>DOCTOR</skill> <skill>ENGINEER</skill> <skill>PILOT</skill> </skills> <salary> <min-salary>2000 USD</min-salary> <max-salary>3000 USD</max-salary> </salary> </seeker>

Thanks for your response Ashok, See attached my code that works but i only used xs:string for element name . I don't understand xs:NCName please elaborate . Is it OK ?? I also have the following questions 3.Create XSD/Schema files for both a job request document, and the suitable jobs document. You should also produce example files of each type. In the case of job requests, the sample file should include (at least) two different locations and for suitable jobs should include at least three different job descriptions from two different companies. 4. Create an extended job seeker XSD document, and XML sample, to include provision for the following additional information: • How far away the job seeker is willing to travel for a new job • Whether the job seeker drives (should be either yes or no) • Current experience – this should be a list of positions that the user has had, including the position title, the address of the employment, and a list of responsibilities • References – two references, including referee name, address, phone number and email address You should ensure that data types are specified for all of the information as much as possible in the schema document. 5. Create an XSLT file to display the suitable jobs document as HTML in a web browser. The resulting output should deal with as many jobs as are returned, and be simple and clear to view (a table structure works best). On Thu, Mar 10, 2011 at 9:38 AM, <ashok+skunkworks@parliaments.info> wrote:
On Tue, Mar 8, 2011 at 2:06 PM, ibtisam jamal <ibty.jamal@gmail.com>wrote:
im learning but im stuck i created the attached XML doc from the attached DTD then i created a schema doc from my XML and the DTD .but when i referenced the xsd in the xml document it gets stuck when validating .
I think i should have 6 elements under root seeker
Please find the attached
Your schema definition has some problems -- it allows multiple root elements ; does not define a hierarchy ; also you dont need a DTD if you are using a XSD schema.
For the schema -- you need to do something like this :
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:element name="seeker"> <xs:complexType> <xs:sequence> <xs:element ref="name"/> <xs:element ref="address"/> <xs:element ref="personalinfo"/> <xs:element ref="email"/> <xs:element ref="skills"/> <xs:element ref="salary"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="name"> <xs:complexType> <xs:sequence> <xs:element ref="first-name"/> <xs:element ref="surname"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="first-name" type="xs:NCName"/> <xs:element name="surname" type="xs:NCName"/> <xs:element name="address"> <xs:complexType> <xs:sequence> <xs:element ref="street"/> <xs:element ref="town"/> <xs:element ref="county"/> <xs:element ref="postcode"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="street" type="xs:string"/> <xs:element name="town" type="xs:NCName"/> <xs:element name="county" type="xs:string"/> <xs:element name="postcode" type="xs:integer"/> <xs:element name="personalinfo"> <xs:complexType> <xs:sequence> <xs:element ref="dateofbirth"/> <xs:element ref="nationality"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="dateofbirth"> <xs:complexType> <xs:attribute name="date" use="required" type="xs:date"/> </xs:complexType> </xs:element> <xs:element name="nationality" type="xs:NCName"/> <xs:element name="email" type="xs:string"/> <xs:element name="skills"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" ref="skill"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="skill" type="xs:NCName"/> <xs:element name="salary"> <xs:complexType> <xs:sequence> <xs:element ref="min-salary"/> <xs:element ref="max-salary"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="min-salary" type="xs:string"/> <xs:element name="max-salary" type="xs:string"/> </xs:schema>
A xml corresponding to the schema will look like this :
<?xml version="1.0" encoding="UTF-8"?> <!-- JOBSEEKER DETAILS --> <seeker xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="jobseeker.xsd"> <name> <first-name>MUKHTAR</first-name> <surname>OMAR</surname> </name> <address> <street>SOUTH C</street> <town>NAIROBI</town> <county>NAIROBI WEST</county> <postcode>00506</postcode> </address> <personalinfo> <dateofbirth date="1970-01-12" /> <nationality>Kenya</nationality> </personalinfo> <email>M.OMAR@GMAIL.COM</email> <skills> <skill>DOCTOR</skill> <skill>ENGINEER</skill> <skill>PILOT</skill> </skills> <salary> <min-salary>2000 USD</min-salary> <max-salary>3000 USD</max-salary> </salary> </seeker>
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

I tried working on number three, no errors as far as am concerned here goes 1. In the case of job requests, the sample file should include (at least) two different locations Answer - simpletype *<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="location"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="Masaki"/> <xs:enumeration value="Poster"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:schema>* where i thought they are testing you on *simpletype* and *complextype *2. for suitable jobs should include at least three different job descriptions from two different companies. Answer - *complextype <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="suitablejobs"> <xs:complexType name="companyname" type="jobdescripton"> <xs:sequence> <xs:element name="Jobone" type="xs:string"/> <xs:element name="Jobtwo" type="xs:string"/> <xs:element name="Jobthree" type="xs:string"/> </xs:sequence> </xs:complexType> <xs:complexType name="companyname" type="jobdescripton"> <xs:sequence> <xs:element name="Jobfour" type="xs:string"/> <xs:element name="Jobfive" type="xs:string"/> <xs:element name="Jobsix" type="xs:string"/> </xs:sequence> </xs:complexType> <xs:complexType name="jobdescripton"> <xs:complexContent> <xs:extension base="companyname"> <xs:sequence> <xs:element name="Jobtitle" type="xs:string"/> <xs:element name="salaryammount" type="xs:integer"/> <xs:element name="details" type="xs:string"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> </xs:element> </xs:schema> * Maybe fellow skunks can advise further On Thu, Mar 10, 2011 at 12:36 AM, ibtisam jamal <ibty.jamal@gmail.com>wrote:
Thanks for your response Ashok,
See attached my code that works but i only used xs:string for element name . I don't understand xs:NCName please elaborate .
Is it OK ??
I also have the following questions
3.Create XSD/Schema files for both a job request document, and the suitable jobs document. You should also produce example files of each type. In the case of job requests, the sample file should include (at least) two different locations and for suitable jobs should include at least three different job descriptions from two different companies. 4. Create an extended job seeker XSD document, and XML sample, to include provision for the following additional information: • How far away the job seeker is willing to travel for a new job • Whether the job seeker drives (should be either yes or no) • Current experience – this should be a list of positions that the user has had, including the position title, the address of the employment, and a list of responsibilities • References – two references, including referee name, address, phone number and email address You should ensure that data types are specified for all of the information as much as possible in the schema document. 5. Create an XSLT file to display the suitable jobs document as HTML in a web browser. The resulting output should deal with as many jobs as are returned, and be simple and clear to view (a table structure works best).
On Thu, Mar 10, 2011 at 9:38 AM, <ashok+skunkworks@parliaments.info>wrote:
On Tue, Mar 8, 2011 at 2:06 PM, ibtisam jamal <ibty.jamal@gmail.com>wrote:
im learning but im stuck i created the attached XML doc from the attached DTD then i created a schema doc from my XML and the DTD .but when i referenced the xsd in the xml document it gets stuck when validating .
I think i should have 6 elements under root seeker
Please find the attached
Your schema definition has some problems -- it allows multiple root elements ; does not define a hierarchy ; also you dont need a DTD if you are using a XSD schema.
For the schema -- you need to do something like this :
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:element name="seeker"> <xs:complexType> <xs:sequence> <xs:element ref="name"/> <xs:element ref="address"/> <xs:element ref="personalinfo"/> <xs:element ref="email"/> <xs:element ref="skills"/> <xs:element ref="salary"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="name"> <xs:complexType> <xs:sequence> <xs:element ref="first-name"/> <xs:element ref="surname"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="first-name" type="xs:NCName"/> <xs:element name="surname" type="xs:NCName"/> <xs:element name="address"> <xs:complexType> <xs:sequence> <xs:element ref="street"/> <xs:element ref="town"/> <xs:element ref="county"/> <xs:element ref="postcode"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="street" type="xs:string"/> <xs:element name="town" type="xs:NCName"/> <xs:element name="county" type="xs:string"/> <xs:element name="postcode" type="xs:integer"/> <xs:element name="personalinfo"> <xs:complexType> <xs:sequence> <xs:element ref="dateofbirth"/> <xs:element ref="nationality"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="dateofbirth"> <xs:complexType> <xs:attribute name="date" use="required" type="xs:date"/> </xs:complexType> </xs:element> <xs:element name="nationality" type="xs:NCName"/> <xs:element name="email" type="xs:string"/> <xs:element name="skills"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" ref="skill"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="skill" type="xs:NCName"/> <xs:element name="salary"> <xs:complexType> <xs:sequence> <xs:element ref="min-salary"/> <xs:element ref="max-salary"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="min-salary" type="xs:string"/> <xs:element name="max-salary" type="xs:string"/> </xs:schema>
A xml corresponding to the schema will look like this :
<?xml version="1.0" encoding="UTF-8"?> <!-- JOBSEEKER DETAILS --> <seeker xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="jobseeker.xsd"> <name> <first-name>MUKHTAR</first-name> <surname>OMAR</surname> </name> <address> <street>SOUTH C</street> <town>NAIROBI</town> <county>NAIROBI WEST</county> <postcode>00506</postcode> </address> <personalinfo> <dateofbirth date="1970-01-12" /> <nationality>Kenya</nationality> </personalinfo> <email>M.OMAR@GMAIL.COM</email> <skills> <skill>DOCTOR</skill> <skill>ENGINEER</skill> <skill>PILOT</skill> </skills> <salary> <min-salary>2000 USD</min-salary> <max-salary>3000 USD</max-salary> </salary> </seeker>
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- regards AA.Muhile Abdul Title: Creative *Address* Plot 145, Kijitonyama Area, P.O.Box 71387 Dar es Salaam Tanzania Cell: +255 783 018998

Hi, <xs:element name="location"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="Masaki"/> <xs:enumeration value="Poster"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:schema> the above will restrict the location values to only Masaki and Poster.I think it should be any location not restricted to the above. Then i fail to validate the second part.Im getting an error at type ="jobdescription" *<xs:complexType name="companyname" type="jobdescripton"> <xs:sequence> <xs:element name="Jobone" type="xs:string"/> <xs:element name="Jobtwo" type="xs:string"/> <xs:element name="Jobthree" type="xs:string"/> </xs:sequence> </xs:complexType> * On Thu, Mar 10, 2011 at 12:57 PM, Muhile Abdulaziz < abdulaziz.muhile@gmail.com> wrote:
I tried working on number three, no errors as far as am concerned
here goes
1. In the case of job requests, the sample file should include (at least) two different locations
Answer - simpletype
* <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="location"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="Masaki"/> <xs:enumeration value="Poster"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:schema>*
where i thought they are testing you on *simpletype* and *complextype
*2. for suitable jobs should include at least three different job descriptions from two different companies.
Answer - *complextype
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="suitablejobs">
<xs:complexType name="companyname" type="jobdescripton"> <xs:sequence> <xs:element name="Jobone" type="xs:string"/> <xs:element name="Jobtwo" type="xs:string"/> <xs:element name="Jobthree" type="xs:string"/> </xs:sequence> </xs:complexType>
<xs:complexType name="companyname" type="jobdescripton"> <xs:sequence> <xs:element name="Jobfour" type="xs:string"/> <xs:element name="Jobfive" type="xs:string"/> <xs:element name="Jobsix" type="xs:string"/> </xs:sequence> </xs:complexType>
<xs:complexType name="jobdescripton"> <xs:complexContent> <xs:extension base="companyname"> <xs:sequence> <xs:element name="Jobtitle" type="xs:string"/> <xs:element name="salaryammount" type="xs:integer"/> <xs:element name="details" type="xs:string"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType>
</xs:element>
</xs:schema> * Maybe fellow skunks can advise further
On Thu, Mar 10, 2011 at 12:36 AM, ibtisam jamal <ibty.jamal@gmail.com>wrote:
Thanks for your response Ashok,
See attached my code that works but i only used xs:string for element name . I don't understand xs:NCName please elaborate .
Is it OK ??
I also have the following questions
3.Create XSD/Schema files for both a job request document, and the suitable jobs document. You should also produce example files of each type. In the case of job requests, the sample file should include (at least) two different locations and for suitable jobs should include at least three different job descriptions from two different companies. 4. Create an extended job seeker XSD document, and XML sample, to include provision for the following additional information: • How far away the job seeker is willing to travel for a new job • Whether the job seeker drives (should be either yes or no) • Current experience – this should be a list of positions that the user has had, including the position title, the address of the employment, and a list of responsibilities • References – two references, including referee name, address, phone number and email address You should ensure that data types are specified for all of the information as much as possible in the schema document. 5. Create an XSLT file to display the suitable jobs document as HTML in a web browser. The resulting output should deal with as many jobs as are returned, and be simple and clear to view (a table structure works best).
On Thu, Mar 10, 2011 at 9:38 AM, <ashok+skunkworks@parliaments.info>wrote:
On Tue, Mar 8, 2011 at 2:06 PM, ibtisam jamal <ibty.jamal@gmail.com>wrote:
im learning but im stuck i created the attached XML doc from the attached DTD then i created a schema doc from my XML and the DTD .but when i referenced the xsd in the xml document it gets stuck when validating .
I think i should have 6 elements under root seeker
Please find the attached
Your schema definition has some problems -- it allows multiple root elements ; does not define a hierarchy ; also you dont need a DTD if you are using a XSD schema.
For the schema -- you need to do something like this :
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:element name="seeker"> <xs:complexType> <xs:sequence> <xs:element ref="name"/> <xs:element ref="address"/> <xs:element ref="personalinfo"/> <xs:element ref="email"/> <xs:element ref="skills"/> <xs:element ref="salary"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="name"> <xs:complexType> <xs:sequence> <xs:element ref="first-name"/> <xs:element ref="surname"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="first-name" type="xs:NCName"/> <xs:element name="surname" type="xs:NCName"/> <xs:element name="address"> <xs:complexType> <xs:sequence> <xs:element ref="street"/> <xs:element ref="town"/> <xs:element ref="county"/> <xs:element ref="postcode"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="street" type="xs:string"/> <xs:element name="town" type="xs:NCName"/> <xs:element name="county" type="xs:string"/> <xs:element name="postcode" type="xs:integer"/> <xs:element name="personalinfo"> <xs:complexType> <xs:sequence> <xs:element ref="dateofbirth"/> <xs:element ref="nationality"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="dateofbirth"> <xs:complexType> <xs:attribute name="date" use="required" type="xs:date"/> </xs:complexType> </xs:element> <xs:element name="nationality" type="xs:NCName"/> <xs:element name="email" type="xs:string"/> <xs:element name="skills"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" ref="skill"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="skill" type="xs:NCName"/> <xs:element name="salary"> <xs:complexType> <xs:sequence> <xs:element ref="min-salary"/> <xs:element ref="max-salary"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="min-salary" type="xs:string"/> <xs:element name="max-salary" type="xs:string"/> </xs:schema>
A xml corresponding to the schema will look like this :
<?xml version="1.0" encoding="UTF-8"?> <!-- JOBSEEKER DETAILS --> <seeker xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="jobseeker.xsd"> <name> <first-name>MUKHTAR</first-name> <surname>OMAR</surname> </name> <address> <street>SOUTH C</street> <town>NAIROBI</town> <county>NAIROBI WEST</county> <postcode>00506</postcode> </address> <personalinfo> <dateofbirth date="1970-01-12" /> <nationality>Kenya</nationality> </personalinfo> <email>M.OMAR@GMAIL.COM</email> <skills> <skill>DOCTOR</skill> <skill>ENGINEER</skill> <skill>PILOT</skill> </skills> <salary> <min-salary>2000 USD</min-salary> <max-salary>3000 USD</max-salary> </salary> </seeker>
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- regards
AA.Muhile Abdul Title: Creative
*Address* Plot 145, Kijitonyama Area, P.O.Box 71387 Dar es Salaam Tanzania Cell: +255 783 018998
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

whats the error, send post the xml file On Thu, Mar 10, 2011 at 3:30 AM, ibtisam jamal <ibty.jamal@gmail.com> wrote:
Hi,
<xs:element name="location"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="Masaki"/> <xs:enumeration value="Poster"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:schema>
the above will restrict the location values to only Masaki and Poster.I think it should be any location not restricted to the above.
Then i fail to validate the second part.Im getting an error at type ="jobdescription"
*<xs:complexType name="companyname" type="jobdescripton"> <xs:sequence> <xs:element name="Jobone" type="xs:string"/> <xs:element name="Jobtwo" type="xs:string"/> <xs:element name="Jobthree" type="xs:string"/> </xs:sequence> </xs:complexType> *
On Thu, Mar 10, 2011 at 12:57 PM, Muhile Abdulaziz < abdulaziz.muhile@gmail.com> wrote:
I tried working on number three, no errors as far as am concerned
here goes
1. In the case of job requests, the sample file should include (at least) two different locations
Answer - simpletype
* <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="location"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="Masaki"/> <xs:enumeration value="Poster"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:schema>*
where i thought they are testing you on *simpletype* and *complextype
*2. for suitable jobs should include at least three different job descriptions from two different companies.
Answer - *complextype
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="suitablejobs">
<xs:complexType name="companyname" type="jobdescripton"> <xs:sequence> <xs:element name="Jobone" type="xs:string"/> <xs:element name="Jobtwo" type="xs:string"/> <xs:element name="Jobthree" type="xs:string"/> </xs:sequence> </xs:complexType>
<xs:complexType name="companyname" type="jobdescripton"> <xs:sequence> <xs:element name="Jobfour" type="xs:string"/> <xs:element name="Jobfive" type="xs:string"/> <xs:element name="Jobsix" type="xs:string"/> </xs:sequence> </xs:complexType>
<xs:complexType name="jobdescripton"> <xs:complexContent> <xs:extension base="companyname"> <xs:sequence> <xs:element name="Jobtitle" type="xs:string"/> <xs:element name="salaryammount" type="xs:integer"/> <xs:element name="details" type="xs:string"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType>
</xs:element>
</xs:schema> * Maybe fellow skunks can advise further
On Thu, Mar 10, 2011 at 12:36 AM, ibtisam jamal <ibty.jamal@gmail.com>wrote:
Thanks for your response Ashok,
See attached my code that works but i only used xs:string for element name . I don't understand xs:NCName please elaborate .
Is it OK ??
I also have the following questions
3.Create XSD/Schema files for both a job request document, and the suitable jobs document. You should also produce example files of each type. In the case of job requests, the sample file should include (at least) two different locations and for suitable jobs should include at least three different job descriptions from two different companies. 4. Create an extended job seeker XSD document, and XML sample, to include provision for the following additional information: • How far away the job seeker is willing to travel for a new job • Whether the job seeker drives (should be either yes or no) • Current experience – this should be a list of positions that the user has had, including the position title, the address of the employment, and a list of responsibilities • References – two references, including referee name, address, phone number and email address You should ensure that data types are specified for all of the information as much as possible in the schema document. 5. Create an XSLT file to display the suitable jobs document as HTML in a web browser. The resulting output should deal with as many jobs as are returned, and be simple and clear to view (a table structure works best).
On Thu, Mar 10, 2011 at 9:38 AM, <ashok+skunkworks@parliaments.info>wrote:
On Tue, Mar 8, 2011 at 2:06 PM, ibtisam jamal <ibty.jamal@gmail.com>wrote:
im learning but im stuck i created the attached XML doc from the attached DTD then i created a schema doc from my XML and the DTD .but when i referenced the xsd in the xml document it gets stuck when validating .
I think i should have 6 elements under root seeker
Please find the attached
Your schema definition has some problems -- it allows multiple root elements ; does not define a hierarchy ; also you dont need a DTD if you are using a XSD schema.
For the schema -- you need to do something like this :
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:element name="seeker"> <xs:complexType> <xs:sequence> <xs:element ref="name"/> <xs:element ref="address"/> <xs:element ref="personalinfo"/> <xs:element ref="email"/> <xs:element ref="skills"/> <xs:element ref="salary"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="name"> <xs:complexType> <xs:sequence> <xs:element ref="first-name"/> <xs:element ref="surname"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="first-name" type="xs:NCName"/> <xs:element name="surname" type="xs:NCName"/> <xs:element name="address"> <xs:complexType> <xs:sequence> <xs:element ref="street"/> <xs:element ref="town"/> <xs:element ref="county"/> <xs:element ref="postcode"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="street" type="xs:string"/> <xs:element name="town" type="xs:NCName"/> <xs:element name="county" type="xs:string"/> <xs:element name="postcode" type="xs:integer"/> <xs:element name="personalinfo"> <xs:complexType> <xs:sequence> <xs:element ref="dateofbirth"/> <xs:element ref="nationality"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="dateofbirth"> <xs:complexType> <xs:attribute name="date" use="required" type="xs:date"/> </xs:complexType> </xs:element> <xs:element name="nationality" type="xs:NCName"/> <xs:element name="email" type="xs:string"/> <xs:element name="skills"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" ref="skill"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="skill" type="xs:NCName"/> <xs:element name="salary"> <xs:complexType> <xs:sequence> <xs:element ref="min-salary"/> <xs:element ref="max-salary"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="min-salary" type="xs:string"/> <xs:element name="max-salary" type="xs:string"/> </xs:schema>
A xml corresponding to the schema will look like this :
<?xml version="1.0" encoding="UTF-8"?> <!-- JOBSEEKER DETAILS --> <seeker xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="jobseeker.xsd"> <name> <first-name>MUKHTAR</first-name> <surname>OMAR</surname> </name> <address> <street>SOUTH C</street> <town>NAIROBI</town> <county>NAIROBI WEST</county> <postcode>00506</postcode> </address> <personalinfo> <dateofbirth date="1970-01-12" /> <nationality>Kenya</nationality> </personalinfo> <email>M.OMAR@GMAIL.COM</email> <skills> <skill>DOCTOR</skill> <skill>ENGINEER</skill> <skill>PILOT</skill> </skills> <salary> <min-salary>2000 USD</min-salary> <max-salary>3000 USD</max-salary> </salary> </seeker>
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- regards
AA.Muhile Abdul Title: Creative
*Address* Plot 145, Kijitonyama Area, P.O.Box 71387 Dar es Salaam Tanzania Cell: +255 783 018998
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- regards AA.Muhile Abdul Title: Creative *Address* Plot 145, Kijitonyama Area, P.O.Box 71387 Dar es Salaam Tanzania Cell: +255 783 018998

<xs:complexType name="companyname" type="xs:string"> error Attribute 'name' is not allowed in element <xs:complexType> On Thu, Mar 10, 2011 at 2:34 PM, Muhile Abdulaziz < abdulaziz.muhile@gmail.com> wrote:
whats the error, send post the xml file
On Thu, Mar 10, 2011 at 3:30 AM, ibtisam jamal <ibty.jamal@gmail.com>wrote:
Hi,
<xs:element name="location"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="Masaki"/> <xs:enumeration value="Poster"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:schema>
the above will restrict the location values to only Masaki and Poster.I think it should be any location not restricted to the above.
Then i fail to validate the second part.Im getting an error at type ="jobdescription"
*<xs:complexType name="companyname" type="jobdescripton"> <xs:sequence> <xs:element name="Jobone" type="xs:string"/> <xs:element name="Jobtwo" type="xs:string"/> <xs:element name="Jobthree" type="xs:string"/> </xs:sequence> </xs:complexType> *
On Thu, Mar 10, 2011 at 12:57 PM, Muhile Abdulaziz < abdulaziz.muhile@gmail.com> wrote:
I tried working on number three, no errors as far as am concerned
here goes
1. In the case of job requests, the sample file should include (at least) two different locations
Answer - simpletype
* <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="location"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="Masaki"/> <xs:enumeration value="Poster"/> </xs:restriction> </xs:simpleType> </xs:element> </xs:schema>*
where i thought they are testing you on *simpletype* and *complextype
*2. for suitable jobs should include at least three different job descriptions from two different companies.
Answer - *complextype
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="suitablejobs">
<xs:complexType name="companyname" type="jobdescripton"> <xs:sequence> <xs:element name="Jobone" type="xs:string"/> <xs:element name="Jobtwo" type="xs:string"/> <xs:element name="Jobthree" type="xs:string"/> </xs:sequence> </xs:complexType>
<xs:complexType name="companyname" type="jobdescripton"> <xs:sequence> <xs:element name="Jobfour" type="xs:string"/> <xs:element name="Jobfive" type="xs:string"/> <xs:element name="Jobsix" type="xs:string"/> </xs:sequence> </xs:complexType>
<xs:complexType name="jobdescripton"> <xs:complexContent> <xs:extension base="companyname"> <xs:sequence> <xs:element name="Jobtitle" type="xs:string"/> <xs:element name="salaryammount" type="xs:integer"/> <xs:element name="details" type="xs:string"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType>
</xs:element>
</xs:schema> * Maybe fellow skunks can advise further
On Thu, Mar 10, 2011 at 12:36 AM, ibtisam jamal <ibty.jamal@gmail.com>wrote:
Thanks for your response Ashok,
See attached my code that works but i only used xs:string for element name . I don't understand xs:NCName please elaborate .
Is it OK ??
I also have the following questions
3.Create XSD/Schema files for both a job request document, and the suitable jobs document. You should also produce example files of each type. In the case of job requests, the sample file should include (at least) two different locations and for suitable jobs should include at least three different job descriptions from two different companies. 4. Create an extended job seeker XSD document, and XML sample, to include provision for the following additional information: • How far away the job seeker is willing to travel for a new job • Whether the job seeker drives (should be either yes or no) • Current experience – this should be a list of positions that the user has had, including the position title, the address of the employment, and a list of responsibilities • References – two references, including referee name, address, phone number and email address You should ensure that data types are specified for all of the information as much as possible in the schema document. 5. Create an XSLT file to display the suitable jobs document as HTML in a web browser. The resulting output should deal with as many jobs as are returned, and be simple and clear to view (a table structure works best).
On Thu, Mar 10, 2011 at 9:38 AM, <ashok+skunkworks@parliaments.info>wrote:
On Tue, Mar 8, 2011 at 2:06 PM, ibtisam jamal <ibty.jamal@gmail.com>wrote:
im learning but im stuck i created the attached XML doc from the attached DTD then i created a schema doc from my XML and the DTD .but when i referenced the xsd in the xml document it gets stuck when validating .
I think i should have 6 elements under root seeker
Please find the attached
Your schema definition has some problems -- it allows multiple root elements ; does not define a hierarchy ; also you dont need a DTD if you are using a XSD schema.
For the schema -- you need to do something like this :
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:element name="seeker"> <xs:complexType> <xs:sequence> <xs:element ref="name"/> <xs:element ref="address"/> <xs:element ref="personalinfo"/> <xs:element ref="email"/> <xs:element ref="skills"/> <xs:element ref="salary"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="name"> <xs:complexType> <xs:sequence> <xs:element ref="first-name"/> <xs:element ref="surname"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="first-name" type="xs:NCName"/> <xs:element name="surname" type="xs:NCName"/> <xs:element name="address"> <xs:complexType> <xs:sequence> <xs:element ref="street"/> <xs:element ref="town"/> <xs:element ref="county"/> <xs:element ref="postcode"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="street" type="xs:string"/> <xs:element name="town" type="xs:NCName"/> <xs:element name="county" type="xs:string"/> <xs:element name="postcode" type="xs:integer"/> <xs:element name="personalinfo"> <xs:complexType> <xs:sequence> <xs:element ref="dateofbirth"/> <xs:element ref="nationality"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="dateofbirth"> <xs:complexType> <xs:attribute name="date" use="required" type="xs:date"/> </xs:complexType> </xs:element> <xs:element name="nationality" type="xs:NCName"/> <xs:element name="email" type="xs:string"/> <xs:element name="skills"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" ref="skill"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="skill" type="xs:NCName"/> <xs:element name="salary"> <xs:complexType> <xs:sequence> <xs:element ref="min-salary"/> <xs:element ref="max-salary"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="min-salary" type="xs:string"/> <xs:element name="max-salary" type="xs:string"/> </xs:schema>
A xml corresponding to the schema will look like this :
<?xml version="1.0" encoding="UTF-8"?> <!-- JOBSEEKER DETAILS --> <seeker xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="jobseeker.xsd"> <name> <first-name>MUKHTAR</first-name> <surname>OMAR</surname> </name> <address> <street>SOUTH C</street> <town>NAIROBI</town> <county>NAIROBI WEST</county> <postcode>00506</postcode> </address> <personalinfo> <dateofbirth date="1970-01-12" /> <nationality>Kenya</nationality> </personalinfo> <email>M.OMAR@GMAIL.COM</email> <skills> <skill>DOCTOR</skill> <skill>ENGINEER</skill> <skill>PILOT</skill> </skills> <salary> <min-salary>2000 USD</min-salary> <max-salary>3000 USD</max-salary> </salary> </seeker>
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- regards
AA.Muhile Abdul Title: Creative
*Address* Plot 145, Kijitonyama Area, P.O.Box 71387 Dar es Salaam Tanzania Cell: +255 783 018998
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- regards
AA.Muhile Abdul Title: Creative
*Address* Plot 145, Kijitonyama Area, P.O.Box 71387 Dar es Salaam Tanzania Cell: +255 783 018998
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

On Thu, Mar 10, 2011 at 2:30 PM, ibtisam jamal <ibty.jamal@gmail.com> wrote:
Then i fail to validate the second part.Im getting an error at type ="jobdescription" <xs:complexType name="companyname" type="jobdescripton"> <xs:sequence> <xs:element name="Jobone" type="xs:string"/> <xs:element name="Jobtwo" type="xs:string"/> <xs:element name="Jobthree" type="xs:string"/> </xs:sequence> </xs:complexType>
"type" attribute is wrong on xs:complexType -- the complexType is a composite type by itself. so you cant define a type attribute on that.

@Ashok, I now understand why your idea for the XML/XSLT user group has merit. For interested parties able to attend: http://www.ihub.co.ke/blog/2011/03/nairobi-python-user-group-meetup/ Cheers! ________________________________ From: "ashok+skunkworks@parliaments.info" <ashok+skunkworks@parliaments.info> To: Skunkworks Mailing List <skunkworks@lists.my.co.ke> Sent: Thu, March 10, 2011 5:58:39 AM Subject: Re: [Skunkworks] XML,XSD,XSLT assistance required On Thu, Mar 10, 2011 at 2:30 PM, ibtisam jamal <ibty.jamal@gmail.com> wrote:
Then i fail to validate the second part.Im getting an error at type ="jobdescription" <xs:complexType name="companyname" type="jobdescripton"> <xs:sequence> <xs:element name="Jobone" type="xs:string"/> <xs:element name="Jobtwo" type="xs:string"/> <xs:element name="Jobthree" type="xs:string"/> </xs:sequence> </xs:complexType>
"type" attribute is wrong on xs:complexType -- the complexType is a composite type by itself. so you cant define a type attribute on that. _______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

Any luck on the solutions ?3 ,4,and 5 On Thu, Mar 10, 2011 at 4:33 PM, Bernard Owuor <b_owuor@yahoo.com> wrote:
@Ashok, I now understand why your idea for the XML/XSLT user group has merit.
For interested parties able to attend: http://www.ihub.co.ke/blog/2011/03/nairobi-python-user-group-meetup/
Cheers!
------------------------------ *From:* "ashok+skunkworks@parliaments.info" < ashok+skunkworks@parliaments.info> *To:* Skunkworks Mailing List <skunkworks@lists.my.co.ke> *Sent:* Thu, March 10, 2011 5:58:39 AM *Subject:* Re: [Skunkworks] XML,XSD,XSLT assistance required
On Thu, Mar 10, 2011 at 2:30 PM, ibtisam jamal <ibty.jamal@gmail.com> wrote:
Then i fail to validate the second part.Im getting an error at type ="jobdescription" <xs:complexType name="companyname" type="jobdescripton"> <xs:sequence> <xs:element name="Jobone" type="xs:string"/> <xs:element name="Jobtwo" type="xs:string"/> <xs:element name="Jobthree" type="xs:string"/> </xs:sequence> </xs:complexType>
"type" attribute is wrong on xs:complexType -- the complexType is a composite type by itself. so you cant define a type attribute on that. _______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
_______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

On Thu, Mar 10, 2011 at 11:36 AM, ibtisam jamal <ibty.jamal@gmail.com> wrote:
4. Create an extended job seeker XSD document, and XML sample, to include provision for the following additional information: • How far away the job seeker is willing to travel for a new job
this is a xs:integer
• Whether the job seeker drives (should be either yes or no)
this is a xs:boolean ... i.e. something like <xs:element name="drive" type="xs:boolean" default="false" />
• Current experience – this should be a list of positions that the user has had, including the position title, the address of the employment, and a list of responsibilities
this is a case for a complexType since its not just one piece of information but an aggregation of different types : lets start with the last one "responsibilities" -- thats a plural so its composed of multiple "responsiblity" so you first define responsibility : <xs:element name="responsiblity" type="xs:string"/> and then responsibilities : <xs:element name="responsibilities"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" ref="responsiblity"/> </xs:sequence> </xs:complexType> </xs:element> and aggregate that into experience : <xs:complexType name="experience"> <xs:sequence> <xs:element name="title" type="xs:string" /> <xs:element name="start-date" type="xs:date" /> <xs:element name="end-date" type="xs:date" /> <xs:element ref="responsibilities"/> </xs:sequence> </xs:complexType> so the way you have to do it is to identify and define the structure of the individual attributes in the following way (and order i would say ): - singularity (title, start-date, end-date, responsibility) - plurality (responsiblities ) - and composities (experience = title, start-date, end-date, responsibilities ) If you break down the whole problem statement into such groupings -- you can easily define the schema from there ...
5. Create an XSLT file to display the suitable jobs document as HTML in a web browser. The resulting output should deal with as many jobs as are returned, and be simple and clear to view (a table structure works best).
Start here : <http://www.w3schools.com/xsl/> <http://www.dpawson.co.uk/xsl/sect2/N7450.html> but to do the XSLT you will need to first define the schema and then create some xml documents out of that schema ...

Thanks for the advice...this XSLT is giving me issues how do i create a table based on ,how should the table look . <suitablejobs xsi:noNamespaceSchemaLocation="SuitableJobsfinal.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <company> <companyname> <companyname>String</companyname> </companyname> <jobdescription> <jobtitle>String</jobtitle> <salaryammount>0</salaryammount> <details>String</details> </jobdescription> <jobdescription> <jobtitle>String</jobtitle> <salaryammount>0</salaryammount> <details>String</details> </jobdescription> <jobdescription> <jobtitle>String</jobtitle> <salaryammount>0</salaryammount> <details>String</details> </jobdescription> </company> <company> <companyname> <companyname>String</companyname> </companyname> <jobdescription> <jobtitle>String</jobtitle> <salaryammount>0</salaryammount> <details>String</details> </jobdescription> <jobdescription> <jobtitle>String</jobtitle> <salaryammount>0</salaryammount> <details>String</details> </jobdescription> <jobdescription> <jobtitle>String</jobtitle> <salaryammount>0</salaryammount> <details>String</details> </jobdescription> </company> </suitablejobs> On Fri, Mar 11, 2011 at 9:40 AM, <ashok+skunkworks@parliaments.info> wrote:
On Thu, Mar 10, 2011 at 11:36 AM, ibtisam jamal <ibty.jamal@gmail.com> wrote:
4. Create an extended job seeker XSD document, and XML sample, to include provision for the following additional information: • How far away the job seeker is willing to travel for a new job
this is a xs:integer
• Whether the job seeker drives (should be either yes or no)
this is a xs:boolean ... i.e. something like <xs:element name="drive" type="xs:boolean" default="false" />
• Current experience – this should be a list of positions that the user has had, including the position title, the address of the employment, and a list of responsibilities
this is a case for a complexType since its not just one piece of information but an aggregation of different types :
lets start with the last one "responsibilities" -- thats a plural so its composed of multiple "responsiblity"
so you first define responsibility :
<xs:element name="responsiblity" type="xs:string"/>
and then responsibilities :
<xs:element name="responsibilities"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" ref="responsiblity"/> </xs:sequence> </xs:complexType> </xs:element>
and aggregate that into experience :
<xs:complexType name="experience"> <xs:sequence> <xs:element name="title" type="xs:string" /> <xs:element name="start-date" type="xs:date" /> <xs:element name="end-date" type="xs:date" /> <xs:element ref="responsibilities"/> </xs:sequence> </xs:complexType>
so the way you have to do it is to identify and define the structure of the individual attributes in the following way (and order i would say ):
- singularity (title, start-date, end-date, responsibility) - plurality (responsiblities ) - and composities (experience = title, start-date, end-date, responsibilities )
If you break down the whole problem statement into such groupings -- you can easily define the schema from there ...
5. Create an XSLT file to display the suitable jobs document as HTML in a web browser. The resulting output should deal with as many jobs as are returned, and be simple and clear to view (a table structure works best).
Start here :
<http://www.w3schools.com/xsl/> <http://www.dpawson.co.uk/xsl/sect2/N7450.html>
but to do the XSLT you will need to first define the schema and then create some xml documents out of that schema ... _______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

On Fri, Mar 11, 2011 at 5:02 PM, ibtisam jamal <ibty.jamal@gmail.com> wrote:
Thanks for the advice...this XSLT is giving me issues how do i create a table based on ,how should the table look . <suitablejobs xsi:noNamespaceSchemaLocation="SuitableJobsfinal.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <company> <companyname> <companyname>String</companyname> </companyname> <jobdescription> <jobtitle>String</jobtitle> <salaryammount>0</salaryammount> <details>String</details> </jobdescription> <jobdescription> <jobtitle>String</jobtitle> <salaryammount>0</salaryammount> <details>String</details> </jobdescription> <jobdescription> <jobtitle>String</jobtitle> <salaryammount>0</salaryammount> <details>String</details> </jobdescription> </company> <company> <companyname> <companyname>String</companyname> </companyname> <jobdescription> <jobtitle>String</jobtitle> <salaryammount>0</salaryammount> <details>String</details> </jobdescription> <jobdescription> <jobtitle>String</jobtitle> <salaryammount>0</salaryammount> <details>String</details> </jobdescription> <jobdescription> <jobtitle>String</jobtitle> <salaryammount>/0</salaryammount> <details>String</details> </jobdescription> </company> </suitablejobs>
There is something not correct in thisdocument structure ... e.g. you have nested "companyname" elements -- why ? <company> <companyname> <companyname>String</companyname> </companyname> .... perhaps this should be "companyname" at the first level ? <company> <companyname>String</companyname> then you have multiple "jobdescription" elements within <company>. these are better grouped within a "jobdescriptions" element , something like : <company> ..... <jobdescriptions> <jobdescription> <jobtitle>String</jobtitle> <salaryammount>0</salaryammount> <details>String</details> </jobdescription> ...... </jobdescriptions> So assuming you made the changes as described above -- the way to display them in a tabular way. if you notice the job-descriptions are grouped by company name ... so one way to do it is to make the "companyname" a heading and put the job descriptions in a table ... something like : A Company Job title | Salary | Details ---------------------------------- A title | 10,000 | Some info ----------------------------------- B title | 20,000 | Some info2 --------------------------------------- B Company Job title | Salary | Details ---------------------------------- C title | 10,000 | Some info ----------------------------------- D title | 20,000 | Some info2 ---------------------------------------
participants (6)
-
[Brainiac]
-
ashok+skunkworks@parliaments.info
-
Bernard Owuor
-
ibtisam jamal
-
Muhile Abdulaziz
-
Paul Kevin