xhtml

Official XSLT validator?

牧云@^-^@ 提交于 2019-12-03 23:30:46
Is there any official XSLT validator, like http://validator.w3.org/ for HTML & XHTML? I know http://validator.w3.org/ can also be used to validate XML and XSL documents. But they are validated as XML structures. In valid XHTML, for example, <span><div>...</div></span> is invalid, as block elements should not appear inside in-line elements. So, is there a convenient way, to directly validate the XSL document? (i guess we may combine XML and XSL, output the XHTML, then validate it. But this is not directly and not convenient.) Thanks! Mathias Müller I assume that by validating XSLT stylesheets

Uploading files using HTML file input on iphone

☆樱花仙子☆ 提交于 2019-12-03 22:59:55
I am creating a web form for uploading small movie clips to a HTTP server. However, while my HTML file input control gets shown on an ipod touch, the button is completely disabled and I cannot click it to upload files. What do I have to do to use the input control to upload files (e.g. movie clips or pictures) to my HTTP server. My page is XHTML MP 1.2 compliant. Gustav Meirinho IOS6 now allows it: http://agileleague.com/blog/hidden-gem-of-ios6-file-uploads-in-mobile-safari/ I tested and it works. Cheers! 来源: https://stackoverflow.com/questions/1577003/uploading-files-using-html-file-input-on

XHTML namespace issues with cssselect in lxml

落爺英雄遲暮 提交于 2019-12-03 22:17:03
I have problems using cssselect with a XHTML (or XML with namespace). Although the documentation says how to use namespace in csselect I do not understand it: cssselect namespaces My Input XHTML string: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Teststylesheet</title> <style type="text/css"> /*<![CDATA[*/ ol{margin:0;padding:0} /*]]>*/ </style> </head> <body> </body> </html> My Python Script: parser = etree.XMLParser() tree = etree.fromstring(xhtmlstring, parser)

4 column CSS layout - Fluid

喜欢而已 提交于 2019-12-03 22:12:47
问题 I'm going around in circles trying to figure this out. HTML/CSS: <style type='text/css'> #content { padding: 20px; background: #F3F6F7; } .inner-box { background: #fff; } .inner-box .col { background:#eee; display:block; float:left; margin:1%; padding:20px; width:23%; } </style> <div id="content"> <div class="inner-box clearfix"> <div class="col col-1"> COl1 </div> <div class="col col-2"> COl2 </div> <div class="col col-3"> COl3 </div> <div class="col col-4"> COl4 </div> </div> </div> I

How to add site search function to website using XHTML/HTML? [closed]

扶醉桌前 提交于 2019-12-03 21:37:07
I really want to learn how to make my own search engine for my site. I have the defined buttons and labels, but it doesn't search. I can't figure out the HTML or XHTML code for actually searching the site. This is the code I have so far: <p class="search"> <label>SEARCH</label> <input name="search" type="text" class="txt" /> <input name="search-btn" type="submit" class="btn" value="SEARCH" /> </p> Thanks! You cannot provide a search function with just HTML and XHTML, unless you're just using a standardized form to get some external search engine (like Google) to do the work. It is possible to

Nicely formatted source code

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 21:06:02
The source code is already formatted using newline characters and whitespace. Goals: keep source formatting as long as lines fit in the screen horizontally (e.g. pre) show line numbers on the left side aligned with the lines (e.g. a table with line numbers in a separate column) break lines into multiple lines when they do not fit in the screen (e.g. doable with white-space: pre-wrap) never merge whitespace or newline characters (e.g. pre does that) for lines that break either show the line number multiple times or just once at the top (e.g. align the line numbers top) for lines that break show

How to link youtube video without captions?

妖精的绣舞 提交于 2019-12-03 20:58:05
问题 Is it possible to link youtube videos in HTML code without showing it's captions (subtitles)? Let's say I have following video: http://www.youtube.com/watch?v=kTvHIDKLFqc . It has default english subtitles. However, when linking this video, I want to load it without them. Is there a possibility to do so with some kind of parameter in video? I found this link with description how to do it, but it doesn't seem to work. If I try to use following format of link, it shows captions anyway: http:/

HTML form layout with CSS

别等时光非礼了梦想. 提交于 2019-12-03 20:40:35
问题 I need to build a form for data input, let's say FirstName and LastName. I know how to do this with a table. In the first <td> I'd put a label tag and in the second I'd use an input tag with a type="text" attribute. This way the labels and textboxes would be lined up in two columns. Is there a way to do this with CSS? 回答1: Here's a tutorial for this. 回答2: You do NOT need tables to make great HTML forms. In fact, you don't want them! Try this code at home and see what you think.. <head> <meta

Which browsers support the <embed> and <object> tags?

我们两清 提交于 2019-12-03 20:37:37
问题 I am working on a department website that needs to be standards compliant (xhtml 1.0 transitional), but embedded flash keeps breaking the validation. We use the <embed> tag because we need to support most major browsers. We can't use external tools, since the site is managed through a system and the admins don't like us putting extra tools (like JavaScript libraries etc) that could interfere with their template engine. How widely supported is the object tag? Is it safe to use only the <object

How to create a gradient background for an HTML page

情到浓时终转凉″ 提交于 2019-12-03 20:30:17
问题 I am in the process of learning HTML. What is the best way to create a gradient background for an HTML page? So far this is what I have as a background: body style="background-color:Powderblue" I know this is not a gradient. 回答1: This cannot be done in html but it can in css (specifically css3). You would have to add a class to the body of your page or a div within it that surrounds all of your content. You can use a css gradient generator to get the code to put in your css class. Here is a