Jump to content

pjfarley3

Members
  • Posts

    20
  • Joined

  • Last visited

pjfarley3's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Thanks for the info. As I said above, at least I can tell my boss it's not my code... Peter
  2. Thanks for the info. At least I know it isn't me! And I have something to tell my boss when he asks why it doesn't work... Peter
  3. Is there a problem with tooltips for <select title="..."> in IE6? I can't get any tooltip at all from a <select> (sample below).TIA for any info or advice you can offer.Peter <html><body><form><select name="cars"title="Pick your favorite car!"> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="fiat">Fiat</option> <option value="audi">Audi</option></select></form></body></html>
  4. Yes, that is what I meant -- no explicit reference to the server in the XML. I was hoping there could be a "local" substitute for the "href", possibly in an IE6 "data islands" setup, along the lines of:<?xml-stylesheet type="text/xsl" href=#cdxsl?>where "cdxsl" is the "id" of a preceding "data island": <xml id="cdxsl">...xsl here...</xml>. I tried exactly this in IE6, and it does not work. Thanks for the advice. I guess I have to go with the client-side javascript solution, and supply the XSL as embedded text in the javascript.Peter
  5. Hi all,XML/XSL newbie here. I have a need to be able to put BOTH XSL and XML that uses the XSL into a single stream sent by a server to a client browser (IE6 only for now). The XSL cannot reside on the server.Is it possible to send XML without having the XSL reside on the server, i.e. not using "href" in the XSL line inside the XML?I tried doing the following, but it doesn't work. THe top-level element, "cdcat", is just displayed in the default XML format in the browser.Data and stylesheet copied from the W3Schools tutorials. <xml id="cdcat"><?xml version="1.0" encoding="ISO-8859-1"?><!-- Edited with XML Spy v2006 (http://www.altova.com) --><xsl:stylesheet version="1.0"xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes'/><xsl:template match="/"> <html> <body> <h2>My CD Collection</h2> <table border="1"> <tr bgcolor="#9acd32"> <th align="left">Title</th> <th align="left">Artist</th> </tr> <xsl:for-each select="catalog/cd"> <tr> <td><xsl:value-of select="title"/></td> <td><xsl:value-of select="artist"/></td> </tr> </xsl:for-each> </table> </body> </html></xsl:template></xsl:stylesheet><!-- Edited with XML Spy v2006 (http://www.altova.com) --><CATALOG> <CD> <TITLE>Empire Burlesque</TITLE> <ARTIST>Bob Dylan</ARTIST> <COUNTRY>USA</COUNTRY> <COMPANY>Columbia</COMPANY> <PRICE>10.90</PRICE> <YEAR>1985</YEAR> </CD> <CD> <TITLE>Hide your heart</TITLE> <ARTIST>Bonnie Tyler</ARTIST> <COUNTRY>UK</COUNTRY> <COMPANY>CBS Records</COMPANY> <PRICE>9.90</PRICE> <YEAR>1988</YEAR> </CD></CATALOG></xml>
  6. Sorry, that doesn't help. Notepad wrapping is on-screen only -- the line that gets stored in the file is everything up to the point where you type "Enter". You can see this if you type a line that wraps to 2 or more lines, then go to the View menu and click OFF the Word-Wrap feature. The text that looked like it was on multiple lines is really all on one single line.For reasons I can't go into here, the actual line length in the XHTML source file needs to be 72 or less, so I need to know if breaking the href value at the end of 72 bytes is legal.Thanks for trying to help though.Peter
  7. It isn't the total length I am asking about, it's the syntax of breaking the href value into two or more lines.In C, f'rinstance, to continue a character literal I code a backslash at the end of the first line and continue the literal at byte 1 of the next line. In current COBOL syntax, you can continue a character literal by coding a hyphen in column 7 and then a quote/apostrophe where you want to continue the literal on that line.I am asking IF the href value can be continued, and IF SO, then whether the syntax I showed (continue at byte 1 of next line) is legal for XHTML 1.0 Transitional.Peter[edit] I should be a little more clear: Is it legal in the XHTML SOURCE file, *not* if it is legal in the address bar of the browser. For reasons I won't go into, the SOURCE file line length has to be 72 or less, so a really long href value just does not fit on one source file line.
  8. What do you mean by that? How is Notepad going to help answer my question?Peter
  9. Can a long href value be continued onto 2 or more lines? I have a situation that requires keeping the longest line length at 72 or below, and with proper indentation used, the href value for aome anchors will not fit on the line.I coded it like this: <a href="/really/long/web/address/with?VARIABL1=VALUE1&VARIABL2=VALUE2&VARIABL3=VALUE3" />HTML Tidy gives a Warning for this line, saying "<a> discarding newline in URI reference".The DOCTYPE I am using is XHTML 1.0 Transitional.TIA for any pointers to the rules.Peter
  10. I saw the example of how to change the contents of a table cell (pure text data change). I need to *sometimes* insert an <anchor> as the data in a table cell, and sometimes leave it as " ".The function to decide which rows get an <anchor> and which rows get " " would be made in the "onload" event for the document, based on the content of the first column of the row (when first cell is " ", last cell of row should also be " ", otherwise it needs to be an <anchor>).DOM solution preferred, IE-only is OK if that's all there is.TIA for any help you can provide.Peter
  11. Thanks, that seems to work OK. How and where to intermix forms and tables isn't very well documented, IMHO. At least for this newbie, it was not apparent that the table has to be inside the form instead of vice-versa.Do you know of any url's to discussions/turorials about how to mix tables and forms correctly?Thanks again for your help.Peter
  12. Yes, that does work -- I have used that exact technique.Two questions:1. Where do you put the <form> and </form> elements? At the <tr> level before the first <td> and after the last </td>, right?2. This technique still uses the "align" attribute, which is not allowed in strict XHTML. How would this be coded in strict XHTML?Thanks for the quick reply.Peter
  13. I tried that, but it does not produce the desired effect. Yes, the three <input> buttons are grouped all together in the center of the page, but the desired arrangement is:0. In a single table row:1. First <input> on the left-hand edge of the page2. Second <input> in the center of the page3. Third <input> on the right-hand edge of the pageHow would that be accomplished? I am also trying hard to move to XHTML strict, and the "align" attribute won't work there. What substitutes for "align" for <input> buttons in XHTML strict?A secondary question is how (in XHTML strict) to arrange an arbitrary number of buttons (4,5,6,...) spaced evenly across a row, not smacked up one against the other?Thanks for trying to help, and for your patience with my ignorance.Peter
  14. This is exactly what one should NOT have to do. Absolute positioning ASSUMES that you know in advance what size your client's browser window is going to be. No one can know that. Do you (or anyone else here) know how we are supposed to align buttons within the standard? It was pointed out to me in a private communication that the separate "align" attribute is deprecated in favor of styles. OK, I can live with that, but even when I put the "align" attribute inside a "style", it seems to have no affect on buttons.Why not? Again, how is alignment of buttons supposed to happen? It makes no sense to me that an attribute like "align" has no effect on a button. Is there something in XHTML to substitute? I'll gladly switch if I can get the effect that I want.The only way I have been able to get it to work is by using separate table cells in a single table row, where the style="align: xxxx" attribute at least seems to apply to everything in the table cell.
×
×
  • Create New...