sam.surya
Members-
Posts
14 -
Joined
-
Last visited
Contact Methods
-
AIM
sam.surya@gmail.com
-
Website URL
http://
-
ICQ
0
sam.surya's Achievements
Newbie (1/7)
0
Reputation
-
Hi,Thanks for your reply.Already i got the solution. Thanks for your effort.Regards,Kamal
-
Boen,Thanks for your creative reply. But i never foot to the back.I ll achieve this by means of xslt. I hope on my will. Once again thank you for rejunevate my thoughts.I suppose, u ll resolve my dobuts on xslt.Regards,Kamal
-
Dear boen,This has been assigned as my task for a project.I have corrected as per instruc. still i have some issues.If you don't mind, could you please send ur msn IM or any chat id.It ll more help ful for me to work along your instruction. while processing.Regards,Kamal
-
Boen,Thanks for your reply. Actually, I cant get the <answer> tag which is in xml.And also in preview of xml, line break rises in between the numerals and question texts.Suggest me for that.Regards,kamal
-
Dear boen,Yeah! finally i wrote a simple xsl for my xml content. It's working fine.I have some doubt in that: How can i joint the number with the texts. The answers part does not come to view (check the last <question> in xml ).Please check my xsl corresponding to my xml and add suggestions for the better.xml:<?xml version="1.0" encoding="UTF-8"?><?xml:stylesheet type="text/xsl" href="schema1.xsl"?><Assets> <TOCNode> <PackageName>EWB</PackageName> <NodeName>EWB_glencoe_lit</NodeName> </TOCNode> <Text> <name>UC_038_9 *workbookTitle*</name> <TextData><![CDATA[Grammar and Language Workbook]]></TextData> </Text> <Text> <name>UC_038_9 *CourseTitle*</name> <TextData><![CDATA[Lesson 43 Pronouns After Prepositions]]></TextData> </Text> <Text> <name>UC_038_9 *Activity_type*</name> <TextData><![CDATA[Multiple Choice]]></TextData> </Text> <Text> <name>UC_038_9 *Ahead*</name> <TextData><![CDATA[Exercise 2]]></TextData> </Text> <Sound> <name>UC_038_9_PG_1 *question1_audio1*</name> <Path>Grade_6\Unit_7\Lesson_43\Audio\done_files\xxx.mp3</Path> </Sound> <Sound> <name>UC_038_9_PG_1 *question1_audio2*</name> <Path>Grade_6\Unit_7\Lesson_43\Audio\done_files\xxx.mp3</Path> </Sound> <Sound> <name>UC_038_9_PG_1 *question2_audio1*</name> <Path>Grade_6\Unit_7\Lesson_43\Audio\done_files\xxx.mp3</Path> </Sound> <Sound> <name>UC_038_9_PG_1 *question2_audio2*</name> <Path>Grade_6\Unit_7\Lesson_43\Audio\done_files\xxx.mp3</Path> </Sound> <Sound> <name>UC_038_9_PG_2 *question3_audio1*</name> <Path>Grade_6\Unit_7\Lesson_43\Audio\done_files\xxx.mp3</Path> </Sound> <Sound> <name>UC_038_9_PG_2 *question3_audio2*</name> <Path>Grade_6\Unit_7\Lesson_43\Audio\done_files\xxx.mp3</Path> </Sound> <Sound> <name>UC_038_9_PG_2 *question4_audio1*</name> <Path>Grade_6\Unit_7\Lesson_43\Audio\done_files\xxx.mp3</Path> </Sound> <Sound> <name>UC_038_9_PG_2 *question4_audio2*</name> <Path>Grade_6\Unit_7\Lesson_43\Audio\done_files\xxx.mp3</Path> </Sound> <Sound> <name>UC_038_9_PG_3 *question5_audio1*</name> <Path>Grade_6\Unit_7\Lesson_43\Audio\done_files\xxx.mp3</Path> </Sound> <Sound> <name>UC_038_9_PG_3 *question5_audio2*</name> <Path>Grade_6\Unit_7\Lesson_43\Audio\done_files\xxx.mp3</Path> </Sound> <Sound> <name>UC_038_9_PG_3 *question6_audio1*</name> <Path>Grade_6\Unit_7\Lesson_43\Audio\done_files\xxx.mp3</Path> </Sound> <Sound> <name>UC_038_9_PG_3 *question6_audio2*</name> <Path>Grade_6\Unit_7\Lesson_43\Audio\done_files\xxx.mp3</Path> </Sound> <Sound> <name>UC_038_9_PG_4 *question7_audio1*</name> <Path>Grade_6\Unit_7\Lesson_43\Audio\done_files\xxx.mp3</Path> </Sound> <Sound> <name>UC_038_9_PG_4 *question7_audio2*</name> <Path>Grade_6\Unit_7\Lesson_43\Audio\done_files\xxx.mp3</Path> </Sound> <Sound> <name>UC_038_9_PG_4 *question8_audio1*</name> <Path>Grade_6\Unit_7\Lesson_43\Audio\done_files\xxx.mp3</Path> </Sound> <Sound> <name>UC_038_9_PG_4 *question8_audio2*</name> <Path>Grade_6\Unit_7\Lesson_43\Audio\done_files\xxx.mp3</Path> </Sound> <Sound> <name>UC_038_9_PG_5 *question9_audio1*</name> <Path>Grade_6\Unit_7\Lesson_43\Audio\done_files\xxx.mp3</Path> </Sound> <Sound> <name>UC_038_9_PG_5 *question9_audio2*</name> <Path>Grade_6\Unit_7\Lesson_43\Audio\done_files\xxx.mp3</Path> </Sound> <Sound> <name>UC_038_9_PG_5 *question10_audio1*</name> <Path>Grade_6\Unit_7\Lesson_43\Audio\done_files\xxx.mp3</Path> </Sound> <Sound> <name>UC_038_9_PG_5 *question10_audio2*</name> <Path>Grade_6\Unit_7\Lesson_43\Audio\done_files\xxx.mp3</Path> </Sound> <Sound> <name>UC_038_9_PG_6 *question11_audio1*</name> <Path>Grade_6\Unit_7\Lesson_43\Audio\done_files\xxx.mp3</Path> </Sound> <Sound> <name>UC_038_9_PG_6 *question11_audio2*</name> <Path>Grade_6\Unit_7\Lesson_43\Audio\done_files\xxx.mp3</Path> </Sound> <Sound> <name>UC_038_9_PG_6 *question12_audio1*</name> <Path>Grade_6\Unit_7\Lesson_43\Audio\done_files\xxx.mp3</Path> </Sound> <Sound> <name>UC_038_9_PG_6 *question12_audio2*</name> <Path>Grade_6\Unit_7\Lesson_43\Audio\done_files\xxx.mp3</Path> </Sound> <Text> <name>UC_038_9_PG_XX *activity_instructions*</name> <TextData><![CDATA[underline the pronoun in parentheses that best completes the sentence.]]></TextData> </Text> <Quiz> <name>UC_038_9 *quiz*</name> <Question> <name>UC_038_9_PG_1 *question1*</name> <Text> <name>UC_038_9_PG_1 *question_no1*</name> <TextData><![CDATA[1.]]></TextData> </Text> <Text> <name>UC_038_9_PG_1 *question_text*</name> <TextData><![CDATA[i think that the Crowleys live across from _____.]]></TextData> </Text> <Answer correct="false"> <name>UC_038_9_PG_1 *is_rb1_correct*</name> <Text> <name>UC_038_9_PG_1 *answer1_text*</name> <TextData><![CDATA[they]]></TextData> </Text> </Answer> <Answer correct="true"> <name>UC_038_9_PG_1 *is_rb2_correct*</name> <Text> <name>UC_038_9_PG_1 *answer2_text*</name> <TextData><![CDATA[them]]></TextData> </Text> </Answer> </Question> <Question> <name>UC_038_9_PG_1 *question2*</name> <Text> <name>UC_038_9_PG_1 *question_no2*</name> <TextData><![CDATA[2.]]></TextData> </Text> <Text> <name>UC_038_9_PG_1 *question_text*</name> <TextData><![CDATA[According to _____, Monday’s practice is cancelled.]]></TextData> </Text> <Answer correct="false"> <name>UC_038_9_PG_1 *is_rb1_correct*</name> <Text> <name>UC_038_9_PG_1 *answer1_text*</name> <TextData><![CDATA[she]]></TextData> </Text> </Answer> <Answer correct="true"> <name>UC_038_9_PG_1 *is_rb2_correct*</name> <Text> <name>UC_038_9_PG_1 *answer2_text*</name> <TextData><![CDATA[her]]></TextData> </Text> </Answer> </Question> <Question> <name>UC_038_9_PG_2 *question3*</name> <Text> <name>UC_038_9_PG_2 *question_no3*</name> <TextData><![CDATA[3.]]></TextData> </Text> <Text> <name>UC_038_9_PG_2 *question_text*</name> <TextData><![CDATA[Rodolfo, who is a new student, sits across from my sister and _____.]]></TextData> </Text> <Answer correct="false"> <name>UC_038_9_PG_2 *is_rb1_correct*</name> <Text> <name>UC_038_9_PG_2 *answer1_text*</name> <TextData><![CDATA]></TextData> </Text> </Answer> <Answer correct="true"> <name>UC_038_9_PG_2 *is_rb2_correct*</name> <Text> <name>UC_038_9_PG_2 *answer2_text*</name> <TextData><![CDATA[me]]></TextData> </Text> </Answer> </Question> <Question> <name>UC_038_9_PG_2 *question4*</name> <Text> <name>UC_038_9_PG_2 *question_no4*</name> <TextData><![CDATA[4.]]></TextData> </Text> <Text> <name>UC_038_9_PG_2 *question_text*</name> <TextData><![CDATA[stacey, I want you to help me instead of _____.]]></TextData> </Text> <Answer correct="false"> <name>UC_038_9_PG_2 *is_rb1_correct*</name> <Text> <name>UC_038_9_PG_2 *answer1_text*</name> <TextData><![CDATA[she]]></TextData> </Text> </Answer> <Answer correct="true"> <name>UC_038_9_PG_2 *is_rb2_correct*</name> <Text> <name>UC_038_9_PG_2 *answer2_text*</name> <TextData><![CDATA[her]]></TextData> </Text> </Answer> </Question> <Question> <name>UC_038_9_PG_3 *question5*</name> <Text> <name>UC_038_9_PG_3 *question_no5*</name> <TextData><![CDATA[5.]]></TextData> </Text> <Text> <name>UC_038_9_PG_3 *question_text*</name> <TextData><![CDATA[stand back to back, lean against _____, and then try to sit down.]]></TextData> </Text> <Answer correct="false"> <name>UC_038_9_PG_3 *is_rb1_correct*</name> <Text> <name>UC_038_9_PG_3 *answer1_text*</name> <TextData><![CDATA[he]]></TextData> </Text> </Answer> <Answer correct="true"> <name>UC_038_9_PG_3 *is_rb2_correct*</name> <Text> <name>UC_038_9_PG_3 *answer2_text*</name> <TextData><![CDATA[him]]></TextData> </Text> </Answer> </Question> <Question> <name>UC_038_9_PG_3 *question6*</name> <Text> <name>UC_038_9_PG_3 *question_no6*</name> <TextData><![CDATA[6.]]></TextData> </Text> <Text> <name>UC_038_9_PG_3 *question_text*</name> <TextData><![CDATA[From _____ did you get this information?]]></TextData> </Text> <Answer correct="false"> <name>UC_038_9_PG_3 *is_rb1_correct*</name> <Text> <name>UC_038_9_PG_3 *answer1_text*</name> <TextData><![CDATA[who]]></TextData> </Text> </Answer> <Answer correct="true"> <name>UC_038_9_PG_3 *is_rb2_correct*</name> <Text> <name>UC_038_9_PG_3 *answer2_text*</name> <TextData><![CDATA[whom]]></TextData> </Text> </Answer> </Question><Question> <name>UC_038_9_PG_1 *question_no1*</name> <Text><name>UC_038_9_PG_1 *question_no1*</name> <TextData><![CDATA[1.]]></TextData></Text><Text><name>UC_038_9_PG_1 *question_text*</name> <TextData><![CDATA[ Have you ever been that far north]]></TextData></Text><Answer correct="true"><name>UC_038_9_PG_1 *is_rb1_correct*</name> <Text><name>UC_038_9_PG_1 *answer1_text*</name> <TextData><![CDATA[?]]></TextData></Text></Answer><Answer correct="false"><name>UC_038_9_PG_1 *is_rb2_correct*</name> <Text><name>UC_038_9_PG_1 *answer2_text*</name> <TextData><![CDATA[.]]></TextData></Text></Answer></Question> </Quiz></Assets> xsl:<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="Assets"> <table align="center"><tr> <td align="center" valign="top"> <span class="Caption" style="text-align:center; font-size:24pt"> <B>Eworkbooks trial page</B></span><br/> <span class="caption" style="text-align:center; font-size:16pt;"> <B>MGH-Hurix</B></span> </td></tr> </table> <p><br/></p> <table frame="above" bordercolor="maroon" align="center" cellpadding="2" cellspacing="2"><tr><td> <table align="center" cellpadding="0" cellspacing="0"><tr> <td><B>Pakage Name</B></td><td><b>: <font color="#H008080FF"><xsl:value-of select="string(..//TOCNode//PackageName)"/></font></b></td> <td><font color="white"><xsl:text disable-output-escaping="yes"> </xsl:text></font></td> <td><B>Node Name</B></td><td><b>: <font color="#H008080FF"><xsl:value-of select="string(..//TOCNode//NodeName)"/></font></b></td> <td><font color="white"><xsl:text disable-output-escaping="yes"> </xsl:text></font></td> <td><B>Quiz name</B></td><td><B>: <font color="#H008080FF"><xsl:value-of select="string(..//Quiz//name)"/></font></B></td> </tr> <td></td> </table> </td></tr> </table> <p><br/><br/><br/><br/></p><xsl:apply-templates select=".//Question/Text/TextData"/> </xsl:template> <xsl:template match="TextData"><table><tr><td><xsl:apply-templates/></td></tr></table> </xsl:template> </xsl:stylesheet>I need your help.
-
Dear boen,i have pasted my sample working (xml and schema) file for your reference.i need Blue colored format of xml from the black colored (sample files).How can i convert the sample file?Help me on this!schema:<?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:element name="Assets"> <xs:complexType> <xs:sequence> <xs:element ref="TOCNode"/> <xs:element ref="Text"/> <xs:element ref="Quiz"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="TOCNode"> <xs:complexType> <xs:sequence> <xs:element ref="PackageName"/> <xs:element ref="NodeName"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="PackageName"> <xs:complexType/> </xs:element> <xs:element name="NodeName"> <xs:complexType/> </xs:element> <xs:element name="Quiz"> <xs:complexType> <xs:sequence> <xs:element ref="name"/> <xs:element ref="Question"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Question"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" ref="Text"/> <xs:element maxOccurs="unbounded" ref="Answer"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Answer"> <xs:complexType> <xs:sequence> <xs:element ref="Text"/> </xs:sequence> <xs:attribute name="correct" use="required" type="xs:boolean"/> </xs:complexType> </xs:element> <xs:element name="Text"> <xs:complexType> <xs:sequence> <xs:element ref="name"/> <xs:element ref="TextData"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="TextData" type="xs:NMTOKEN"/> <xs:element name="name"> <xs:complexType/> </xs:element></xs:schema>xml:<Assets xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="schema1.xsd"> <TOCNode> <PackageName></PackageName> <NodeName></NodeName> </TOCNode> <Text> <name></name> <TextData>-</TextData> </Text> <Quiz> <name></name> <Question> <Text> <name></name> <TextData>-</TextData> </Text> <Text> <name></name> <TextData>-</TextData> </Text> <Answer correct="true"> <Text> <name></name> <TextData>-</TextData> </Text> </Answer> <Answer correct="false"> <Text> <name></name> <TextData>-</TextData> </Text> </Answer> </Question> </Quiz></Assets>Sample xml and Schema:<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE Part []><?xml-stylesheet type="text/xsl" href="sample.xsl"?><Part> <H1>Unit 1: Subjects, Predicates, and Sentences</H1> <P>Lesson 1</P> <Sect> <H2>Kinds of Sentences: Declarative and Interrogative</H2> <P>A sentence is a group of words that expresses a complete thought. All sentences begin with a capital letter and end with a punctuation mark. Different kinds of sentences have different purposes.</P> <P>A declarative sentence makes a statement. It ends with a period.</P> <P>Last summer I went on a long trip.</P> <P>An interrogative sentence asks a question. It ends with a question mark.</P> <P>Where did you go on your vacation?</P> <P>Exercise 1 Insert a period if the sentence is declarative. Insert a question mark if it is interrogative.</P> <P>My family and I went to Alaska .</P> <L> <LI> <LI_Label>1.</LI_Label> <LI_Title>Have you ever been that far north ?</LI_Title> </LI> <LI> <LI_Label>2.</LI_Label> <LI_Title>Alaska is a wonderful and wild state .</LI_Title> </LI> <LI> <LI_Label>3.</LI_Label> <LI_Title>Isn’t it the largest state in the union ?</LI_Title> </LI> <LI> <LI_Label>4.</LI_Label> <LI_Title>Was the weather hotter than you expected ?</LI_Title> </LI> <LI> <LI_Label>5.</LI_Label> <LI_Title>Some days were so warm that I wore shorts .</LI_Title> </LI> <LI> <LI_Label>6.</LI_Label> <LI_Title>In some parts of Alaska, the sun never sets in summer .</LI_Title> </LI> <LI> <LI_Label>7.</LI_Label> <LI_Title>Summers in Alaska don’t last very long .</LI_Title> </LI> <LI> <LI_Label>8.</LI_Label> <LI_Title>Are Alaskan winters as cold as they say ?</LI_Title> </LI> <LI> <LI_Label>9.</LI_Label> <LI_Title>The ground under much of Alaska is permanently frozen .</LI_Title> </LI> </L> <L> <LI> <LI_Label>10.</LI_Label> <LI_Title>How can animals live in such a cold climate ?</LI_Title> </LI> <LI> <LI_Label>11.</LI_Label> <LI_Title>All the animals in Alaska are equipped for the cold .</LI_Title> </LI> <LI> <LI_Label>12.</LI_Label> <LI_Title>Did you see any bears in Alaska ?</LI_Title> </LI> <LI> <LI_Label>13.</LI_Label> <LI_Title>We saw a lot of brown bears at Katmai National Monument .</LI_Title> </LI> </L> <P>Name ___________________________________________________ Class _________ Date ____________________</P> <P>Grammar</P> <P>Copyright © by Glencoe/McGraw-Hill</P> <L> <LI> <LI_Label>14.</LI_Label> <LI_Title>Male brown bears can be as tall as ten feet .</LI_Title> </LI> <LI> <LI_Label>15.</LI_Label> <LI_Title>Can an animal that big move very fast ?</LI_Title> </LI> <LI> <LI_Label>16.</LI_Label> <LI_Title>A brown bear can run as fast as twenty-five miles per hour .</LI_Title> </LI> <LI> <LI_Label>17.</LI_Label> <LI_Title>Do you think you’d be afraid of a brown bear ?</LI_Title> </LI> <LI> <LI_Label>18.</LI_Label> <LI_Title>Did you know that the highest mountain in North America is in Alaska ?</LI_Title> </LI> <LI> <LI_Label>19.</LI_Label> <LI_Title>The mountain is called Denali .</LI_Title> </LI> <LI> <LI_Label>20.</LI_Label> <LI_Title>What does Denali mean ?</LI_Title> </LI> <LI> <LI_Label>21.</LI_Label> <LI_Title>Denali is a Native American word that means “the great one” .</LI_Title> </LI> <LI> <LI_Label>22.</LI_Label> <LI_Title>At one time only Native Americans lived in Alaska .</LI_Title> </LI> <LI> <LI_Label>23.</LI_Label> <LI_Title>Who were the first white settlers in Alaska ?</LI_Title> </LI> <LI> <LI_Label>24.</LI_Label> <LI_Title>Russians built a settlement on Kodiak Island in 1784 .</LI_Title> </LI> <LI> <LI_Label>25.</LI_Label> <LI_Title>Why did the Russians want to settle in Alaska ?</LI_Title> </LI> <LI> <LI_Label>26.</LI_Label> <LI_Title>They went there to look for furs .</LI_Title> </LI> <LI> <LI_Label>27.</LI_Label> <LI_Title>Russia sold Alaska to the United States in 1867 .</LI_Title> </LI> <LI> <LI_Label>28.</LI_Label> <LI_Title>How much did the United States pay for Alaska ?</LI_Title> </LI> <LI> <LI_Label>29.</LI_Label> <LI_Title>Alaska cost the United States $7.2 million .</LI_Title> </LI> <LI> <LI_Label>30.</LI_Label> <LI_Title>Does that seem like a lot of money to you ?</LI_Title> </LI> <LI> <LI_Label>31.</LI_Label> <LI_Title>When did Americans begin going to Alaska ?</LI_Title> </LI> <LI> <LI_Label>32.</LI_Label> <LI_Title>Americans began going to Alaska during the 1890s and 1900s .</LI_Title> </LI> <LI> <LI_Label>33.</LI_Label> <LI_Title>They went there to look for gold .</LI_Title> </LI> <LI> <LI_Label>34.</LI_Label> <LI_Title>Large amounts of “black gold” were discovered in Alaska in 1968 .</LI_Title> </LI> <LI> <LI_Label>35.</LI_Label> <LI_Title>What is “black gold” ?</LI_Title> </LI> <LI> <LI_Label>36.</LI_Label> <LI_Title>“Black gold” is another name for oil .</LI_Title> </LI> <LI> <LI_Label>37.</LI_Label> <LI_Title>Alaska also has coal, platinum, copper, and uranium .</LI_Title> </LI> <LI> <LI_Label>38.</LI_Label> <LI_Title>Did you take many pictures during your trip ?</LI_Title> </LI> <LI> <LI_Label>39.</LI_Label> <LI_Title>I took a great shot of an eagle catching a salmon .</LI_Title> </LI> <LI> <LI_Label>40.</LI_Label> <LI_Title>Do you want to see some other pictures I took ?</LI_Title> </LI> </L> <P>48 Grammar and Language Workbook, Grade 6</P> <P>Lesson 2</P> </Sect> <Sect> <H2>Kinds of Sentences: Exclamatory and Imperative</H2> <P>Copyright © by Glencoe/McGraw-Hill</P> <P>In addition to declarative and interrogative sentences, there are two other types of sentences. An exclamatory sentence shows strong feeling. It ends with an exclamation point.</P> <P>I never saw so much traffic!</P> <P>An imperative sentence commands someone to do something. The subject you is understood. An imperative sentence can end with either a period or an exclamation point.</P> <P>(You) Look both ways before crossing the street. (You) Look out!</P> <P>Exercise 1 Write exc. in the blank before each exclamatory sentence and imp. before each imperative sentence.</P> <Table> <TR> <TH>exc.</TH> <TD>That alarm clock is too loud!</TD> </TR> <TR> <TH>imp.</TH> <TD>1. Give the orange juice to Cecilia.</TD> </TR> <TR> <TH>exc.</TH> <TD>2. How sleepy I am!</TD> </TR> <TR> <TH>exc.</TH> <TD>3. What a funny dream I had last night!</TD> </TR> <TR> <TH>exc.</TH> <TD>4. I can hardly wait for the dance!</TD> </TR> <TR> <TH>imp.</TH> <TD>5. Please don’t talk so loudly.</TD> </TR> <TR> <TH>imp.</TH> <TD>6. Tell Kwasi that it’s time to get up.</TD> </TR> <TR> <TH>imp.</TH> <TD>7. Put the timer where you’ll be sure to see it.</TD> </TR> <TR> <TH>exc.</TH> <TD>8. I love peanut butter sandwiches!</TD> </TR> <TR> <TH>exc.</TH> <TD>9. The toast is burning!</TD> </TR> <TR> <TH>imp.</TH> <TD>10. Give this bottle to the baby.</TD> </TR> <TR> <TH>exc.</TH> <TD>11. Becky spilled all her cereal!</TD> </TR> <TR> <TH>imp.</TH> <TD>12. Mop it up with a paper towel.</TD> </TR> <TR> <TH>imp.</TH> <TD>13. Help me set the table.</TD> </TR> <TR> <TH>exc.</TH> <TD>14. I’m in trouble if I’m late for school!</TD> </TR> <TR> <TH>exc.</TH> <TD>15. Jan forgot to do her math homework!</TD> </TR> </Table> <P>Grammar</P> <P>Copyright © by Glencoe/McGraw-Hill</P> <P>Name ___________________________________________________ Class _________ Date ____________________</P> <Table> <TR> <TH>imp.</TH> <TD>16. Please take these books back to the library.</TD> </TR> <TR> <TH>imp.</TH> <TD>17. Pour some more milk for Ricardo.</TD> </TR> <TR> <TH>exc.</TH> <TD>18. How I would love to be a rock star!</TD> </TR> <TR> <TH>imp.</TH> <TD>19. Get that cat off the table!</TD> </TR> <TR> <TH>exc.</TH> <TD>20. The puppy chewed a hole in my sock!</TD> </TR> <TR> <TH>imp.</TH> <TD>21. Pull up the anchor so we can be on our way.</TD> </TR> <TR> <TH>exc.</TH> <TD>22. Gordo is such a cute puppy!</TD> </TR> <TR> <TH>imp.</TH> <TD>23. Take these old magazines to your art teacher.</TD> </TR> <TR> <TH>imp.</TH> <TD>24. Be careful not to drop the plates.</TD> </TR> <TR> <TH>exc.</TH> <TD>25. My new sneakers are covered with mud!</TD> </TR> <TR> <TH>imp.</TH> <TD>26. Comb Tina’s hair and put a ribbon in it.</TD> </TR> <TR> <TH>exc.</TH> <TD>27. I wish Dad would drive us to school!</TD> </TR> <TR> <TH>exc.</TH> <TD>28. I can’t believe you ate all of that!</TD> </TR> <TR> <TH>exc.</TH> <TD>29. Oh, no, the car won’t start!</TD> </TR> <TR> <TH>imp.</TH> <TD>30. Make sure you have enough air in your bike tires.</TD> </TR> <TR> <TH>imp.</TH> <TD>31. Put your dishes in the sink before you leave.</TD> </TR> <TR> <TH>imp.</TH> <TD>32. Don’t forget to call me when you get home.</TD> </TR> <TR> <TH>exc.</TH> <TD>33. I dropped my ring into the sink!</TD> </TR> <TR> <TH>exc.</TH> <TD>34. You spilled juice on the floor!</TD> </TR> <TR> <TH>imp.</TH> <TD>35. Make sure you tie your shoes before jogging.</TD> </TR> <TR> <TH>imp.</TH> <TD>36. Put this apple in your pocket.</TD> </TR> </Table> <P>Writing Link Write a paragraph explaining how to play a game. Use exclamatory and imperative sentences.</P> <P>50 Grammar and Language Workbook, Grade 6</P> <P>Lesson 3</P> </Sect> <Sect> <H2>Subjects and Predicates: Simple and Complete</H2> <P>Copyright © by Glencoe/McGraw-Hill</P> <P>Every sentence has two parts: a subject and a predicate. The subject part of a sentence names whom or what the sentence is about. The predicate part of a sentence tells what the subject does or has. It can also describe what the subject is or is like.</P> <P>SUBJECT PART PREDICATE PART The mountain climbers reached the peak.</P> <P>The complete subject is all of the words in the subject part of a sentence. The complete predicate is all of the words in the predicate part of a sentence.</P> <P>COMPLETE SUBJECT COMPLETE PREDICATE The horse’s black mane was blowing in the wind.</P> <P>The simple subject is the main person or thing in the subject part of a sentence. The simple predicate is the main word or group of words in the predicate part of a sentence.</P> <P>SIMPLE SUBJECT SIMPLE PREDICATEThe horse’s black mane was blowing in the wind.</P> <P>Exercise 1 Draw one line under each complete subject and two lines under each complete predicate.</P> <P>The bottle of milk is in the refrigerator.</P> <L> <LI> <LI_Label>1.</LI_Label> <LI_Title>That little dog is following us to school.</LI_Title> </LI> <LI> <LI_Label>2.</LI_Label> <LI_Title>Brian forgot his flute.</LI_Title> </LI> <LI> <LI_Label>3.</LI_Label> <LI_Title>The yellow canary fell in love with the shiny mirror.</LI_Title> </LI> <LI> <LI_Label>4.</LI_Label> <LI_Title>Those plaid slacks are much too long for me.</LI_Title> </LI> <LI> <LI_Label>5.</LI_Label> <LI_Title>Kisha hated the movie.</LI_Title> </LI> <LI> <LI_Label>6.</LI_Label> <LI_Title>The big, shaggy animals in the pen are yaks.</LI_Title> </LI> <LI> <LI_Label>7.</LI_Label> <LI_Title>The girl’s long red hair shone in the sun.</LI_Title> </LI> <LI> <LI_Label>8.</LI_Label> <LI_Title>The Yellow Hornets won the softball game.</LI_Title> </LI> <LI> <LI_Label>9.</LI_Label> <LI_Title>My cousin Diana hit the ball right over the fence.</LI_Title> </LI> </L> <P>10. A sudden rainstorm ended the game.</P> <P>Name ___________________________________________________ Class _________ Date ____________________</P> <P>Grammar</P> <P>Copyright © by Glencoe/McGraw-Hill</P> <L> <LI> <LI_Label>11.</LI_Label> <LI_Title>He spilled the popcorn on the person in front of him.</LI_Title> </LI> <LI> <LI_Label>12.</LI_Label> <LI_Title>Franco walked home alone.</LI_Title> </LI> <LI> <LI_Label>13.</LI_Label> <LI_Title>The fire engine raced by on the way to a fire.</LI_Title> </LI> <LI> <LI_Label>14.</LI_Label> <LI_Title>Dad’s tie was ruined by the gooey mess.</LI_Title> </LI> <LI> <LI_Label>15.</LI_Label> <LI_Title>The red construction paper is in the cabinet.</LI_Title> </LI> <LI> <LI_Label>16.</LI_Label> <LI_Title>Captain Kidd was a fearsome pirate.</LI_Title> </LI> <LI> <LI_Label>17.</LI_Label> <LI_Title>The band played for two hours.</LI_Title> </LI> <LI> <LI_Label>18.</LI_Label> <LI_Title>The small boat sank in the big waves.</LI_Title> </LI> <LI> <LI_Label>19.</LI_Label> <LI_Title>The brave soldier was rescued.</LI_Title> </LI> <LI> <LI_Label>20.</LI_Label> <LI_Title>Alison’s stepmother teaches English at the high school.</LI_Title> </LI> </L> <P>Exercise 2 Draw one line under each simple subject and two lines under each simple predicate.</P> <P>I am twelve years old today.</P> <L> <LI> <LI_Label>1.</LI_Label> <LI_Title>Marco was born in Venice, Italy.</LI_Title> </LI> <LI> <LI_Label>2.</LI_Label> <LI_Title>Chanel’s father traded his used car for a new one.</LI_Title> </LI> <LI> <LI_Label>3.</LI_Label> <LI_Title>He traveled all the way to China by himself.</LI_Title> </LI> <LI> <LI_Label>4.</LI_Label> <LI_Title>Those two were the first to cross the finish line.</LI_Title> </LI> <LI> <LI_Label>5.</LI_Label> <LI_Title>In March, I returned all of my library books.</LI_Title> </LI> <LI> <LI_Label>6.</LI_Label> <LI_Title>At least one hundred people waited in line.</LI_Title> </LI> <LI> <LI_Label>7.</LI_Label> <LI_Title>He told his little sister a bedtime story.</LI_Title> </LI> <LI> <LI_Label>8.</LI_Label> <LI_Title>Scott’s cousin lost his favorite jacket.</LI_Title> </LI> <LI> <LI_Label>9.</LI_Label> <LI_Title>The diagram showed three secret passageways.</LI_Title> </LI> </L> <L> <LI> <LI_Label>10.</LI_Label> <LI_Title>Chen’s nickname was “Louisville Slugger.”</LI_Title> </LI> <LI> <LI_Label>11.</LI_Label> <LI_Title>Marina never told people her secret.</LI_Title> </LI> <LI> <LI_Label>12.</LI_Label> <LI_Title>The musician strummed the guitar quietly.</LI_Title> </LI> <LI> <LI_Label>13.</LI_Label> <LI_Title>Christopher read every book by his favorite author.</LI_Title> </LI> <LI> <LI_Label>14.</LI_Label> <LI_Title>The red skirt cost more than the blue skirt.</LI_Title> </LI> <LI> <LI_Label>15.</LI_Label> <LI_Title>The Buckeroos made Gary an honorary member of the team.</LI_Title> </LI> </L> <P>52 Grammar and Language Workbook, Grade 6</P> <P>Lesson 4</P> </Sect> <Sect> <H2>Subjects and Predicates: Compound</H2> <P>Copyright © by Glencoe/McGraw-Hill</P> <P>Some sentences have more than one simple subject or simple predicate. A compound subject is two or more simple subjects that have the same predicate. The simple subjects are joined by and, or, or but.</P> <P>Mummies and art objects are found in Egyptian tombs.</P> <P>A compound predicate is two or more simple predicates that have the same subject. The simple predicates are connected by and, or, or but.</P> <P>The archaeologists excavated the tomb and discovered the treasure.</P> <P>Some sentences have both a compound subject and a compound predicate.</P> <P>The pharaoh and his wife loved the people and did many good works.</P> <P>Exercise 1 Draw one line under the compound subject and two lines under the simple predicate that they share.</P> <P>Volcanoes and earthquakes cause great destruction.</P> <L> <LI> <LI_Label>1.</LI_Label> <LI_Title>Rome and Florence are two cities in Italy.</LI_Title> </LI> <LI> <LI_Label>2.</LI_Label> <LI_Title>Both Sara and Caroline were chosen for the team.</LI_Title> </LI> <LI> <LI_Label>3.</LI_Label> <LI_Title>Cinders and ashes rose from the fire.</LI_Title> </LI> <LI> <LI_Label>4.</LI_Label> <LI_Title>People and animals mingle at the zoo.</LI_Title> </LI> <LI> <LI_Label>5.</LI_Label> <LI_Title>Historians, archaeologists, and tourists love to explore ancient ruins.</LI_Title> </LI> <LI> <LI_Label>6.</LI_Label> <LI_Title>Paintings and other objects were on display at the museum.</LI_Title> </LI> <LI> <LI_Label>7.</LI_Label> <LI_Title>Smoke and car exhaust pollute the air.</LI_Title> </LI> <LI> <LI_Label>8.</LI_Label> <LI_Title>Hot dogs and hamburgers sizzled on the grill.</LI_Title> </LI> <LI> <LI_Label>9.</LI_Label> <LI_Title>In Egypt mummies and pyramids are favorite subjects of study.</LI_Title> </LI> </L> <L> <LI> <LI_Label>10.</LI_Label> <LI_Title>My uncle and brother visited me in the hospital.</LI_Title> </LI> <LI> <LI_Label>11.</LI_Label> <LI_Title>In the summer Shama and I swim every day.</LI_Title> </LI> <LI> <LI_Label>12.</LI_Label> <LI_Title>Gold and silver cost more than copper.</LI_Title> </LI> <LI> <LI_Label>13.</LI_Label> <LI_Title>Food and dishes filled the table.</LI_Title> </LI> <LI> <LI_Label>14.</LI_Label> <LI_Title>The doctor and her nurse waited for the next patient.</LI_Title> </LI> </L> </Sect></Part><?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <xs:element name="Part"> <xs:complexType> <xs:sequence> <xs:element ref="H1"/> <xs:element ref="P"/> <xs:element maxOccurs="unbounded" ref="Sect"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="H1" type="xs:string"/> <xs:element name="Sect"> <xs:complexType> <xs:sequence> <xs:element ref="H2"/> <xs:choice maxOccurs="unbounded"> <xs:element ref="P"/> <xs:element ref="L"/> <xs:element ref="Table"/> </xs:choice> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="H2" type="xs:string"/> <xs:element name="L"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" ref="LI"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="LI"> <xs:complexType> <xs:sequence> <xs:element ref="LI_Label"/> <xs:element ref="LI_Title"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="LI_Label" type="xs:decimal"/> <xs:element name="LI_Title" type="xs:string"/> <xs:element name="Table"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" ref="TR"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="TR"> <xs:complexType> <xs:sequence> <xs:element ref="TH"/> <xs:element ref="TD"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="TH" type="xs:NCName"/> <xs:element name="TD" type="xs:string"/> <xs:element name="P" type="xs:string"/></xs:schema>-----------------------------------------------------------------------------------------------------------Thank You!kamal
-
Hi,I'm new to schema writing. I have xml doc. like this-----------------------------------------------------------------XML Doc: <?xml version="1.0" encoding="UTF-8"?><Assets><TOCNode><PackageName></PackageName> <NodeName></NodeName></TOCNode><Text><name></name><TextData>- <![CDATA[]]></TextData></Text><Quiz><name></name><Question><Text><name></name><TextData>- <![CDATA[]]></TextData></Text><Text><name></name><TextData>- <![CDATA[]]></TextData></Text><Answer correct="true"><Text><name></name><TextData>- <![CDATA[]]></TextData></Text></Answer><Answer correct="false"><Text><name></name><TextData>- <![CDATA[]]></TextData></Text></Answer></Question></Quiz></Assets>---------------------------------------------------------------xml schema<?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="Assets" type="xs:string"> <xs:element name="Text" type="xs:string"> <xs:complexType> <xs:sequence> <xs:element name="name" type="xs:string"/> <xs:element name="TextData" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> <xs:complexType> <xs:sequence> <xs:element name="TOCNode" type="xs:string"> <xs:complexType> <xs:sequence> <xs:element name="PackageName" type="xs:string"/> <xs:element name="NodeName" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Quiz" type="xs:string"> <xs:complexType> <xs:sequence> <xs:element name="Name" type="xs:string"/> <xs:element name="Question" type="xs:string"> <xs:complexType> <xs:sequence><xs:element name="Text" type="xs:string"> <xs:complexType> <xs:sequence> <xs:element name="name" type="xs:string"/> <xs:element name="TextData" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Answer" type="xs:string"> <xs:complexType> <xs:sequence> <xs:element name="Text" type="xs:string"> <xs:complexType> <xs:sequence> <xs:element name="name" type="xs:string"/> <xs:element name="TextData" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> <xs:attribute name="correct" type="xs:string" use="required"/> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>-------------------------------------------Please help me for the right schema...Thanks in advancekamal
-
Hi,Can u provide sample file on this.Regards,kamal
-
Dear boen,I have a xml file which contains unwanted metadata taggings.Shall i edit those taggings by using xsl.Can you please brief the difference between xsl and xslt.Can you provide sample file for xslt conversion.I'm waiting for your fruitful reply!Thanks in advance!Regards,Kamal
-
Hello,I have come across xmp related issue.who has knowledge in those come forward to help me.Actually, i tried to convert the Pdf content into xml data.But the metadata (taggings) are predefined.I want to load my schema while converting the pdf into xml.Finally i got a solution from acrobat 7.0 professional that "we can change the metadata by inserting updated xmp file". I dont have prior knowledge in handling such file type.Please suggest me for the best! Regards,Kamal
-
No, by using xslt, i tried convert to one xml document format to another format.Just like, in Pre-press activity they composing(allign) the text by means of pagination softwares.I want the same by means of xslt.can you get me now.cheers,kamal.
-
Hi boen,I come across this, but i cant get clear, can i find any example files regarding this transformation of one xml data to another xml document.I am in KG on this aspects. help me.
-
ok thanks yaar! i ll keep up in the future.can you give info on ajax.