Re: WebObjects tags

Yeah, I tried that but it doesn't generate valid WebObjects code.
The concept between a "repetition" type WebObjects tag is that the data 
associated with that tag is an array of data that gets looped through 
and in my example the  <tr> tags generate rows of data from that array.

This is the output when I use new-blocklevel-tags:
<!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>
       Tidy Test
     </title>
   </head>
   <body bgcolor="#FFFFFF">
     <div>
       <webobject name="DataItemRepetition">
         <table>
           <tr>
             <td>
               <webobject name="DataItem"></webobject>
             </td>
           </tr>
         </table>
       </webobject>
     </div>
   </body>
</html>

What I want is:
<!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>
       Tidy Test
     </title>
   </head>
   <body bgcolor="#FFFFFF">
     <div>
         <table>
          <webobject name="DataItemRepetition">
           <tr>
             <td>
               <webobject name="DataItem"></webobject>
             </td>
           </tr>
          </webobject>
         </table>
     </div>
   </body>
</html>


Thanks
Mike

On May 23, 2004, at 8:03 PM, Cory Nelson wrote:

> 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:24:54 UTC