Jump to content

boen_robot

Members
  • Posts

    8,493
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by boen_robot

  1. Well, I don't know of any "limitations" in the true scence of the word, but Windows 98 is even a lot more insecure as it's little brother Windows XP and the soon to be born baby called Vista. There are all kinds of worms and other threads that would (if they haven't already) practically destroyed the whole OS. I would strongly advise NOT to use Windows 98 for any kind of web work, and using it as web server only adds oil into the fire.
  2. Outputs in XSLT are generated on-the-fly when you preview the XML file. They are not creating another file, but are "styling" the XML to look like another XML. That's infact the reason they are called stylesheets despite their great content control capabilities. The only way you might be able to get the output in a new file would be to execute the transformation with a server side scripting language and use this same language to tell the output to be saved as the new file and show the user something else (redirect to the new file perhaps?).
  3. It's called "server side" scripting. It refers to all languages which are performed on the server. Such examples are PHP, ASP(.NET), Cold Fusion, JSP, Perl, etc.They can do everything you can't otherwise do with plain markup languages. That's the best way to describe them I think.W3Schools has PHP tutorial, ASP and ASP.NET tutorials. Other tutorials are avaiable on a variety of other places on the internet. If you ask me, ASP(.NET) is better for dealing with XMLs, because it has better and build in support for them. PHP has build in support for XML, but not XSLT. It requres extension which so far I don't know how to run.The important thing with server side scripting and XSLT is that normally, when you preview the XML file, the whole file is downloaded along with the XSLT. Then, the browser performs the transformation and shows you the output. When you look at the source you'll see the XML source.When you use server side scripting, the server side page is requested, it gets the XML and XSLT from the server instantly (scince the server side scripting file and the XML and XSLT are on the same machine), process them and gives the end result to the browser. The browser only processes the final output for display, so when you look at the source, you see the output. When the XML file is huge, this means the browser will only parse the fragment shown on screen, not the whole XML file, which in terms increases browser performance a lot. It may slow down the server if the requests for the files are very frequent, but such cases are not that often.
  4. XSLT could rearrange one XML to another XML, so yes. If all this database is contained from within one or more XML files, it could be rearranged.Various problems however may arise due to one major drawback of XML: It has to be fully loaded in the parser, before it's parsed, so if the database is huge, it might take some time before you see the results.I would recommend that you use a server side scripting language to execute the transformation, but that's a thing to worry about later.
  5. Theese are the "outside" corners I was talking about.Follow theese steps: Select image 16 and add it somewhere on the map. Select image 17 and add it below image 16. Select image 18 and add it on the right of image 16. Select image 19 and add it on the right of image 17/below image 18. You should see that the road is around the curb stone.Repeat the same steps with images 17, 18, 19, 20 on 4th row instead. You should see that the water is inside the beach area. Now imagine that the water is infact the road and the beach is the curb stone instead.The outside borders for beaches are the last 4 images on the last row. Imagine again thesame situation- the water is the road and the beach is the curb stone. Wow, we've got images 16-19/2nd row as the road equivalent of the last 4 of the 5th row, but where in earth are the equivalents for 17-20/4th row (sarcasm)?In short: the texture I have in mind is the 16-19/2nd row, but with the road in the place of the curb stone and the curb stone in the place of the road.
  6. boen_robot

    Google.com

    Yeah! Me and Google.com just got a little bit closer .
  7. What I mean with the corners is the same thing as with the water-to-beach corners (last 4 items on 4th row). To imagine the thing, just replace the water with a road, and a beach with a steet, grass or something. I call them inside, because the road is "enclosed" in them, unlike the outside ones, in which if you place them one next to another, it seems as if the road is around them.You already have lots of tails for roads. I'm pretty confused. That's why I've placed only "plain" roads. Maybe if you group them by class or something. I don't know.The only things you may add for supporting one line roads would be something like the one here: name = [ [77,78,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5], [83,84,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5], [5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5], [20,19,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5], [20,19,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5], [5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5], [21,21,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5], [22,22,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5], [5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5], [1,1,5,1,37,5,39,37,5,39,1,5,5,5,5,5,5,5,5,5,5,5,5,5,5], [38,36,5,1,36,5,1,1,5,38,1,5,5,5,5,5,5,5,5,5,5,5,5,5,5], [5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5], [5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5], [5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5], [5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5], [5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5], [5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5], [5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5], [5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5], [5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5], [5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5], [5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5], [5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5], [5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5], [5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5] ]; But include them in a single tile (and of course transform the beach into a road too). Or should we/I just draw bigger maps?
  8. Honestly said, at first it all seemed to me as if you won't get very much into this, but now when I've seen the map editor, it looks more and more promising.Here is a sample map I've generated: name = [ [86,86,86,86,86,86,86,86,86,91,81,81,81,92,86,86,86,86,86,86,86,86,86,86,86], [86,86,86,86,86,86,86,86,91,80,75,76,76,79,92,86,86,86,86,86,86,86,86,86,86], [86,91,81,81,81,81,81,81,80,63,64,73,74,76,79,81,81,81,81,81,81,81,81,92,86], [86,80,85,85,85,85,85,63,62,71,68,70,70,64,75,63,62,62,62,62,62,62,75,83,86], [21,21,21,21,21,21,37,61,75,66,67,62,62,67,62,65,39,21,21,21,21,21,37,83,86], [1,1,1,1,1,1,19,68,62,62,65,75,76,61,75,76,20,36,22,22,22,22,36,83,86], [1,1,1,1,1,1,37,21,21,21,21,21,21,21,21,21,39,19,60,60,60,60,85,83,86], [22,22,22,38,1,1,1,1,1,1,1,1,1,1,1,1,1,19,60,60,60,60,85,83,86], [86,84,85,20,1,1,1,1,1,1,1,1,1,1,1,1,1,37,21,21,21,19,85,83,86], [86,84,85,20,1,1,36,22,22,38,1,1,36,22,22,22,22,22,22,22,38,19,85,83,86], [86,84,85,20,1,1,19,60,60,20,1,1,19,60,60,60,73,73,60,60,20,19,85,83,86], [86,84,85,20,1,1,19,60,60,20,1,1,19,73,60,60,73,73,60,60,20,19,85,83,86], [86,84,85,20,1,1,19,73,60,20,1,1,19,73,73,73,73,73,73,73,20,19,85,83,86], [86,84,85,20,1,1,19,60,73,20,1,1,19,60,60,60,73,60,60,73,20,19,85,83,86], [86,84,85,20,1,1,19,73,60,20,1,1,19,60,60,60,73,60,60,73,20,19,85,83,86], [86,84,85,20,1,1,19,60,60,20,1,1,37,21,21,21,21,21,21,21,39,19,85,83,86], [86,84,85,20,1,1,19,60,60,20,1,1,36,22,22,22,22,22,22,22,38,19,85,83,86], [86,84,85,20,1,1,19,73,73,38,22,22,36,60,60,60,85,85,60,60,20,19,85,83,86], [86,84,85,20,1,1,19,60,60,60,60,60,60,73,77,82,82,82,82,78,20,19,85,83,86], [86,84,85,20,1,1,19,73,60,60,73,60,60,60,83,86,86,86,86,84,20,19,85,83,86], [86,84,85,20,1,1,37,21,21,21,21,21,21,37,83,86,86,86,86,84,20,19,85,83,86], [86,84,85,38,22,22,22,22,22,22,22,22,22,36,83,86,86,86,86,84,20,19,85,83,86], [86,84,85,85,85,85,85,85,85,85,85,85,85,85,83,86,86,86,86,84,85,85,85,83,86], [86,94,82,82,82,82,82,82,82,82,82,82,82,82,93,86,86,86,86,94,82,82,82,93,86], [86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86] ]; But I must say your editor misses a few things: Buildings. All sorts of them. In my generated map, I've replaced some with the ground, but that's only to get the rough idea. Creating single line roads or even paths for humans is impossible, excluding the green paths, which I think should be for parks and other "green" areas only. Inside corners for roads. There are outside ones, usefull for making crossroads, but there aren't any for managing road-to-street relations. In my generated map, I've used outside corners in the places for inside ones.
  9. boen_robot

    CSS3

    If any of theese examples were to be usefull, there should have been an image preview of what it might look like, instead of direct code, that's unsupported anyway .
  10. Specifying a class gives higher priority, so in the case you describe, the <p> with a class will be red, and all others blue, no matter where the code for the red <p> is written. Specifiying class only can be overrun by element.class or #ID but not with element alone. I think (but I'm not completely sure) that specifying element1,element2 has lower priority then element1 alone. If that's the case you describe, you're right, but it's not a class, you know that . Huh?
  11. Oh yeah. Definetly heared that, been there and all. I must give my congratulations to nicholaschan24 though, scince at least he knows what language(s) should be used for the game to exist. Other entusiasts I have encountered have been sooo noobish that they are practically asking for a game like CMS. If there were any, I bet they aren't free anyway, but that's another thing.I think the reason for which we don't like text based games is because we're used to see text in our work (who doesn't do coding here?) so enterteiment is suppose to be something polarly opposite, like a flash game, or any other game which involves "action". But think if you were a graphic designer. Always thinking of the look and never for the essence of things. Wouldn't you like to read something which would bring you both the vision and essence by itself?
  12. Only block elements are allowed to have dimensions (width and height) and you have set the li to inline.
  13. You can't say for sure what they use unless you ask them. They have set the MIME type for the HTML files to match the one of their server side scripting language. So when you request an HTML, the server finds it's supposed to be a page with (for example) PHP code, processes it, and gives you the result. Normally, in order to allow plain HTML files too, the servers are set to do this with (in our case) PHP files, but not in this case.[edit] Damn it, those 2 minutes [/edit]
  14. dcole.ath.cx Please, rethink your reply after reading this topic and my reply to be more precise. reportingsjr is right.By the way, there's also a topic for DNS Discussion.Oh, and top level domains are assigned by ICANN, but that's another story.
  15. Create the files which the frameset refers to and add the contents there. Look again at the example scott100 gave you.
  16. Well, it's best if you have some testing server to test the things on, but it's optional. To use an absolute path for a file from your computer, you should use something like this: <img src="file:///D|/folder/.../file.jpg" /> For example, if your picture is located in "D:\MySite\Pictures\logo.jpg", then the adress you must use in the <img> would be: <img src="file:///D|/MySite/Pictures/logo.jpg" /> But this way, the image would be visible only from your computer. If you want to save yourself time to write URLs instead, simply create an images folder in the folder where the HTML file is located and add the images there. For example, if your HTML file called index.html is located at "D:\MySite" (the full file path is "D:\MySite\index.html") then create a folder and add all the images there. If the name of that new folder is "Pictures", and our image called logo.jpg is there, then you can use this in index.html to reference the picture: <img src="Pictures/logo.jpg" />
  17. I know I'm being pretty noobish for asking this, but could you please re-post the code you made earlier, only this time as a in your post for later examination. Scince I last checked, you've started developing your code, making it even harder for me to try and figure out what I have done wrong. I'm thinking of copy&paste your example and edit from it on, to see where it all goes wrong (that's what I should have done from the start, only I just realized that), but I would prefer to do this with the most simple example possible. I'm trying to reach a new skill level here after all .
  18. What do you mean by "get the value"? XML Schema is for defining what's valid in an XML document, not "gathering" values from it, you know that.
  19. There are ways around the price tag (not paying in other words) if you know what I mean...
  20. Are you sure everything is OK with your stylesheet? When I open the link you gave I see the following error: And after some "investigation" I found the actual source of your XSLT:<?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"><xsl:variable name="mastercategoria"/> <html><body></body></html></xsl:variable><xsl:template match="/"><xsl:param name="mastercategoria" /><xsl:for-each select="/NewDataSet/Table/Categoria"/>(<xsl:value-of select="$Categoria"/>)</xsl:for-each></xsl:template></xsl:stylesheet> Where the error is pretty obvious. You have an empty variable called "mastercategoria" and at the same time, a closing variable tag, without opening one. Try to alter the code in your post instead of this one.
  21. Just incase the problem is in the conditional comment itself, here is an article about conditional comments in MSDN.But from what I see, you are using HTML 4, so the code may be better working like this: <!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="testingIE.css"><![endif]--> I realize the missing of the type attribute was my mystake. Sorry about that .
  22. Hmm... you may need to enclose the values from the right as strings, like this: /NewDataSet/Table[MasterCategoria=string(@mastercategory) and not(Categoria = string(preceding-sibling::Table/Categoria))] I'm not exactly sure how to use the not() function, but unless it's critical for the output, you may try this: /NewDataSet/Table[MasterCategoria=string(@mastercategory) and Categoria != string(preceding-sibling::Table/Categoria)]
  23. It may be because you have two predicates in this expression: /NewDataSet/Table[MasterCategoria=@mastercategory][not(Categoria = preceding-sibling::Table/Categoria)] And as far as I know, only one predicate is allowed per level. If you need to define two or more criterias, use "and" instead like this: /NewDataSet/Table[MasterCategoria=@mastercategory and not(Categoria = preceding-sibling::Table/Categoria)]
×
×
  • Create New...