xhtml-1.0-strict

How to let JSF render conform XHTML 1.0 strict?

限于喜欢 提交于 2019-12-10 19:02:39
问题 I need to develop a web application which has to be compliant with "Stanca act" (Legge Stanca). I've used jsf2.0 (Mojarra ) + primefaces 3.2 so far but I have validation problems when I use <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> In particular for an empty form page the following generated html code: <form id="j_idt16" name="j_idt16" method="post" action="/econsob/faces/prova_stanca.xhtml" enctype="application/x-www-form

iframes not valid in XHTML Strict

烂漫一生 提交于 2019-12-10 17:48:23
问题 I am building a website with a Google Map, which by default generates this code: <iframe width="550" height="500" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.co.uk/maps?f=q&source=s_q&hl=en&geocode=&q=Amber,+115+Portswood+Road,+Southampton,+SO17+2FX,+United+Kingdom&aq=0&sll=50.923556,-1.394663&sspn=0.006709,0.01929&vpsrc=6&ie=UTF8&hq=Amber,&hnear=115+Portswood+Rd,+Southampton+SO17+2,+United+Kingdom&t=m&ll=50.923178,-1.393676&spn=0.012985,0.027466&z

How do I validate noscript+meta refresh tag in xHTML?

天大地大妈咪最大 提交于 2019-12-10 13:12:50
问题 For visitors that don't support JavaScript, I'm redirecting them to a certain page - "js.html". For this, I have the following in all my files: <noscript> <meta http-equiv="Refresh" content="0;URL=js.html" /> </noscript> Of course, this doesn't validate in XHTML as noscript must be placed in <body> . But when I place that code in the body of my document, I get another error, because meta tags can only be used in the <head> section, so I'm kind of stuck in an infinite loop here. Is there a way

XHTML 1.0 Strict (or Transitional) compliance in ASP.NET 2.0/3.5

旧时模样 提交于 2019-12-10 01:56:42
问题 Are there any good methods for getting ASP.NET 2.0 to validate under the XHTML 1.0 Strict (or Transitional) DTD? I'm interested to hear some ideas before I hack up the core of the HTTP response. One major problem is the form tag itself, this is the output I got from W3C when I tried to validate: Line 13, Column 11: there is no attribute "name". <form name="aspnetForm" method="post" action="Default.aspx" onsubmit="javascript That tag is very fundamental to ASP.NET, as you all know. Hmmmm. 回答1:

How do you specify your Content Type in ASP.NET WebForms?

♀尐吖头ヾ 提交于 2019-12-08 16:37:31
问题 I'm specifying my doctype as xhtml strict, but it's being sent over the wire as a content type of text/html. I'd like to specify that the content type is application/xhtml+xm, but I can't figure out where, or if, I can configure this from within my application 回答1: You can specify it in the @ page attributes section, like this: <%@ Page ContentType="application/xhtml+xm" %> ...more on MSDN. 回答2: In your code behind file, during the Page_Load event, try addind the following code: Response

XSLT <xsl:output> support in main browsers

戏子无情 提交于 2019-12-08 05:13:21
问题 I want to transform an input XML document into XHTML via XSLT. In my stylesheet I'm using xsl:output with the following attributes: <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" /> The transformation into XTHML 1.0 Strict works fine when I use the XSLT Processor in editors like XML Copy Editor or Editix. It works as expected when I use the command line

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:

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

喜欢而已 提交于 2019-12-06 10:48:34
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: Afghanistan +93 Albania +355 Algeria +213 I have introduced the span elements to achieve this with CSS

How can I produce an nested list in XHTML strict without giving the nested lists first element a double bullet?

一曲冷凌霜 提交于 2019-12-05 07:20:02
I'm trying to create a list nested within a list using XHTML Strict 1.0. The problem is that with XHTML strict a ul element can not be nested directly within another ul element. Thus, the inner ul element has to be nested within a li element. However, when doing it this way, the first row of the inner list get a dubble bullet, as shown in the example below. So now B gets a double bullet since the outer and inner li elements both create a bullet. Do anyone know how to fix this in CSS so that B is intended as a nested list, but only gets one bullet? Thanx! A B C D E F L H XHTML for the above

XHTML 1.0 Strict (or Transitional) compliance in ASP.NET 2.0/3.5

一曲冷凌霜 提交于 2019-12-05 01:21:38
Are there any good methods for getting ASP.NET 2.0 to validate under the XHTML 1.0 Strict (or Transitional) DTD? I'm interested to hear some ideas before I hack up the core of the HTTP response. One major problem is the form tag itself, this is the output I got from W3C when I tried to validate: Line 13, Column 11: there is no attribute "name". <form name="aspnetForm" method="post" action="Default.aspx" onsubmit="javascript That tag is very fundamental to ASP.NET, as you all know. Hmmmm. ASP.NET 2.0 and above can indeed output Strict (or Transitional) XHTML. This will resolve your 'there is no