Help with assignment question please!
-
If you create a html page, you need to give it a .html extension, instead of .txt. Then, double click on the file, IE will open it. Basically, creating a web page using XML just means you use XHTML, which in turn essentially means that the HTML needs to be XML. This is HTML, but not XML one line
another line That is because the
tag is never closed. To solve this, do this instead: one line
another line this is another example: this text has some bold and some italics strong and em are the recommended tags, they replace b and i, from memory ( years since I used them ). This is not valid XML as the tags do not line up. To replace this, you'd need to work out a solution where the tags do not next. The following would not look the same, but illustrates the idea: this text has some bold and some italics So - all you need to do is create an HTML page that is entirely XML compiliant. An easy way to make sure is to download XML Spy Home Edition, it is a half decent XML editor. It will also help you with writing XSLTs, which are transformations on XML to produce a new document which may or may not be XML. So, if you've not done XML for years, why are you doing an assignment on XML ? Christian Graus - Microsoft MVP - C++Thanks for your help. I will have a go at it now and let you know how i'm doing. I'm taking a course called Computer Studies and there's 6 modules in the course. The course contains a mixture of everything, 1 module is database development, another is web design and so on. The module i'm doing at the moment is advanced internet development and this assignment happens to be on XML. My lecturer is useless and all he's said is to search for tutorials to help. I have managed to get the XML text displayed in the browser so that's a start, at least i'm making progress! Now I can do that, i'll concentrate on writing some code to help me create a default opening page. I suppose i'll have to look through more tutorials to help me with that! Thanks for your help so far :)
-
Thanks for your help. I will have a go at it now and let you know how i'm doing. I'm taking a course called Computer Studies and there's 6 modules in the course. The course contains a mixture of everything, 1 module is database development, another is web design and so on. The module i'm doing at the moment is advanced internet development and this assignment happens to be on XML. My lecturer is useless and all he's said is to search for tutorials to help. I have managed to get the XML text displayed in the browser so that's a start, at least i'm making progress! Now I can do that, i'll concentrate on writing some code to help me create a default opening page. I suppose i'll have to look through more tutorials to help me with that! Thanks for your help so far :)
No worries - sounds like you're on the right track. Ask again if you need help. Christian Graus - Microsoft MVP - C++
-
No worries - sounds like you're on the right track. Ask again if you need help. Christian Graus - Microsoft MVP - C++
-
Christian, I have found a good example of a CD catalog I may use to help me. The code is as follows: - - - Empire Burlesque Bob Dylan USA Columbia 10.90 1985 - Hide your heart Bonnie Tyler UK CBS Records 9.90 1988 - Greatest Hits Dolly Parton USA RCA 9.90 1982 - Still got the blues Gary Moore UK Virgin records 10.20 1990 - Eros Eros Ramazzotti EU BMG 9.90 1997 - One night only Bee Gees UK Polydor 10.90 1998 - Sylvias Mother Dr.Hook UK CBS 8.10 1973 - Maggie May Rod Stewart UK Pickwick 8.50 1990 - Romanza Andrea Bocelli EU Polydor 10.80 1996 - When a man loves a woman Percy Sledge USA Atlantic 8.70 1987 - Black angel Savage Rose EU Mega 10.90 1995 - 1999 Grammy Nominees Many USA Grammy 10.20 1999 - For the good times Kenny Rogers UK Mucik Master 8.70 1995 - Big Willie style Will Smith
-
Christian, I have found a good example of a CD catalog I may use to help me. The code is as follows: - - - Empire Burlesque Bob Dylan USA Columbia 10.90 1985 - Hide your heart Bonnie Tyler UK CBS Records 9.90 1988 - Greatest Hits Dolly Parton USA RCA 9.90 1982 - Still got the blues Gary Moore UK Virgin records 10.20 1990 - Eros Eros Ramazzotti EU BMG 9.90 1997 - One night only Bee Gees UK Polydor 10.90 1998 - Sylvias Mother Dr.Hook UK CBS 8.10 1973 - Maggie May Rod Stewart UK Pickwick 8.50 1990 - Romanza Andrea Bocelli EU Polydor 10.80 1996 - When a man loves a woman Percy Sledge USA Atlantic 8.70 1987 - Black angel Savage Rose EU Mega 10.90 1995 - 1999 Grammy Nominees Many USA Grammy 10.20 1999 - For the good times Kenny Rogers UK Mucik Master 8.70 1995 - Big Willie style Will Smith
Strange, the titles have gone missing. here it is again properly: - Empire Burlesque Bob Dylan USA Columbia 10.90 1985 Hide your heart Bonnie Tyler UK CBS Records 9.90 1988 Greatest Hits Dolly Parton USA RCA 9.90 1982 Still got the blues Gary Moore UK Virgin records 10.20 1990 Eros Eros Ramazzotti EU BMG 9.90 1997 One night only Bee Gees UK Polydor 10.90 1998 Sylvias Mother Dr.Hook UK CBS 8.10 1973 Maggie May Rod Stewart UK Pickwick 8.50 1990 Romanza Andrea Bocelli EU Polydor 10.80 1996 When a man loves a woman Percy Sledge USA Atlantic 8.70 1987 Black angel Savage Rose EU Mega 10.90 1995 1999 Grammy Nominees Many USA Grammy 10.20 1999 For the good times Kenny Rogers UK Mucik Master 8.70 1995 Big Willie style Will Smith USA Columbia
-
Strange, the titles have gone missing. here it is again properly: - Empire Burlesque Bob Dylan USA Columbia 10.90 1985 Hide your heart Bonnie Tyler UK CBS Records 9.90 1988 Greatest Hits Dolly Parton USA RCA 9.90 1982 Still got the blues Gary Moore UK Virgin records 10.20 1990 Eros Eros Ramazzotti EU BMG 9.90 1997 One night only Bee Gees UK Polydor 10.90 1998 Sylvias Mother Dr.Hook UK CBS 8.10 1973 Maggie May Rod Stewart UK Pickwick 8.50 1990 Romanza Andrea Bocelli EU Polydor 10.80 1996 When a man loves a woman Percy Sledge USA Atlantic 8.70 1987 Black angel Savage Rose EU Mega 10.90 1995 1999 Grammy Nominees Many USA Grammy 10.20 1999 For the good times Kenny Rogers UK Mucik Master 8.70 1995 Big Willie style Will Smith USA Columbia
For some reason the titles etc aren't copying. If you could just type http://www.w3schools.com/xml/cd\_catalog.xml into your browser you will see what code I am on about. I copy it into notepad, save it as a .html file, but when I try opening it up in IE, the XML files aren't rendered, there's no red + and - symbols like there should be?
-
I am a student and have been given the following question using XML. I have never used XML before. I have looked through tutorials and they confuse me! I would really appreciate it if any XML experts out there could help me, just to get me on the right track and so I understand what i'm doing. My assignment question is: You are required to demonstrate your understanding of the XML technologies studied through the production (publishing) of two sets of static html pages using XSL techniques and multiple XML data source(s). Each set of static html pages must: • provide a default opening page linking to other pages as relevant. • provide a sample of online trading pages. • comprise a minimum of four categories/sections, each comprising a minimum of four sub-categories/sub-sections. • be produced using a suitable XSLT 2.0 compatible engine/utility/IDE. • be based upon a common xml file denoting the category/sub-category structure called structure.xml. • be based upon a common xml file denoting the product details called products.xml. • be produced using an appropriate unique xml style sheet. You may/should create categories and sub-categories for products of your own choosing. This will form the basis of the navigation through your published pages. Your selection should reflect a single overall theme. Sample product content is therefore left to the student as part of the exercise. The production of both structure.xml and products.xml may involve the use of products such as MS Wordpad and MS Notepad. It is therefore necessary to provide suitable XML Schema files to ensure that the xml files used in the publishing are both well-formed and valid: • Schema file for structure.xml provided in structure.xsd • Schema file for products.xml provided in products.xsd The implemented XSL stylesheet(s) will make use of multiple output files and multiple XML input sources. PLEASE HELP ME! Ross
I have studied my own way to an advanced degree in computer science and taught a number of programming courses along the way. I would love to help... Go to class on the days that it is taught, engage your professor during office hours and ask for assitance from him. Study the lecture material and ask for clarifications in class. Do your homework when it is assigned to the best of your ability. Don't take classes you have no business taking and hope you can beg your way to a good grade on the Internet. CodeProject is not a site to come to to get professionals to do your school work for you. There is a part of the assignment that you may want to reread: "YOU are required to demonstrate YOUR understanding." I'd do this for you, but I already passed all my classes. -- modified at 20:59 Thursday 12th January, 2006
-
I have studied my own way to an advanced degree in computer science and taught a number of programming courses along the way. I would love to help... Go to class on the days that it is taught, engage your professor during office hours and ask for assitance from him. Study the lecture material and ask for clarifications in class. Do your homework when it is assigned to the best of your ability. Don't take classes you have no business taking and hope you can beg your way to a good grade on the Internet. CodeProject is not a site to come to to get professionals to do your school work for you. There is a part of the assignment that you may want to reread: "YOU are required to demonstrate YOUR understanding." I'd do this for you, but I already passed all my classes. -- modified at 20:59 Thursday 12th January, 2006
What's the point of this messageboard existing if you can't ask for help? Don't you have a go at me, I attend all the lectures and have read all the notes, looked at websites and have even taken a book from the library but i'm still struggling. Luckily a helpful guy above has assisted me and now i'm alright. If you're not posting to help me out, don't bother posting to me at all!
-
For some reason the titles etc aren't copying. If you could just type http://www.w3schools.com/xml/cd\_catalog.xml into your browser you will see what code I am on about. I copy it into notepad, save it as a .html file, but when I try opening it up in IE, the XML files aren't rendered, there's no red + and - symbols like there should be?
Hi R0ssini, Read the following article to get a good hand on your xml basics. This handbook is meant for novice xml programmers. I am sure this will help you clear the basics to some extent. If you have any further queries, do email us. We shall get back to you with solution. regards, Itech Itech Consulting www.itechconsulting.co.in
-
Hi R0ssini, Read the following article to get a good hand on your xml basics. This handbook is meant for novice xml programmers. I am sure this will help you clear the basics to some extent. If you have any further queries, do email us. We shall get back to you with solution. regards, Itech Itech Consulting www.itechconsulting.co.in
Hi R0ssini, Forgot to post you the link in our earlier mail. Its - www.codeproject.com/useritems/XML_Basics.asp regards, Itech Consulting Itech Consulting www.itechconsulting.co.in