Jump to content

olav78

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by olav78

  1. solved by using <xsl:copy-of select="..."> instead of <xsl:value-of select="..."> in case anyone likes to know
  2. yup,help.xsl: <?xml version="1.0" encoding="ISO-8859-1"?><xsl:stylesheet version="1.0"xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <head> <style type="text/css"> div#top{ margin: 5px 0 40px 0; padding: 2px 2px 0px 2px; color: black; background: #198fbf; } div#menu { float: left; width: 120px; display: inline; background: #d6d6d6; } div#content { position: absolute; left:130px; width: 440px; margin: 5px 10px; padding: 0; } ul#list{ padding-left: 5px; margin: 10px auto 10px 5px; list-style-type: none; } li#head { font-weight: bold; margin-top: 6px; } li#element { } a#menu{ text-decoration: none; font-size: 90% } </style> </head> <body> <div id="top"> <img src="../images/oppie-logo.jpg"/> </div> <div id="menu"> <ul id="list"> <xsl:for-each select="help/category"> <li id="head"><a> <xsl:attribute name="href"> #<xsl:value-of select="@name"/> </xsl:attribute> <xsl:value-of select="@name"/> </a></li> <xsl:for-each select="help-element"> <li id="element"><a id="menu" > <xsl:attribute name="href"> #<xsl:value-of select="@id"/> </xsl:attribute> <xsl:value-of select="@id"/> </a></li> </xsl:for-each> </xsl:for-each> </ul> </div> <div id="content"> <h1><xsl:value-of select="help/main-heading"/></h1> <xsl:value-of select="help/text"/> <xsl:for-each select="help/category"> <h2> <a> <xsl:attribute name="name"> <xsl:value-of select="@name" /> </xsl:attribute> <xsl:value-of select="@name" /> </a> </h2> <xsl:value-of select="text"/> <xsl:for-each select="help-element"> <h3> <a> <xsl:attribute name="name"> <xsl:value-of select="@id" /> </xsl:attribute> <xsl:value-of select="@id" /> </a> </h3> <p><xsl:value-of select="text" /></p> </xsl:for-each> </xsl:for-each> </div> </body> </html> </xsl:template></xsl:stylesheet> Here's the help.xml: <?xml version="1.0" encoding="ISO-8859-1"?><?xml-stylesheet type="text/xsl" href="../styles/help.xsl"?><help> <main-heading>OMS Online Help</main-heading> <text><strong xmlns="http://www.w3.org/1999/xhtml">strong text</strong> text text text etc</text> <category name="Operations"> <text>innledende tekst om operation om ønskelig</text> <help-element id="Minibar locking"> <text> The OMS can be configured to deny access to a set of products. Which products are defined in the locking policy. The locking can be applied to one or more rooms for a specified time period. </text> </help-element> <help-element id="Locking policies"> <text> A locking policy specifies the set of products to be locked. The set can consist of all products in the minibar or only a selection, as for example all alcoholic beverages. </text> </help-element> </category> ....</help> "<text><strong xmlns="http://www.w3.org/1999/xhtml">strong text</strong> text text text etc</text>" show like "strong text text text text etc" whitout the xhtml formating...
  3. but I have <text>-tags in my xml with a lot of text, and I just want to use xhtml-tags like <strong>, <p>, <font> etc to manipulate the presentation of the text... Sounds like a lot of work if i'm going to specify tags in the xslt for this when it's just plain (x)html...
  4. I have a XSL-file who generate output to a browser through information in a XML-file. It works fine, but now I also want to use some xhtml-tags in this XML-file. I've tried to do it like this when i want to use xtml-tags: <strong xmlns="http://www.w3.org/1999/xhtml">strong text</strong>. But it does not seem to work. The browser shows the text, but not as «strong». Do I need to include a DTD-file or something? Anyone knows?
  5. olav78

    Buttons in IE

    no, this was before
  6. it's not two words, i define the div with id=local another place (its a div for a local menu). "div#local button" means all the buttons inside the div with id=local...
  7. thanks! but it still does not work in IE...here is the CSS-element: div#local button { width: 100%; word-wrap: break-word; text-wrap: unrestricted;}
  8. nope. stupid IE still just shows one line of text. Hmmm, I beginning to belive that it's impossible to have two lines buttons in IE.
  9. Hello!I'm wondering how I can set buttons where the text continues to the next «line» of the button if it is longer than the size of the button.In FF this works (the button get twice as high and the text spans two lines): div#local button { width: 100%;} IE, however, cuts the text and the last bit is not showed...? Anyone know how I can get this to work in IE?
  10. olav78

    Buttons in IE

    Hello!I have a menu with buttons, and i want the buttons to always show all of the text inside them but not get longer than a fixed size. If there is «too much text» I want the buttons to show text on the next line of the button. This works fine in FF, but not in IE. Anyone knows how to get «two-lines buttons» in IE?This is my css-element: div#local button { background: #d6d6d6; text-align: center; width: 100%; left: 0;}
×
×
  • Create New...