Jump to content

sonictk

Members
  • Content Count

    14
  • Joined

  • Last visited

Community Reputation

0 Neutral

About sonictk

  • Rank
    Newbie
  1. Another quick question: I'm trying to embed a Flash movie into my XSL stylesheet, and I was wondering if the <embed> tag is supported in XSLT, because when I try to embed the movie, it doesn't work, and nothing appears at all.
  2. Huh? What do you mean by, 'if I add something'? You mean, like, adding another link in the header? :confused: I just declare them in the CSS file because I decide what fonts and what sizes and colours I should use beforehand. This helps me keep everything organized and neat.BTW, thanks for helping me put those layout styles in the CSS document. I didn't know how to comment properly in CSS, so when I did that earlier on, the styles weren't recognized. " Just a question: if I place those styles in the CSS document, will my page load up all fugly first, then after it loads the monostyles.css document, then the page will look fine? Or will it definitely load the css document first before loading the rest of the page?One last thing: Why is it that when i use <b> and <i> tags, they don't seem to be recognized at all?
  3. UPDATE:Ok, I've re-designed the entire layout using CSS. You can find the layout code in the <head> section of index.xml. While this seems to have fixed some problems, I now have two more problems: One:As you can see, the Contact Us picture is out of position, even though it appears fine in the HTML version. Only when I convert it to CSS does this happen.Two:As you can see from the screenshot, the entire site is not aligned to the center of the page any more. I have no idea what CSS property I can use to align it to the center. I tried putting:<div class="header" align="center"> in the div tags, but it didn't work, it acted as if nothing had been included.So uh, I just need to finish these two little hitches, and everything should be fine....One more thing: how do I get CSS to not recognize whitespace? Because when I type code in one continuous loooooong line (e.g. image after image after image) it works fine, but it's extremely messy. If I try to put them like this, however: <div class="navigation"> <img /> <img /> <img /></div> For some reason spaces will appear between the pictures. Instead, to get it to work, I have to type it like this: <div class="navigation"><img /><img /><img /><img /> ........ </div> So...yeah, could someone please help me out here?Here is the updated directory of my entire site:http://twinsnakes.sitesled.com/TheTwinSnakes.zip
  4. .htaccess files are also not allowed on my host.OH SNA- All I need to do is just rename them? Do I need to update the links in the XML files or anything?BTW JScript is frowned upon by a lot of people anyway, apparently.Uhh my news.xml file has this little line of code in it that goes:<?xml-stylesheet type="text/xsl" href="index.xml"?> Should that be changed?UPDATE: Omfg, it works! I just changed the .xsl extension to .xml and updated the link in the news.xml file and it friggin' works, albeit still with the 'pictures not displaying correctly' problem. Now I have to figure out how to fix that.Thanks guys. UPDATE #2: Uhh, another thing: Why isn't my bold and italic text working? And I can't use <BR /> either in the news.xml file, it doesn't show up for some reason. <?xml version="1.0" encoding="ISO-8859-1"?><?xml-stylesheet type="text/xsl" href="index.xml"?><news> <entry> <title>Dawn Breaks...</title> <post> Welcome, welcome. I am aware, of course, of the sheer magnitude of the task I have before me before this site could perhaps be called <i>completed</i>, in a sense, and with that being said, <b>cut me some goddamn slack.</b> This is my first time using XML and XSLT, and server issues and coding issues aside, the mere setbacks that I have experienced so far are more than enough to crush any human soul. Thus my quest continues. </post> <author>SonicTK</author> <date>Feb 25, 2005 11:41 AM </date> </entry></news>
  5. I don't want to have to use JScript. =\ It's kinda unpopular.Erm, I kinda meant like is there any other way at all to load information via external files w/o using a server-side language? The main reason I thought of XML/XSLT integration in the first place was because it loaded information from .xml files, it would be easy to update, and it did not make use of any SSL.
  6. At this point, would it be possible to convert the XSLT into xHTML or something, and load the news.xml file into it instead?
  7. Yes, I've tried to make the code as neat as possible, the only thing I haven't done is define a <!DOCTYPE> becasue I'm not sure which one I should be using.
  8. Roger. My host still hasn't replied to my queries about that, so is there any workaround this problem?And what about the display problems? I can't understand why everything seems fine in IE but not in FF.
  9. Well, it didn't. =\ Thanks, though. Anyone else know about this problem?EDIT: http://developer.mozilla.org/en/docs/index...w_to_handle_XMLUh, how do I do that?EDIT: Another thing: would it be possible to specify only a certain part of my page to load the news.xml, without using JScript or anything like that? This might solve the "pictures out of place" problem as well.I'm really pissed that everything works in IE, but not in FF though.EDIT#2: I don't think it's a tabular problem though, because everything displays fine in IE. This totally doesn't make any sense.
  10. Uhh...if you try accessing http://twinsnakes.sitesled.com/news.xml on my server...What does this mean? I can view it fine on my local computer.
  11. I'll see if I can do that, but it'll take a while, I can only open Photoshop tomorrow after I get back from school. I was hoping it would be just a code problem. =\Thanks for the help, btw. I'm kinda new to this XSLT and XML stuff.
  12. Hmm. I'll try using CSS with the other site that I'm going to work on, then.And:1. Exactly. It's pissing me off to no end, because I'm a strong adovate of FF anyway, and I hate IE. :)2. I'm wondering about this myself, because I removed the XML declaration tags and it looked fine, but when I use it with the XML it screws up. For example, whenever I declare a new table, there is a blank line that I didn't declare, it comes out of nowhere. (Look at the space between the header and the navbar; there shouldn't be any space at all.)3. I doubt it. You can see the table layout picture there: I don't see any hitches with it. But I'm most likely wrong. =\EDIT: Just to be sure, I updated the tables again, still the same problem.This table design:Still gives me this:Well, at least the XML news kinda works now.
  13. ...That was it? I feel like such a nub D:But what about the pictures not matching up correctly problem? And: I thought the float: property of CSS didn't go very well with different resolutions?
  14. Basically, I'm building a new website, a collaboration project with my friend.Because I am using a free host which disallows all forms of server languages, including PHP, MySQL etc., I am planning to use XML files to update the site content. This way I can set up a blogger service to output an XML file, and use that XML to update the site.So far, I have created the site layout in Illustrator, sliced it in Photoshop, and created the basic HTML tables to hold the layout together. I saved this as a index.html, which will serve as a backup in case I screw up my XML and XSLT files. (Which I did)The site layout should look something like this:The basic structure that I had planned would be something like:- news.xml //This file contains all the information, and this is basically the page I update when I want to add content to the site.- index.xsl //This would be the XSL stylesheet that calls for certain elements from the news.xmlSo, I CTRL-C and CTRL-V the code from the HTML file to index.xsl, add the usual declarations at the top of the page and bottom, and this is what happens.I'm perplexed. As you can see, the images are out of position, but I don't know why. Also, none of the content in news.xml is being outputted at all.Here is the source code of my news.xml file: <?xml version="1.0" encoding="ISO-8859-1"?><?xml-stylesheet type="text/xsl" href="index.xsl"?><news> <entry> <title>Lorem Ipsum Filler Text TEST POST1</title> <post> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor ###### soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum. POST 1. </post> <author>SonicTK</author> <date>Feb 15, 2005 10:03 PM</date> </entry> <entry> <title>Lorem Ipsum Filler Text TEST POST2</title> <post> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor ###### soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum. </post> <author>SonicTK</author> <date>Feb 15, 2005 10:03 PM</date> </entry> <entry> <title>Lorem Ipsum Filler Text TEST POST3</title> <post> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor ###### soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius. Claritas est etiam processus dynamicus, qui sequitur mutationem consuetudium lectorum. Mirum est notare quam littera gothica, quam nunc putamus parum claram, anteposuerit litterarum formas humanitatis per seacula quarta decima et quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant sollemnes in futurum. </post> <author>SonicTK</author> <date>Feb 15, 2005 10:03 PM</date> </entry></news> For more reference, here is the way my tables are set up in Dreamweaver.And finally, here is the entire directory of my site:http://twinsnakes.sitesled.com/TheTwinSnakes.zipCould anyone please have a look at my code and tell me what I'm doing wrong?
×
×
  • Create New...