HTML - Xml And Xslt Help!
Hi, I feel totally sheepish asking this but I have been working on an Online Explorations takehome test for the past couple hours and have come up with pretty much nothing. It all comes up as a foreign language to me. I've been pretty behind all semester and my teacher offers little to no help at all. I'm pretty much tearing my hair out because it's 1:30am and the test is due tomorrow.
I'm not asking anyone to help me do the whole thing but I really just have no idea what I'm doing. Especially with the last couple pages. I've scanned the test here (I included every page even though help is not needed on all of them.): http://img.photobucket.com/albums/v2...ff/pageone.jpg - Help not needed on this page. http://img.photobucket.com/albums/v2...ff/pagetwo.jpg - Help not needed on this page. http://img.photobucket.com/albums/v2.../pagethree.jpg - Help not needed on this page. http://img.photobucket.com/albums/v2...f/pagefour.jpg http://img.photobucket.com/albums/v2...f/pagefive.jpg Any help you can give would save me! Thanks a lot!! (I've also typed up the last page already so if you need that, I can paste it to you.) Similar TutorialsI didn't see an XML/XSL forum so I'm posting this here, maybe someone can help me. I'm trying something new, and it's giving me a headache. But hey it's all part of the process. Here's my site: HTML Code: <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="/layout/frontpage.xsl"?> <page lang="en_ca"> <frontpage/> </page> HTML Code: <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/> <xsl:variable name="lang" select="/page/@lang"/> <xsl:variable name="strs" select="document(concat('/strings/',$lang,'/strings.xml'))"/> <xsl:template match="page"> <html> <head> <title><xsl:value-of select="$strs/strs/str[@id='title']"/></title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="/css/css-default.css" /> </head> <body> <h1>Test</h1> </body> </html> </xsl:template> </xsl:stylesheet> Seems to work fine, but when I try to validate I get the following warning: No DOCTYPE found! Checking XML syntax only. It's clearly there. That's how other sites have done it and they validate... so what am I doing wrong? how do i run the function ddtreemenu:createTree("treemenu", true) in my XSLT file? |