- From: Bjoern Hoehrmann <derhoermi@gmx.net>
- Date: Fri, 18 Apr 2003 19:50:41 +0200
- To: Steve Trefethen <strefethen@borland.com>
- Cc: html-tidy@w3.org
* Steve Trefethen wrote:
>I've pulled the latest sources (at least I believe it to be the latest) from
>CVS and built libtidy.dll as of 4-17-03 and I'm trying to use it to format
>HTML that contains ASP.NET control tags without much luck. I've tried to
>use new-blocklevel-tags, new-empty-tags, new-inline-tags and new-pre-tags
>without finding the right combination (if it exists). I'm wondering if this
>is an area that is simply not currently supported by HTML Tidy?
The right combination would probably be
new-blocklevel-tags: asp:calendar \
todaydaystyle \
selectorstyle \
selecteddaystyle \
weekenddaystyle \
titlestyle \
othermonthdaystyle \
dayheaderstyle \
nextprevstyle
Using this and -i you would result (using latest CVS sources, note
<http://tidy.sf.net/bug/723772>) in:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
<meta content=
"HTML Tidy for Windows (vers 1st April 2003), see www.w3.org"
name="generator">
<title>WebForm1</title>
</head>
<body ms_positioning="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:calendar id="Calendar1" style=
"Z-INDEX: 102; LEFT: 46px; POSITION: absolute; TOP: 66px"
runat="server" backcolor="White" width="200px"
daynameformat="FirstLetter" forecolor="Black"
height="180px" font-size="8pt" font-names=
"Verdana" bordercolor="#999999" cellpadding="4">
<todaydaystyle forecolor="Black" backcolor="#CCCCCC">
</todaydaystyle>
<selectorstyle backcolor="#CCCCCC"></selectorstyle>
<nextprevstyle verticalalign="Bottom"></nextprevstyle>
<dayheaderstyle font-size="7pt" font-bold="True"
backcolor="#CCCCCC"></dayheaderstyle>
<selecteddaystyle font-bold="True" forecolor="White"
backcolor="#666666"></selecteddaystyle>
<titlestyle font-bold="True" bordercolor="Black"
backcolor="#999999"></titlestyle>
<weekenddaystyle backcolor="#FFFFCC"></weekenddaystyle>
<othermonthdaystyle forecolor="#808080"></othermonthdaystyle>
</asp:calendar>
</form>
</body>
</html>
This is friendly speaking not entirely accurate but it should at least
work.
>Often times filling in various combinations of new-* members yields an empty
>document?
Tidy does not output a new document if it encounters fatal errors and
unknown elements constitute fatal errors.
Received on Friday, 18 April 2003 13:50:57 UTC