Jump to content

boen_robot

Members
  • Posts

    8,493
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by boen_robot

  1. And have you published this in the IE newsgroup?
  2. boen_robot

    XML/Flash

    Height to tell you this, but loading content from extental XML based languages is one of the main reasons I prefer SVG over Flash. If there's any way with Flash, it's probably really complicated. After all, Flash is suppose to run on pages, not pages on Flash .Unless you are already too deep into Flash, try doing some stuff with combinations of SVG and XSLT and you'll see what I mean
  3. As far as I know flash could have form, could display previously entered in a form data, and can send form's content to another file(simmilarly to HTML ), but it can't alone process the form. Server side script is the one true way of processing AND saving form data.
  4. A rule such as "duplicate posts not allowed without AT LEAST 24 hours delay" sounds good to me. Infact, I happen to be an admin of a forum where there's already such a rule .btw, in the above poll I voted for "don't care", cause there really isn't a best answer to this.
  5. In theese particular cases: yes. But you shouldn't be so harsh either. It's true that most people just can't see everything and that it has to be on the top to be seen. I have happened to helped with a problem that was two weeks away, but I didn't knew about it until it's author said "anybody?". This makes people try to get their attention without writting real bulls*its (believe me, I know what I'm talking about by saying "real bulls*it"). Look at my topics(not posts) to see what I mean. I have written very few(5) and there are replies to only 2 of them. The other ones have "anyone?"s, scince they truly feel lonely.Infact, I feel kind'a bad that I can't help on theese topics above, you know...
  6. boen_robot

    Frameset

    You may do something like this: <?xml version="1.0" encoding="windows-1251"?><xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="html" version="1.1" encoding='UTF-8' indent='yes' doctype-public="-//W3C//DTD XHTML 1.1//EN"/><xsl:template match="/"><html xmlns="http://www.w3.org/1999/xhtml"> <xsl:apply-templates /></html></xsl:template><xsl:include href="header.xsl" /><xsl:include href="body.xsl" /></xsl:stylesheet> The XML file this would be attached to would be the XML files that contain the real content. The included XSLTs (header.xsl and body.xsl in this case) should contain whatever you want to put inside theese parts and the header should include reference to another XML document (using the document() function) that would display their content.This is actually pretty neat to get rid of the frames and still keep the flexibility of it. Infact... hey! You were the one who showed me this method .
  7. Not quite... It all matters which stylesheet is ran first. That stylesheet imports the rest and all the things inside the included stylesheets are ran if the stylesheet was one and all.That doesn't matter though. The importaint thing here is that:<xsl:for-each select="skill"><xsl:apply-templates /></xsl:for-each> Is (as you suggested) going to (try to) apply all other templates at that spot, but technically speaking, if there are no possible relative matches inside, XSLT doesn't have anything to apply the templates on.In short:1st line. Correct2nd line. Wrong
  8. Oh well... another idea:Apply all the properties of sub2 to the container. This creates the illusion that it's sub2 which is configured. This would look ugly if there were margins though.
  9. 80% in sub2 and 20% to sub1?[edit]posted similtaniously with pulpfiction [/edit]
  10. By the way:background-color:green;notbackground-color=green;
  11. XML only carries "ordinary" data. You could however mark the things that are superscripts:<text>2<superscript>2</superscript>=4</text>And then use some XSLT with proper CSS to adjust the sisez and positions .
  12. I added the select attribute to ensure that this would work if there are other things in the XSLT. However, if that's not the case, you can simply remove the select attribute. This would apply ALL templates if only they have appropriate matches inside. This could make the things unstable if not used wisely, but if you have a single XSLT containg only all skills, then you don't need the select attribute and you can remove it without any worries in the short and long term.
  13. As far as I know, nested templates are not allowed. You could use <xsl:call-templates/> element though. Adding attribute "select" would activate the desired template at that spot.I almost see where this is all going. Perhaps the unclear XSLT is the only thing that confuses me now. Here's an altered version of the code: <xsl:template match="skills"><xsl:for-each select="skill"><xsl:apply-templates select="Sense Motive" /></xsl:for-each> </xsl:template><xsl:template match="name" name="Sense Motive"/> <xsl:variable name="Sensemotivemisc" select="modifiers/modifier[@name = 'misc']/@value" /> <intvalue name="sensemotivemisc"> <xsl:value-of select="$Sensemotivemisc"/> </intvalue> <xsl:variable name="Sensemotiveranks" select="modifiers/modifier[@name = 'rank']/@value" /> <intvalue name="sensemotiveranks"> <xsl:value-of select="$Sensemotiveranks"/> </intvalue > <xsl:variable name="Sensemotivestat" select="modifiers/modifier[@name = 'ability']/@value" /> <intvalue name="sensemotivestat" <xsl:value-of select="$Sensemotivestat"/> </intvalue> </xsl:template> I haven't tested it, but if all is correct, it should work.If you want to ensure priority you could use the "priority" attribute of the xsl:template. Just use integer value in it to specify which should have a higher one.
  14. I haven't seen that XMetal, but from what I understand, the application automatically generates a schema for the XML file, so it could force you to write valid code. Is there some window like that? If so, could you manually edit the schema? If you could, you could define the new element as valid in the schema and then feel free to use it everywhere in the document.
  15. http://www.w3schools.com/site/site_search.aspSays enough
  16. Most companyes want a CV when you apply for a job. You can easily say "x ears of experience. A detailed list of previous clients could be found at www.yoursite.com/portfolio. Some of them include:..."So, a freelancer is judged by his/her work, not by what he/she points as a years of experience and a web design worker is judged by the number of years.
  17. There are always meta redirects if that's what you want, but this could "break" the back button. <META HTTP-EQUIV=REFRESH CONTENT="1; URL=http://www.example.org/bar">
  18. I can't suggest much without knowing the full server side's system... hmm...A thing you might do, would be to add an attribute to each menu about which group should have acces to it. Example: <menu> <item access="admin"> <title>Site control panel</title> <link>http://example.com/admin/</link> </item> <item> <title>Home</title> <link>http://example.com</link> </item></menu> Then use the server side script to generate only the menus that have the corresponding attribute(s). You may use XSLT too, but there's a tricky point here for dealing with security. Hmm... you may use the server side to generate the appropriate XML and apply a fixed XSLT that would render the menus there.Again... nothing is certain. There are many ways to do the things, but it all depends on the rest of the system.
  19. Well, I know that XML files work in every major browser, including Safari, or if not- at least Firefox on MAC. However, there might be problems with the JS. Are you able to preview the XML file's source tree in the browser? If so, the problem IS truly JavaScript and XSLT must be used instead.
  20. They are suppose to be a reference. A complete web site could use a variety of Languages, so it's not a good idea to force users into one path.
  21. Maybe IE6 might do it, or are we talking completely MACs?
  22. When variables are imported, they still have some order in the file itself, therefore, the callers would follow the order from within the file.From recent experiments I've done, I know that a variable's name can't refer to another variable, making impossible the thing you want.Another thing I wonder about: <xsl:variable name="skillname" select="[@name = 'name']/@value" /> I don't think that a path could begin with a predicate. I may be wrong though. Who knows...As for constructing the table... I'm still a bit confused of what is going on, but a table I recently helped with could be found here.Perhaps some adjustment of the XPath expressions might do what you want?
  23. boen_robot

    Changing IMG src

    First stop: not every XML file is a "feed".Second: entering every member's information is not good for performance reasons. SQL database could be better in this case.as for how to achieve this is XSLT. Simple: <xsl:variable name="src" select="imgsrc" /><img src="{$src}" />
  24. I don't get it... why do you need your own namespace on the first place? Can't you just use ordinary XML, scince there won't be any special technology applyed? Or am I wrong?
  25. I think turning them on is not going to turn on ASP. It's just going to enable you start and end PHP codes with % instead of ?php. I may be wrong though.
×
×
  • Create New...