Jump to content

Ag-Chieve

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by Ag-Chieve

  1. Hi, Just a quick question. In all the tutorials I've seen about xml/xslt, the xsl file is always saved in the same directory as the xml file. My question is; can I have an xml file that links to an xsl file that is saved somewhere else and have it linked via a url? What I'm specifically trying to do is have an xml file and an xsl file saved in a Dropbox folder and link the xml file to the xsl file with a url. It would look like this; xslt file would be the usual; <?xml version= "1.0"?><xsl:stylesheet version= "1.0"xmlns:xsl= "http://www.w3.org/1999/XSL/Transform"> And xml file; <?xml version= "1.0"?><?xsl-stylesheet type= "text/xsl" href= "http://dl.dropbox.com/u/name_of_file.xsl"?> I have tried this and it doesn't seem to work but I wasn't sure if that had something to do with it being in a Dropbox folder or if both documents absolutely have to be in saved in the same folder in the same directory. Thanks.
  2. Hi, Thanks for the info. I have created some very simple web pages using html and css before. I guess it's trial and error from here (with help from W3, of course).
  3. Hi, I noticed in the tutorials that it explains how to use xslt as stylesheets for an xml document. And while it talks about how to get various components to display depending on what parameters you put on them (being greater than, less than something) or getting them to show up in a table, it doesn't seem to touch on how to actually format the content (like what colour to display the font in). Is changing the font colour of an xml element something I can do with xslt? What I'm trying to do is import xml element contents into an html page (specifically a <div> on an html page) but because the background colour of the page is black, I the font of the element contents needs to be white. So, can I make an xml that links to an xslt that says to change the font to white and then import the xml elements into the html document? Would that work? I realize all this can be difficult to answer without seeing the code and that can be provided if necessary. Thank you.
  4. Research is important? Wow. Thanks for the tip. Anyway, all sarcasm, aside, though, the topic of this particular forum is suggestions on how to improve W3schools and I was giving my suggestion on how to improve it. (A suggestion that makes perfect sense, by the way.) You could just thank me for my suggestion instead of making up excuses as to why it shouldn't or isn't in place.
  5. Thank you for your suggestion. Having the student get their own xml due to frustration with the material is not a good practice for a school. The file should be put beside the document that references it for ... well, reference. That's just my humble opinion as a person who likes this service and would like to see it be the best that it can be. This is like learning how to solve a math problem but only being able to see half of the problem you're supposed to solve.
  6. Hi, I quite enjoy learning with w3schools but one thing that frustrates me while trying to learn is that in the examples, if there is an outside source referenced in the code (the xml tutorial for example), it is not shown in the examples. The xml tutorials tell me that I can pull info from an xml document into an html document and it gives me the html code that references an xml document located somewhere on the w3schools servers. The problem I have is that I want to see the xml document, too, so I can see exactly how the two interact with each other. So, I suggest that if tutorials reference outside documents in the html code (or if a schema is referenced in an xml document, etc.) please show both documents so that it is easier to understand how they interact with each other. Thanks.
×
×
  • Create New...