xhtml

XHTML 2.0 Vs HTML 5

Duplicate: Why are (X)HTML 5 and XHTML 2 separate standards? HTML 5 versus XHTML 1.0 Transitional? HTML vs XHTML does it still matter? There appears to be a unified opinion that the developments in HTML 5 and support by browser vendors of HTML 5, make the adoption of XHTML 1.0 with hopes of the day of XHTML 2.0 a bad ch...

Does anyone have a script to automatically generate image tags from a directory of images?

I do a lot of slicing in Photoshop, and it's tedious to manually write an <img /> tag for each of them -- writing in the filename, checking height and width, writing the alt tags, etc. I can use Photoshop to generate the HTML, but they usually muck it up by not producing XHTML, or by wrapping it in tables, and so forth. I'm trying to m...

CSS : Margin Auto

Hi folks, how to fix the margin spaces on IE? Here the code. IF you open this file on modern browser all working great and will have a space for 20px on the bottom. But in IE nothing space. Let me know the trick to fix this thing. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-tr...

window.onload() is not firing with IE 8 in first shot

Hi all, I am trying to make my pages work correctly with IE 8, I found out from here: http://www.masykur.web.id/post/How-to-Make-Our-Website-to-be-Ready-for-IE8.aspx that, my page has to be XHTML 1.0 compliant and atleast CSS 2.1 compliant, I made my page and CSS compliant with only few warnings, but still window.onload() is not firing....

Making SVG and MathML work for PHP on Apache

I'm a little confused as to how to configure my Apache server. I'm using Apache 2.2.11 Take these 2 pages as a good example: HTML XHTML They're both one and the same syntax, but the extension is different. The first file has HTML as an extension, the second has XHTML as an extension. The server in the background has the following set...

How to parse XML in Bash?

Ideally, what I'd like to be able to do is: cat xhtmlfile.xhtml | getElementViaXPath --path='/html/head/title' | sed -e 's%(^<title>|</title>$)%%g' > titleOfXHTMLPage.txt ...

Select inputs and text inputs in HTML - Best way to make equal width?

I've got a simple form like so (illustrative purposes only) <form> <div class="input-row"> <label>Name</label> <input type="text" name="name" /> </div> <div class="input-row"> <label>Country</label> <select name="country"> <option>Australia</option> <option>USA</option> </select...

C# library for (x)html compliance

Hi, Curious if anyone has come across a C# library which will clean up invalid html. Basically our CMS has some areas where we allow users to enter in HTML, and invariably this leads to some poorly formatted code. Example - if someone puts in: <div><span>blah blah blah</div> We'd like to rip out any unterminated tags to end up with...

Is there a validating HTML parser implemented in Java?

I need to parse HTML 4 in Java. Ideally I'd like an implementation that is SAX compatible. I'm aware that there are numerous HTML parsers in for Java, however, they all seem to perform 'tidying'. In other words, they will correct badly formed HTML. I don't want this. My requirements are: No tidying. If the input document is invalid H...

is there a way to ask Rails helper functions not to produce XHTML but HTML?

I would like to use HTML 4.01 Strict, and used a DOCTYPE of it in my application template. But look like when a style sheet is included by a helper function <%= stylesheet_link_tag 'style' %> the code produced is XHTML: <link href="/stylesheets/style.css?1243210734" media="screen" rel="stylesheet" type="text/css" /> is there a ...

ToolTip - Title not working in IE 6

Hi Friends, I am using a dropdown, which having the width of 100px. But the content with in that dropdown is more than that - its not visible to the user, so i go for title (ToolTip in html). Its not working in IE 6.. What is the alternative method for this.. mouseover event is also not working in . Please help and clarify the bug <s...

Banding with xsl

I am beginning to think that the problem isn't with the banding code. Somehow count is not coming out correct. Could it be in either the xml, I have approx. 150 of the case-study nodes? Or can it be in the order in which I am doing the for-each and the if? <!-- XML --> <case-studies> <case-study> <name>Company A</name> <...

How to get this line of jQuery to validate as XHTML strict

Hello, I have this bit of jQuery at the top of my page (used for a simple image carousel): $(document).ready(function(){ $("#slider").easySlider({ prevText:'<div id="backarrow">Back</div>', nextText:'<div id="nextarrow">View Other Projects</div>', orientation:'horizontal' }); }); however, I can't get it to validate XHTML ...

XSLT html output problem with

Hi, The problem is, that my XSLT-Transformation process ( called by .NET ), doesn't leave the HTML content in the XSLT file alone ( which isn't xml-compliant like an <img> tag without an closing slash-sign ), so i'll get errors like: <pre>System.Xml.Xsl.XslLoadException: XSLT-Compilererror. ---> System.Xml.XmlException: The 'img'-Start...

How to validate an xhtml file against a specified DTD?

I have got my resource file with the help of string filePath = Assembly.GetExecutingAssembly().GetName().Name+"." + resourceFileName; Stream fileStream = Assembly.GetExecutingAssembly().GetManifestResourceStream(filePath); Now i have to use fileStream to compare my xhtml file against the DTDs that are embedded inside the resource...

XPath: find link URL by link text

I have a well formed XHTML page. I want to find the destination URL of a link when I have the text that is linked. Example <a href="http://stackoverflow.com"&gt;programming questions site</a> <a href="http://cnn.com"&gt;news&lt;/a&gt; I want an XPath expression such that if given programming questions site it will give http://stackov...

XML XSL issues

I have a xml doc with around 150 entries. I am sorting the entries in several fashions. One is alphabetical, which is displayed via XSLT and works perfectly, the others are by category and solution, which have issues with alternating banding color by row. The problem arises when I iterate over entries that are not being displayed, it se...

Rendering XHTML as MS Word Document - Headers

Hi, I generate an XHTML document and set the Mime type as "application/msword" so it opens in Word. To create a header I appear to have to reference an external file thus: <style> ... @page{mso-footnote-separator:url("**OUT_files/header.htm**") fs; mso-footnote-continuation-separator:url("OUT_files/header.htm") fcs; mso-en...

Whitespace before XML declaration from JSP

Hello I'm trying to achieve full XHTML transitional validation of my JSP output but I've hit a snag. The top of the header looks like this: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; It is included with a stat...

when can XHTML unexpectedly cause problems on IE?

since IE won't render XHTML as XHTML, but treat it as HTML instead, when can this actually cause problems for IE? ...