W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2004

Re: WebObjects tags

From: Cory Nelson <phrosty@gmail.com>
Date: Sun, 23 May 2004 18:03:14 -0700
Message-ID: <9b1d0614040523180310f2e9fc@mail.gmail.com>
To: Michael Engelhart <mengelhart@eztrip.com>
Cc: html-tidy@w3.org

put it in new-blocklevel-tags

On Sun, 23 May 2004 19:48:46 -0500, Michael Engelhart
<mengelhart@eztrip.com> wrote:
> 
> Hi -
> 
> I'm trying to use Tidy to clean the HTML that the WebObjects builder
> tool generates.    WebObjects only has a single added element to the
> HTML syntax which is: <webobject />
> 
> But, there are many instances where a <webobject /> tag wraps a
> <tr><td></td></tr> set of tags in a table to repeat through a list of
> elements to generate a table.
> 
> Here's an example:
> 
> <html>
>   <head>
>     <title>
>       Tidy Test
>     </title>
>   </head>
>   <body bgcolor="#FFFFFF">
>   <div>
>     <table width="75%">
>       <webobject name="DataItemRepitition">
>       <tr>
>         <td>
>           <webobject name="DataItem" />
>         </td>
>       </tr>
>          </webobject>
>     </table>
>        </div>
>   </body>
> </html>
> 
> With the following Tidy config data:
> 
> new-inline-tags: webobject
> output-xhtml: true
> doctype: strict
> indent: yes
> write-back: true
> tidy-mark: false
> show-warnings: false
> quiet: true
> wrap: 0
> 
> Tidy converts this to the following:
> 
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
>   <head>
>     <meta name="generator" content="WebObjects 5.2" />
>     <title>
>       Untitled
>     </title>
>   </head>
>   <body bgcolor="#FFFFFF">
>     <div>
>       <webobject name="DataItemRepitition"></webobject>
>       <table width="75%">
>         <tr>
>           <td>
>             <webobject name="DataItemRepitition"><webobject
> name="DataItem"></webobject></webobject>
>           </td>
>         </tr>
>       </table>
>     </div>
>   </body>
> </html>
> 
> I saw in the documentation somewhere that what I'm trying to do may not
> be possible but I'm wondering if there is any workaround such as a way
> to "ignore" the <webobjects> tags possibly?   I've tried all the
> different new-* tags but they all had the problems in my tests.
> 
> Any help would be appreciated.
> 
> Thanks
> 
> Mike
> 
> Mike Engelhart
> EZTrip.com
> http://www.eztrip.com/
>
Received on Sunday, 23 May 2004 21:03:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:55 GMT