xhtml

How to achieve two different alignments inside a html option tag?

别等时光非礼了梦想. 提交于 2019-12-08 01:44:36
问题 I have a select html tag with country calling codes. <select name="countryCallingCode" id="countryCallingCode"> <option value="1"><span class="name">Afghanistan</span><span class="code">+93</span></option> <option value="2"><span class="name">Albania</span><span class="code">+355</span></option> <option value="3"><span class="name">Algeria</span><span class="code">+213</span></option> </select> I want the name to be left aligned and the code to be right aligned. Presentation should look like:

Transform XHTML article to Docbook

坚强是说给别人听的谎言 提交于 2019-12-08 00:26:01
问题 I need to transform some article about information technologies from format XHTML or HTML in to format Docbook. Then i need to transform the Docbook format in to pdf. But i have got a problem with the first sentence. I dont now how to transform XHTML/HTML to Docbook. Thank you 回答1: transform some article about information technologies from format XHTML or HTML in to format Docbook. This is kind of doing the reverse of DocBook XSL transformation. Normally, we convert the DocBook xml source

Replacing style= attributes with tags in XHTML via XSLT

六眼飞鱼酱① 提交于 2019-12-07 20:26:48
问题 Say I have the following in an XHTML page: <span style="color:#555555; font-style:italic">some text</span> How would I go about transforming this to: <span style="color:#555555;"><em>some text</em></span> 回答1: This is not as easy as it seems since XSLT is not the best tool for string parsing - but that's exactly what you need to get the contents of the style attribute right generically. However, depending on the complexity of your input, something like this might be enough (I tried to be as

What are pros and cons to use vendor-specific extesions , which are not included in W3C specifications?

霸气de小男生 提交于 2019-12-07 19:39:29
问题 I edited my question What is a vendor specific extension? A vendor specific extensions can start with a “-” (dash) or a “_” (underscore), usually followed by an abbreviation of the company or the browser project the extension is specific for, f.i. “-moz-” for Mozilla browsers, or “-webkit-” for WebKit based browsers. This vendor specific prefix is followed by the property name. A good example of this is -webkit-border-radius, or -moz-border-radius. IE has 3 things .htc file support (it's same

XHTML still harmful?

假装没事ソ 提交于 2019-12-07 17:29:47
问题 I'm starting a project where the client has mandated the use of XHTML 1.0 Strict. Now I'm wondering whether the problems described in Sending XHTML as text/html Considered Harmful are still current and whether I should try to convince the client that this (very strongly stated) requirement is counterproductive. Does Internet explorer handle application/xhtml+xml correctly by now? 回答1: IE9 handles application/xhtml+xml , including SVG inside it, one of the main reasons to want to use this

Displaying xhtml content in a jsp page

六眼飞鱼酱① 提交于 2019-12-07 16:29:20
I have a JSP page that displays XHTML content. I have included the following lines at the top of my JSP page: <?xml version="1.0" encoding="UTF-8"?> <% response.setContentType("application/xhtml+xml"); %> <% request.setCharacterEncoding("UTF-8"); %> If I change the above line to: <?xml version="1.0" encoding="UTF-8"?> <% response.setContentType("application/xhtml+xml;charset=UTF-8"); %> <% request.setCharacterEncoding("UTF-8"); %> The page stops rendering and throws XML parsing error such as "semi colon expected somewhere in my javascript" or "processing instruction not found" etc etc.

Why is my element with position:absolute always showing up underneath position:relative items?

喜你入骨 提交于 2019-12-07 16:08:52
问题 It's all in the question but here's a simple example <!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" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" /> <title>TEST</title> </head> <body style="margin:0;padding:0"> <div style="background-color:#eeeeee;margin:auto;height:500px;width:500px"> <div style="position:relative">

Keyboard Focus Breaking with Radio Button Group

瘦欲@ 提交于 2019-12-07 14:56:11
问题 It seems simple, but this has been a bit of a headscratcher for me. Given the following (valid xhtml transitional) code: <form action="weird.html"> <label for="test1">T1</label> <input type="radio" id="test1" name="test" value="1" /> <label for="test2">T2</label> <input type="radio" id="test2" name="test" value="2" /> <label for="test3">T3</label> <input type="radio" id="test3" name="test" value="3" /> <label for="test4">T4</label> <input type="radio" id="test4" name="test" value="4" />

mobile: html5 vs xhtml [closed]

扶醉桌前 提交于 2019-12-07 13:13:18
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I am building a mobile app (hybrid mobile web app but with a native shell) with most users on the iphone (some on the blackberry) and

HTML page to XHTML with TagSoup

亡梦爱人 提交于 2019-12-07 12:36:55
问题 Sorry if this is too simple, but I simply couldn't find a tutorial nor the documentation of the Java version of TagSoup. Basically I want to download an HTML webpage from the internet and turn it into XHTML, contained in a string. How can I do this with TagSoup? Thanks! 回答1: Something like this: wget -O - example.com/bad.html | java -jar tagsoup.jar Or, from Java: To parse HTML: Create an instance of org.ccil.cowan.tagsoup.Parser Provide your own SAX2 ContentHandler Provide an InputSource