[TxMt] xml-stylesheet in web preview

Björn Jadelius b at jadelius.se
Sat Apr 2 13:29:59 UTC 2011


Hello.

The following document with a xml-stylesheet is not formatted in TextMate's web preview. It works in Safari, but only if the file extension is xhtml. My guess is that the the document sent to preview is served as html and not xhtml.  Is there a way to make TextMate's web preview to understand that this is xhtml?
--------------------------------------------
<?xml-stylesheet href="format.css" type="text/css"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Title</title>
</head>

<body>
	<h1>Hello</h1>
	<p>This page is not formatted according to format.css in TextMates web preview. It works well in Safari and Firefox</p>
</body>
</html>
--------------------------------------------
Björn Jadelius
Boll smedja
Karlavagnsgatan 5
417 56 Göteborg 

070-2504749
bjorn at bollsmedja.se










More information about the textmate mailing list