Jump to content
xisto Community

hazeshow

Members
  • Content Count

    214
  • Joined

  • Last visited

Everything posted by hazeshow

  1. Yes, that's it exactly! You create an XSL-document for displaying your XML-file in HTML. Your XSL-file IS the stylesheet, you could only use CSS INSTEAD of CSS. Here's an example: You need three files: simple.php, simple.xml and simple.xsl. And you need a Server with XSLT-support. (By the way ... they must have rebooted the machines here at Xisto, at the moment my account does not support XSLT) Ok, here comes the Belgian Waffels example: simple.php <?php $xh = xslt_create(); if ($result = xslt_process($xh, 'simple.xml', 'simple.xsl')) { echo $result; xslt_free($xh); } else { echo "<p>"; echo xslt_error($xh); echo xslt_errno($xh); echo "</p>"; xslt_free($xh); } ?> simple.xml <?xml version='1.0'?> <breakfast-menu> <food> <name>Belgian Waffles</name> <price>$5.95</price> <description>Two of our famous Belgian Waffles with plenty of real maple syrup.</description> <calories>650</calories> </food> <food> <name>Strawberry Belgian Waffles</name> <price>$7.95</price> <description>Light Belgian waffles covered with strawberries and whipped cream.</description> <calories>900</calories> </food> <food> <name>Berry-Berry Belgian Waffles</name> <price>$8.95</price> <description>Light Belgian waffles covered with an assortment of fresh berries and whipped cream.</description> <calories>900</calories> </food> <food> <name>French Toast</name> <price>$4.50</price> <description>Thick slices made from our homemade sourdough bread.</description> <calories>600</calories> </food> <food> <name>Homestyle Breakfast</name> <price>$6.95</price> <description>Two eggs, bacon or sausage, toast, and our ever-popular hash browns.</description> <calories>950</calories> simple.xsl <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://forums.xisto.com/no_longer_exists/; <xsl:template match="/"> <HTML> <BODY STYLE="font-family:Arial, helvetica, sans-serif; font-size:12pt; background-color:#EEEEEE"> <xsl:for-each select="breakfast-menu/food"> <DIV STYLE="background-color:teal; color:white; padding:4px"> <SPAN STYLE="font-weight:bold; color:white"><xsl:value-of select="name"/></SPAN> - <xsl:value-of select="price"/> </DIV> <DIV STYLE="margin-left:20px; margin-bottom:1em; font-size:10pt"> <xsl:value-of select="description"/> <SPAN STYLE="font-style:italic"> (<xsl:value-of select="calories"/> calories per serving) </SPAN> </DIV> </xsl:for-each> </BODY> </HTML> </xsl:template> </xsl:stylesheet> Try it out and play with it! Good luck!
  2. When I type http://forums.xisto.com/no_longer_exists/ I get a "There is no website configured at this address" by cpanel.
  3. Yeah ... I guess it's the box from the rare Platinum Enterprise Edition. Hehe, cool site! Great download section!!! For you hardcore HTML'ers, here's the Notepad version from Windows 2.0: Notepad 2.03 32-bit XP-compatible, 18,8 KB!
  4. I prefer this one: You can get it here: C:\WINDOWS\SYSTEM32\notepad.exe GreetingZ
  5. Hi, here's an RDF-feed from distrowatch: http://forums.xisto.com/no_longer_exists/ . This is what the raw data looks like. No matter if the file is called 'feed.rdf' or 'feed.xml', all these feeds are xml-files. RDF is ONE kind of XML. See HERE. You need a reader-software or a website using stylesheets to get an HTML-output out of the newsfeed. That means you can install a news-reader-program to read the feeds OR you can write your own stylesheet and "throw" it against the newsfeed-file. GreetingZ
  6. Yes sure, XML-parser-scripts already exist, but I always found it too hard to implement them in my code. Might be easy for programming natures - but not for me. The Xisto-server DOES support XSLT, see here:http://forums.xisto.com/ But it seems that for the user's website accounts the XSLT support first has to be implemented. I asked for it in the forum and one hour later I had my Sablotron. As I said, I use the xslt_create()-function, it goes like this: <?php $xh = xslt_create(); if ($result = xslt_process($xh, 'cool.xml', 'hot.xsl')) { echo $result; xslt_free($xh); } else { echo "<p>"; echo xslt_error($xh); echo xslt_errno($xh); echo "</p>"; xslt_free($xh); } ?> I'm telling you one thing .... this is sooo cool! GreetingZ
  7. Hi, perhaps this will help you: http://www.xml.com/pub/a/98/10/guide0.html If you make a website using XML and XSLT you have to decide where and how the transformation into HTML is done, on the server or in the user's browser. MS Internet Explorer has an own XML-parser and an own way to treat XML/XSLT. Let's say you have am XML-file 'cool.xml' and you want to throw it against the stylesheet 'hot.xsl'. Internet Explorer will show the HTML-result with the following simple code included in an HTML-file: <XML id="source" src="cool.xml"></XML> <XML id="style" src="hot.xsl"></XML> <script FOR="window" EVENT="onload"> xslTarget.innerHTML = source.transformNode(style.XMLDocument); </SCRIPT> <DIV id="xslTarget"></DIV> In this case the transformation takes place in the user's browser and only works with Internet Explorer version 5.5 or higher. I once found this on Microsoft's website, and I think it's pretty cool but as far as I know it does not work with other browsers than IE. If you want to let the transformation take place on the server, you need a server-sided script language like PHP. You can (if you can - I can't) write your own XML-parser in PHP or use the xslt_create()-function. For this XSLT-support has to be enabled (Sablotron). Good luck and fun with your exam! GreetingZ
  8. On their website they say: Does Pardus support only Turkish Language? Can i use in English? Pardus's language is Turkish by default. But if you want to use in English, you can use it by changing the setting in "Country/Region and Language" setting under "Regional and Accessibility" menu which is in Pardus Configuration Center.
  9. ... oh and I forgot ... you can get Oracle Magazine for free!
  10. Yes, Oracle offers database software for enterprise use. Oracle and IBM are the "big players" in this market, Oracle Database 10g vs. IBM's DB2. Their software sure is not comparable to MS Access or stuff like that. It's designed for large networks, SAN's and Clusters. If you register at OTN (Oracle Technology Network) you can download most of their software for free, you then get a developer license. Of course they do also have database software for standalone computers. Anyway, I don't know much about Oracle, but one thing I know is this: Such courses usually are funky expensive! So I think you can be lucky to learn this stuff in college. Have fun! GreetingZ
  11. http://php.net/docs.php (many languages available)
  12. Alright alright, only one key is pressed, you're totally right. But they're useful to know. And ALT-Down Arrow-Enter-Enter = New Folder is pretty cool isn't it? GreetingZ
  13. Hi, buying Windows Server 2003 is not necessary for running a home server. You can also use MS Internet Information Server (contained in Windows XP Pro) or Apache Web Server or any other free webserver program. I guess Windows Server 2003 is pretty expensive, isn't it? All you need is a computer with an internet connection with a server program running on it and an own IP-adress, or a DDNS (Dynamic Domain Name Service) like for example http://www.noip.com/ GreetingZ
  14. Great post, Hercco! One problem I see is this: The more you give your visitors control of the content of your site, the more you loose control. If it's a big website you have to spend lots of time with censorship or at least with reading. You can block specific words and ban users but the site will give you a lot of WORK. Every website owner is responsible for the content on his site. So if somebody knows a cool way to get rid of this responsibility, please let us know! :)Acidburn, good idea! So where is your signature?
  15. After Outlook (or Outlook Express) has downloaded the mails, they are erased on the server. But you can change that in the Outlook account options.
  16. Great fight! Great fans!Didi Hamann Rulez
  17. I thought you had to extra activate pop3 for your account. You get advertisment mails if you do so.
  18. I think that's the point. MS Publisher is not a website editor. It CAN be used to create HTML-files, but the source code is much too heavy. Same thing with MS Word. Publisher sure is easy to use and you get good looking results, but programs like Frontpage or Dreamweaver woul do a better job. Publisher is for printed publications I guess, isn't it? (I'm not so sure) GreetingZ
  19. That's right, of course programming games and HTML have got nothing to do with each other. But I think it's a good starting point for somebody who has absolutely NO programming experience. Next he can get to know Javascript and so on and so on ... For me it's till hard to understand what a class is, what a function is, what a variable is ... and all this. I think it makes no sense to use graphical programming tools without understanding what's going on in the source code. Well, I talking about programming a little calculator in Visual Basic for example. That's a different pair of shoes than programming a game, and I have absolutely nooo idea about things like that. GreetingZ
  20. Yes, it's like qwijibow says. Ther sure will be a way again to use Windows a little bit cheaper. I can't imagine that Microsoft will release an uncrackable Windows.
  21. I totally agree. Advertisments and banner exchange and so on might create some traffic. But the more important question is: how can I make my first time visitor come back? Which content is interesting? Is the navigation clear and user-friendly? Do all browsers show the site correctly?I think a good website has got to have something that no other website has. Something uncomparable, which the visitor has never ever seen before and what makes him remember the site. If I only had an idea WHAT ... I won't tell you but keep it to myself :)GreetingZ
  22. Yes that's right! You can get the MS Visual Studio 2005 BETA version here: //dead// And there's several copies of the 2001/2002 Visual Studio.NET BETA floating around for almost nothing at ebay. (6 CD's) GreetingZ
  23. Hi,I really like to watch these videos, but I hate it that they're only in streaming format. I tried to save them on harddisk, but it's pretty hard to find out the real URL's of the original files. I was successful once using a programm called URL Snooper, but meanwhile I forgot how it worked. Perhaps somebody could post a tutorial here?GreetingZ
  24. It's not necessary to use PHP (to have a PHP server), you could also use Javascript to find out the visitor's browser and to do certain actions: <script LANGUAGE="JavaScript"> <!-- if(navigator.appName == "Netscape") {alert("You are using Netscape Browser! Please go and install Microsoft Internet Explorer. This site looks better if you do so! :-)")} //--> Absolutely right! Keep one thing in mind: it's YOUR site! GreetingZ
  25. I have no idea which tool might be the best one for a programming beginner, I just want to let you know, that Microsoft offers a Visual Studio 2005 Beta Version HERE By the way, HTML seems to be the easiest language, it sure is the best way to start and learn what a programming language is. GreetingZ
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.