Jump to content

boen_robot

Members
  • Posts

    8,493
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by boen_robot

  1. To center something you use "margin: 0 auto; ". If you want to center only all images(the center point is considered to be the center of their containg element, not the center of the page)you would do img {margin: 0 auto;} and for absolutely everything body {margin: 0 auto;}
  2. Thanks to a PM from hacknsack I was able to solve my problem. By the way, I made some small improvements to the code. I don't know much JavaScript but the code describes itself I guess. Notice that the function and usabillity is still the same. But if you are going to use a DOCTYPE(that was the reason for my problem) you must use this code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>First XML Data Import</title><script type="text/javascript">var sourceXML = 'test.xml';var sourceXSL = 'test.xsl';var container = 'xmlData' ;function getIEXML(){ var writeObj = document.getElementById(container); // Load XML var xml = new ActiveXObject("Microsoft.XMLDOM"); xml.async = false; xml.load(sourceXML); // Load the XSL var xsl = new ActiveXObject("Microsoft.XMLDOM"); xsl.async = false xsl.validateOnParse = false; xsl.load(sourceXSL); // Transform writeObj.innerHTML = xml.transformNode(xsl);}function startMozXML(){ //Load the XML xmlhttpXSL = new XMLHttpRequest(); xmlhttpXSL.open("GET", sourceXSL, false); xmlhttpXSL.setRequestHeader("Content-Type", "text/css") xmlhttpXSL.send(null); loadedStyle = xmlhttpXSL.responseXML; //Load the XSL xmlhttpXML = new XMLHttpRequest(); xmlhttpXML.open("GET", sourceXML, false); xmlhttpXML.setRequestHeader("Content-Type", "text/xml") xmlhttpXML.send(null); var xmlDoc = xmlhttpXML.responseXML; //Transform var writeObj = document.getElementById(container); var xsltProcessor = new XSLTProcessor(); var xmls = new XMLSerializer(); xsltProcessor.importStylesheet(loadedStyle); var xmlDoc = xsltProcessor.transformToDocument(xmlhttpXML.responseXML); writeObj.innerHTML = xmls.serializeToString(xmlDoc);}function init(){ if(window.ActiveXObject) { getIEXML(); } else if(window.XMLHttpRequest && window.XSLTProcessor) { startMozXML(); } else { document.getElementById(container). innerHTML = 'No Support In This Browser..' }}window.onload = init;</script></head><body><div id="xmlData">In order to see this, you must turn on your JavaScript.<br />If yo have turned on your JavaScript, refresh the page and wait.</div></body></html> The big change was the line xsl.validateOnParse = false; Thanks again hacknsack.The other small change I made was that I exported xmlData as a separate variable called "container". That way, If you use multiple copies of this script for different XMLs and/or XSLTs in tags with different IDs you can change the name of the container ID instantly instead of looking for it in the middle of the document.
  3. boen_robot

    newbie question

    I don't think CSS has changed much scince 2002 but... why buy a book on the first place? w3schools has a full CSS reference. Well, ok... almost full. But atleast it has everything that the W3C standarts requre.
  4. boen_robot

    help !!

    In order to fully understand PHP(and any other language on this matter) you should know(X)HTML first. The way I see it- you don't.The <tr> is an HTML tag for a Table RowThe <td> is an HTML tag for a Table Data(a cell on a row).The <br /> is an XHTML tag for a single line break (as when you press the Enter key in MS Word for example).For more information about HTML go to the HTML tutorial and to see all (X)HTML tags go to the (X)HTML tag reference.
  5. Ok, so am I the only one who can't see the XSL in IE at all?The code works with FireFox but not with IE. The XSL files themselves work everywhere, so the problem must be somewhere in the JavaScript code, but where?!?!
  6. You can always do that by typing the out-to-in order the element's style should be applyed. Like this:td.SectionBlueTitle{background-image: url( "Images/HeaderBlue.jpg" );color: #FFFFFF;}td.SectionBlueTitle a, a:link, a:visited, a:hover, a:active{color: #00FFFF;text-decoration: underline;} As you can clearly see the second style is applyed to every link only if it's inside the element on it's left(in this case: a table from class SectionBlueTitle).
  7. There is an error in your code... the closing bracket of SectionBlueTitle is closed at the end of the document, not the selector.Try this: td.SectionBlueTitle{background-image: url( "Images/HeaderBlue.jpg" );color: #FFFFFF;}a, a:link, a:visited, a:hover, a:active{ color: #00FFFF; text-decoration: underline;}
  8. Scince XHTML is almost the same as HTML, you should study HTML first. XHTML has only few differences which you could learn in minutes. Besides- w3schools only explains the differences between HTML 4.01 and XHTML in the XHTML tutorial. However, don't get used to HTML as it has very few things that you need to know. Especially the advanced secion of the site... the only useful thing there is probably the "meta" tag.So the best order to learn things "might" be the one which is on the site:HTMLXHTMLCSS---------Then you may specialize yourself in some other language if you see things you can't do with this trio. Like JavaScript, PHP, ASP or (my favourites) XML, XSLT, etc.
  9. I looked into the XPath tutorial and the XPath referance and there wasn't anything mentioned about variables. So having a "variable" may be the problem. Exactly what are you trying to achieve?In the meantime, let's analize, shall we? This XPath expression of yours should return the "BATCHALLOCATIONS.LIST" in every "ALLINVENTORYENTRIES.LIST" inside the document who have a GODOWNNAME different from... what's that? There should be a value or a string there I think... How do you define a variable in XML?You should show the XML(a shortened version that is) and point the thing you expect the XPath to select.
  10. Generally, attributes shouldn't contain data that should be extracted. If you are the creator of the XML (or have a connection with the one), you should (tell him to) place the attributes in other elements.The way to get an attribute is the same as an element but the XPath expression is different.Try this: <?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/"> <xsl:value-of select="/INVENTORY/Book/@Isbn"/></xsl:template></xsl:stylesheet>
  11. boen_robot

    xml & PHP

    I think the best thing might be to transform this data with XSLT and then use PHP to execute the XML and the XSLT.However, I don't know a code that would execute the XML and XSLT. Hope someone else does...
  12. @hacknsackI have no idea how Mozilla browsers or servers work. The ones I test my pages with are only IE6, FireFox 1.5, Opera 8 and from today Netscape Navigator 8. Mozilla probably don't have XML and/or XSLT support. I don't know.I also don't know much JavaScript(I haven't read any of the "Advanced" section of the site and I don't remember much of the basics) so I can't even start to think what could be the reason for that error(if it's in the script that is).By the way, for some unknown reason IE doesn't return a thing now(it did earlyer today thogh ). I copyed the same code again, just to ensure there wasn't anything altered accedently and still...nothing.I saw Opera 9(10x Jonas), and it returned nothing, just like IE . Hm... let's look this on the bright side. I could atleast preview the full XSLTs in Opera and they will work later in the process if I make XSLT only pages.
  13. @hacknsack thank you! This script is something I was looking for as well. This will allow me(and not only me of ofcourse ) to insert XSLTs in fragments of my XHTMLs instead of having a whole page in XSLT only. I mean... the example at w3schools didn't worked properly with IE nor Firefox with me. But this one works with both of them.There's only one thing bugging me. Opera doesn't support XSLT. So, isn't there a way for the JavaScript to process the XSLT and return the raw XHTML that will be resulted? Or is this only possible through server side scripting?
  14. boen_robot

    id & name

    as far as i know "name" is being deprecated to be replaced by "id". That's right. The ID tag is the "new" thing. However old browsers don't recognize the ID attribute, so it's not a bad thing to place both ID and NAME in elements if you're aiming for maximum accessibility.
  15. boen_robot

    XML Data Islands

    Opera doesn't have XML support as far as I know. As for FireFox- it's a standart compilant browser. the <xml> tag in HTML is unofficial and FF doesn't use unofficial tags. IE6 has a full support for XML which is why it's the only browser showing this.Forget this method. XSLT is the one true way of transorming XML documents.
  16. boen_robot

    Total PHP noob

    A lot more easier solution might be XAMPP. It's a all-in-one server pack that includes Apache, PHP, MySQL, FireZillaFTP server, Zend Optimizer and more. Once you install it and start the services, all you need to do is to check your security setting by typing http://localhost in your browser and go to the apropriate menues. After that you may move/delete everything in XAMPP's "htdocs" folder and place all of your PHP files there. They will be accesable by typing http://localhost/*the-name-of-the-file* or http://*yor-IP*/*the-name-of-the-file* in the browser window.Notice: If someone knows your IP they will also be able to see your pages.
  17. boen_robot

    RSS feeds

    Well, you may use PHP or other server side scripting language to translate the data. Here's a sample PHP parser I found on a site: class RSS_Parser{// {{{ part-variables (all private)var $Counter; // counts each resource of informationvar $Current; // contains the name of the current elementvar $Parent; // contains the name of the parent of the current elementvar $Parser; // the XML parservar $Result; // the array containg all neccesary information// }}} // {{{ constructor/**Prepares the object*@access public*/function RSS_Parser(){$this->Counter = 0;$this->Current = '';$this->Parent = '';if(!($this->Parser = xml_parser_create()))die('Could not create XML parser!');xml_set_element_handler($this->Parser, 'start', 'end');xml_set_character_data_handler($this->Parser, 'data');}// }}} // {{{ start()/**Controls the opening tags*@access private@param resource $Parser XML parser@param string $Element name of the element@param array $Att array containg the attributes of the element*/function start($Parser, $Element, $Att){if(ereg(':', $Element))list($prefix, $this->Current) = explode(':', $Element);else$this->Current = $Element;if(($this->Current == 'CHANNEL') || ($this->Current == 'IMAGE') || ($this->Current == 'ITEM'))$this->Parent = $this->Current;if($this->Current == 'ITEM')$this->Counter++;}// }}} // {{{ end()/**Controls the closing tags*@access private@param resource $Parser XML parser@param string $Element name of the element*/function end($Parser, $Element){$this->Current = '';}// }}} // {{{ data()/**Controls the data*@access private@param resource $Parser XML parser@param string $Data simbolic data of the element*/function data($Parser, $Data){if(($this->Current == '') || (trim($Data) == ''))return;if($this->Parent == 'ITEM')$this->Result['items'][$this->Counter][strtolower($this->Current)] .= stripslashes(htmlspecialchars($Data, ENT_NOQUOTES));if(($this->Parent == 'CHANNEL') || ($this->Parent == 'IMAGE'))$this->Result[strtolower($this->Parent)][strtolower($this->Current)] .= stripslashes(htmlspecialchars($Data, ENT_NOQUOTES));}// }}} // {{{ parse()/**Parses the current document*@access public@param string $file name of the file or URL@return array Array containg the neccesary info*/function parse($file){$this->Result = array();$fp = @fopen($file, 'r');xml_set_object($this->Parser, &$this);while($Data = fread($fp, 4096)){if(!xml_parse($this->Parser, $Data, feof($fp)))break;}xml_parser_free($this->Parser);$this->RSS_Parser();return $this->Result;}// }}}} The page wich would include the feed must include this: <?php// Include the parserinclude('parser.php');$p = new RSS_Parser();// The array containg the information from the feed$channel = array();$channel = $p->parse(news.rss');// Visualize the name of the site...echo '<b><a href="'.$channel['channel']['link'].'" ';echo 'target="_blank" ';echo 'title="'.$channel['channel']['description'].'">';echo $channel['channel']['title'].'</a></b><br />';// ... as well as the individual names of every newsforeach($channel['items'] as $item){echo ' » <a href="'.$item['link'].'" target="_blank" title="'.$item['description'].'">'.$item['title'].'</a><br />';}?> Notice that this code is made from a Bulgarian and that I have (atleast tryed to) translate all the comments inside. I have not tested the code, so I don't know if it will work at all.Also notice that you must change "news.rss" to the actual name of your feed.
  18. Thank you for not giving any reply on my question(that's sarcasm).I somehow managed to solve my issue. It's something that for some reason is ot mentioned in the XSLT referance nor Dreamwaver's:An include element can't exist inside a template. It could be before a template, after a template, and between two templates but never inside a template.I also discovered something really odd for the template<->include relationships which I would like someone to explain me in detail please... If you place include element BEFORE a template, the template will be executed but not the include element. If you place the include element AFTER the template you'll get the opposite effect- the template is not executed but the include element is.The "output" element from the main XSLT had to be removed as well. OK. I have an absolutely clean code. But here comes the weirdest part of it all.When I include more that one file one after another, only the latest one is displayed. Why?Here are the new versions of the codes:test.xsl <?xml version="1.0" encoding="windows-1251"?><!-- DWXMLSource="test.xml" --><!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> <!ENTITY copy "©"> <!ENTITY reg "®"> <!ENTITY trade "™"> <!ENTITY mdash "—"> <!ENTITY ldquo "“"> <!ENTITY rdquo "”"> <!ENTITY pound "£"> <!ENTITY yen "¥"> <!ENTITY euro "€">]><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:include href="links.xsl" /><xsl:include href="image.xsl" /></xsl:stylesheet> links.xsl <?xml version="1.0" encoding="windows-1251"?><!-- DWXMLSource="test.xml" --><!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> <!ENTITY copy "©"> <!ENTITY reg "®"> <!ENTITY trade "™"> <!ENTITY mdash "—"> <!ENTITY ldquo "“"> <!ENTITY rdquo "”"> <!ENTITY pound "£"> <!ENTITY yen "¥"> <!ENTITY euro "€">]><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="html" encoding="windows-1251"/><xsl:template match="/"><xsl:for-each select="/site/links/menu/item"><xsl:variable name="link" select="link" /><xsl:variable name="logo" select="logo" /><xsl:variable name="title" select="title" /><a href="{$link}"><img src="{$logo}" alt="{$title}" /></a><br /></xsl:for-each></xsl:template></xsl:stylesheet> image.xsl <?xml version="1.0" encoding="windows-1251"?><!-- DWXMLSource="test.xml" --><!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> <!ENTITY copy "©"> <!ENTITY reg "®"> <!ENTITY trade "™"> <!ENTITY mdash "—"> <!ENTITY ldquo "“"> <!ENTITY rdquo "”"> <!ENTITY pound "£"> <!ENTITY yen "¥"> <!ENTITY euro "€">]><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="html" encoding="windows-1251"/><xsl:template match="/"><xsl:for-each select="/site/images/image"><xsl:variable name="location" select="location" /><xsl:variable name="description" select="description" /><img src="{$location}" alt="{$description}" /><br /></xsl:for-each></xsl:template></xsl:stylesheet> Any ideas why is it like that and what should I do to include more than one file in a single document?
  19. No. This message means that the data is not encrypted... that is... not encoded. In other words- If the site's administrator decides that he would like to view your data, he can do it. BEWARE! This MAY also includes passwords. Anyway- this doesn't always mean that the admin is a froad. If you trust the site and the admin(s) there's no reason why not to post your data.
  20. Well, at first I must say it's like you have some errors in your code. I kind of solved your problem, but the solution I found makes some other rather weird errors. Previewing the XML in IE resulted in placing a "B" instead of a space. In FireFox however, everything was fine. It's kind of odd, scince IE is known to have a full XML support.The partial solution to your problem was a DTD in which the entities(and in the process: all other elements) are specified.instrument_table.xml <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE Instruments [ <!ELEMENT Instruments ANY> <!ELEMENT changed ANY> <!ELEMENT ID_BB_UNIQUE ANY> <!ELEMENT ID_SEDOL1 ANY> <!ELEMENT ID_SEDOL2 ANY> <!ELEMENT ID_SEDOL3 ANY> <!ELEMENT TICKER ANY> <!ENTITY nbsp " "> <!ENTITY copy "©"> <!ENTITY reg "®"> <!ENTITY trade "™"> <!ENTITY mdash "—"> <!ENTITY ldquo "“"> <!ENTITY rdquo "”"> <!ENTITY pound "£"> <!ENTITY yen "¥"> <!ENTITY euro "€">]><?xml-stylesheet type="text/xsl" href="instrument_table.xsl" ?><Instruments><changed><ID_BB_UNIQUE>ABCDEFG</ID_BB_UNIQUE><ID_SEDOL1>S02548</ID_SEDOL1><ID_SEDOL2> </ID_SEDOL2><ID_SEDOL3> </ID_SEDOL3><TICKER>BA</TICKER></changed><changed><ID_BB_UNIQUE>PQRSTUV</ID_BB_UNIQUE><ID_SEDOL1>B0JYD4</ID_SEDOL1><ID_SEDOL2>B095JTY</ID_SEDOL2><ID_SEDOL3> </ID_SEDOL3><TICKER>BA</TICKER></changed></Instruments> instrument_table.xsl <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE xsl:stylesheet [ <!ELEMENT Instruments ANY> <!ELEMENT changed ANY> <!ELEMENT ID_BB_UNIQUE ANY> <!ELEMENT ID_SEDOL1 ANY> <!ELEMENT ID_SEDOL2 ANY> <!ELEMENT ID_SEDOL3 ANY> <!ELEMENT TICKER ANY> <!ENTITY nbsp " "> <!ENTITY copy "©"> <!ENTITY reg "®"> <!ENTITY trade "™"> <!ENTITY mdash "—"> <!ENTITY ldquo "“"> <!ENTITY rdquo "”"> <!ENTITY pound "£"> <!ENTITY yen "¥"> <!ENTITY euro "€">]><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="html" encoding="UTF-8" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/><xsl:template match="/Instruments"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Instrument changes</title></head><body><font face="arial"><table><tr><td><p>Instrument List</p></td></tr><tr><td><table border='1' cellpadding='5' align='Left'><tr bgcolor="#cccccc"><th>BLOOMBERG ID</th><th>SEDOL1</th><th>SEDOL2</th><th>SEDOL3</th><th>TICKER</th></tr><xsl:for-each select="changed"><tr><td><xsl:value-of select="ID_BB_UNIQUE"/></td><td><xsl:value-of select="ID_SEDOL1"/></td><td><xsl:value-of select="ID_SEDOL2"/></td><td><xsl:value-of select="ID_SEDOL3"/></td><td><xsl:value-of select="TICKER"/></td></tr></xsl:for-each></table></td></tr></table></font></body></html></xsl:template></xsl:stylesheet>
  21. Maybe it really doesn't support the title attribute. Try using "alt" instead. I mean... what's the difference between a tooltip(the "title") and the "alt" attribute? If the image is present and you hold over the image, it will display the alt text in a tooltip...I guess you would be able to "live" without a specific text for the tooltip, right? Your visitors as well... This isn't something you should worry about.
  22. Well "stupid"(I don't think you are, but if you insist...) SVG stands for Scalable Vector Graphics. It's a XML based alternative to Flash(well... kind of). In other words, it's a programming language with an XML syntax that displays inteactive information on the screen. Because it's based on XML, it could be syncronized with an XML that would carry the data. That way, maintaining the data up to date becomes much easier.For more information see the SVG tutorial on w3schools
  23. I've recently started experimenting with XSLT and some it's more... complicated elements. The <xsl:include> element is kind of causing trouble. The combined XSLT is well formated according to Dreamwaver 8. I know it's syntax after all, but I don't know how the fragment file must look like. Could someone please give me an example of how the fragment file must look like. Here's what I currently have:test.xml - the source <?xml version="1.0" encoding="windows-1251"?><?xml-stylesheet type="text/xsl" href="test.xsl"?><site> <images> <image> <location>http://www.w3schools.com/images/pic_keybmouse_2.jpg</location> <description>Mouse</description> </image> <image> <location>http://www.w3schools.com/images/pic_keyb_2.jpg</location> <description>Keyboard</description> </image> </images> <links> <menu> <item> <link>http://www.w3schools.com</link> <title>w3schools</title> <logo>http://www.w3schools.com/images/logo_new2.jpg</logo> </item> <item> <link>http://www.microsoft.com/</link> <title>Microsoft</title> <logo>http://i.microsoft.com/h/all/i/ms_masthead_10x7a_ltr.jpg</logo> </item> </menu> </links></site> test.xsl - The main XSLT. <?xml version="1.0" encoding="windows-1251"?><!-- DWXMLSource="test.xml" --><!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> <!ENTITY copy "©"> <!ENTITY reg "®"> <!ENTITY trade "™"> <!ENTITY mdash "—"> <!ENTITY ldquo "“"> <!ENTITY rdquo "”"> <!ENTITY pound "£"> <!ENTITY yen "¥"> <!ENTITY euro "€">]><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="html" encoding="windows-1251" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" /><xsl:template match="/"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /><title>test</title><link rel="stylesheet" type="text/css" href="test.css" /></head><body><xsl:include href="image.xsl" /><xsl:for-each select="/site/links/menu/item"><xsl:variable name="link" select="link" /><xsl:variable name="logo" select="logo" /><xsl:variable name="title" select="title" /><a href="{$link}"><img src="{$logo}" alt="{$title}" /></a><br /></xsl:for-each></body></html></xsl:template></xsl:stylesheet> image.xsl - The fragment XSLT that is included in the main one. <?xml version="1.0" encoding="windows-1251"?><!-- DWXMLSource="test.xml" --><!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> <!ENTITY copy "©"> <!ENTITY reg "®"> <!ENTITY trade "™"> <!ENTITY mdash "—"> <!ENTITY ldquo "“"> <!ENTITY rdquo "”"> <!ENTITY pound "£"> <!ENTITY yen "¥"> <!ENTITY euro "€">]><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="html" encoding="windows-1251" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" /><xsl:template match="/"><xsl:for-each select="/site/images/image"><xsl:variable name="location" select="location" /><xsl:variable name="description" select="description" /><img src="{$location}" alt="{$description}" /><br /></xsl:for-each></xsl:template></xsl:stylesheet> The fragment template works when it's directly in the main XSLT but not when it's on another file. A code which works is this one: <?xml version="1.0" encoding="windows-1251"?><!-- DWXMLSource="test.xml" --><!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> <!ENTITY copy "©"> <!ENTITY reg "®"> <!ENTITY trade "™"> <!ENTITY mdash "—"> <!ENTITY ldquo "“"> <!ENTITY rdquo "”"> <!ENTITY pound "£"> <!ENTITY yen "¥"> <!ENTITY euro "€">]><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="html" encoding="windows-1251" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" /><xsl:template match="/"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /><title>test</title><link rel="stylesheet" type="text/css" href="test.css" /></head><body><xsl:for-each select="/site/images/image"><xsl:variable name="location" select="location" /><xsl:variable name="description" select="description" /><img src="{$location}" alt="{$description}" /><br /></xsl:for-each><xsl:for-each select="/site/links/menu/item"><xsl:variable name="link" select="link" /><xsl:variable name="logo" select="logo" /><xsl:variable name="title" select="title" /><a href="{$link}"><img src="{$logo}" alt="{$title}" /></a><br /></xsl:for-each></body></html></xsl:template></xsl:stylesheet> Could someone please tell me what I'm doing wrong and how should the fragment file look.
  24. Well... actually the latest version of Dreamwaver is 8, not MX. Here's more info:http://www.macromedia.com/software/dreamweaver/
  25. In order to be more convinient for all of us, I suggest we use a template of questions that everyone posting here should answer. Here is the template: I use a simmilar one in my own forum . Notice that "Alternative name(s)" doesn't mean a Nickname you would use in forums, but how they call you in the "real world". So here is my presentation...Full name: Vasil Dimitrov RangelovAlternative name(s): VaskoBirth date(dd/mm/yyyy): 03/09/1989Gender: MaleZodiacal sign: VirgoCountry of residance: BulgariaCity of residence: PlovdivHeight: 1.72mWeight: ~above the normal~Eyes: BlueHair: BlackSmoking/Drinking/Drugs: No/No/NoFavourite Music: Almost everything excluding Hard Rock.Favourite Movies: Comedies.Interest: Everything about computers. When it comes to web design I think I'm most interested in XML and related technologies.Pets: None.Additional comments: I have vey big plans for my future, most of witch are really... impossible. In some way I think w3schools will let me be closer to my dreams though.[edit]@Chocolate570 well of course you fill the questions you want to answer to. As you have noticed, I haven't said my exact weight [/edit]
×
×
  • Create New...