السلام عليكم ورحمة الله تعالى وبركاته
مطلوب منا عمل cv باستخدام xml
وهي وصف المطلوب بالتفصيل
You are required to use XML tools to make your own CV (personal information) such as:
Must have your name in firstName, Middle initial and lastName order.
Must have address with complete information (street, city, country, email)
Specify 1 to 3 references (people who know you): name, job, title and address (address should have the structure like your address).
Write your study information (college, department, level).
Alt least one interest Area in IT.
You can write hobbies in your CV (optional).
Requirements:
Write an XML schema document (based on the above structure) that would define the CV XML document structure.
Write Your CV in XML such that it can be validated against the schema (you must reference the schema from your CV XML document)
Write an XSL document to view the contents of the XML document in any Web browser. Use formatting, text size/color, etc. in the viewing.
وأنا الحمد لله ساويت المطلوب وكل شي بس مابعرف وين الخطأ بيلي ساويته لان ما عرض لي صفحة نت بالـ cv قام عرض بس الاوامر يلي انا عاملتها بالملف
بقى ياريت اي حدا عنده خبرة بالسكيمة و السي اس اس يشوف اللي انا عاملته و يعرف وين المشكلة فيه
وهي الاكواد يلي عملتها :
اول شي ملف السي اس اس
.text {
line-height: 16px;
color: #222299;
font-family: sans-serif;
font-size: 10px
}
a { text-decoration: none}
a:hover { text-decoration: underline}تاني كود كود xml
<?xml version="1.0" encoding="ISO-8859-1"?> <cv orderid="889923" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CV.xsd"> <fullname> <firstname>reem</firstname> <secondname>J</secondname> <lastname>elsaba</lastname> </fullname> <address> <street>Sallah El-Deen</street> <city>Gaza</city> <country>Palestine</country> <email>r@hotmial.com</email> </address> <people> <name> <firstname>M</firstname> <middlename>O</middlename> <lastname>K</lastname> </name> <job>Student</job> <title>study in university</title> <address> <street>El- Mydan</street> <city>Gaza</city> <country>Syria</country> <email>m@hotmail.com</email> </address> </people> <study> <college>IT</college> <department>software development</department> <level>four</level> <interest>design photo</interest> </study> <hoppies>listen to music</hoppies> </cv>
ثالث كود xsd
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="fullname">
<xs:complexType>
<xs:element name="firstname" type="xs:string"/>
<xs:element name="secondname" type="xs:string"/>
<xs:element name="lastname" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="address">
<xs:complexType>
<xs:element name="street" type="xs:string"/>
<xs:element name="city" type="xs:string"/>
<xs:element name="country" type="xs:string"/>
<xs:element name="email" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="people" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="xs:complextype">
<xs:complexType>
<xs:element name="firstname" type="xs:string"/>
<xs:element name="secondname" type="xs:string"/>
<xs:element name="lastname" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="job" type="xs:string" />
<xs:element name="title" type="xs:string"/>
<xs:element name="address" type="xs:complextype">
<xs:complexType>
<xs:element name="street" type="xs:string"/>
<xs:element name="country" type="xs:string"/>
<xs:element name="city" type="xs:string"/>
<xs:element name="email" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="study">
<xs:complexType>
<xs:element name="college" type="xs:string"/>
<xs:element name="department" type="xs:string"/>
<xs:element name="level" type="xs:string"/>
<xs:sequence>
<xs:element name="interest" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:attribute name="hoppies" type="xs:string" use="required"/>
</xs:schema>رابع كود الـ xsl
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<h2>My CV Collection</h2>
<table border="1">
<tr bgcolor="#9acd32">
<th>name</th>
<th>address</th>
</tr>
<xsl:for-each select="fullname">
<tr>
<td><xsl:value-of select="firstname"/></td>
<td><xsl:value-of select="secondname"/></td>
<td><xsl:value-of select="lastname"/></td>
</tr>
</xsl:for-each>
<xsl:for-each select="address">
<tr>
<td><xsl:value-of select="street"/></td>
<td><xsl:value-of select="city"/></td>
<td><xsl:value-of select="country"/></td>
<td><xsl:value-of select="email"/></td>
</tr>
</xsl:for-each>
</table>
<table border="1">
<tr bgcolor="#9acd32">
<th>name</th>
<th>jop</th>
<th>titel</th>
<th>address</th>
</tr>
<xsl:for-each select="people/name">
<tr>
<td><xsl:value-of select="firstname"/></td>
<td><xsl:value-of select="secondname"/></td>
<td><xsl:value-of select="lastname"/></td>
</tr>
</xsl:for-each>
<TR>
<TD><xsl:value-of select="job"/></TD>
</TR>
<TR>
<TD><xsl:value-of select="title"/></TD>
</TR>
<xsl:for-each select="address">
<tr>
<td><xsl:value-of select="street"/></td>
<td><xsl:value-of select="city"/></td>
<td><xsl:value-of select="country"/></td>
<td><xsl:value-of select="email"/></td>
</tr>
</xsl:for-each>
<xsl:for-each select="study">
<tr>
<td><xsl:value-of select="college"/></td>
<td><xsl:value-of select="department"/></td>
<td><xsl:value-of select="level"/></td>
<td><xsl:value-of select="interest"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>والناتج بيكون متل ما قلت صفحة نت بيظهر فيها الاوامر يلي كتبتها بالxml بالtag يلي موجودة والمفروض يظهر فقط البيانات يلي بالcv
الامر صار بين أيديكم ,, ياريت تساعدوني فيه
وجزاكم الله عني كل خير

