forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ross Gardler <rgard...@apache.org>
Subject Re: genericMarkup contract
Date Sat, 26 Nov 2005 05:13:13 GMT
Diwaker Gupta wrote:
> Hi devs, Thorsten
> 
> I'm using the genericMarkup contract, and was wondering if it could be 
> simplified. In particular (and I copy this from index.fv in seed-v2), lets 
> say I want to insert a <hr/> somewhere in my template. For that, I need this 
> XML snippet:
> 
> 	  <forrest:contract name="genericMarkup">
>             <forrest:properties contract="genericMarkup">
>               <forrest:property name="genericMarkup">
>                 <hr/>
>               </forrest:property>
>             </forrest:properties>
>           </forrest:contract>

 From what I understand, it is soon to be:

  	  <forrest:contract name="genericMarkup">
                <forrest:property name="genericMarkup">
                  <hr/>
                </forrest:property>
           </forrest:contract>

> I find that way too verbose, and confusing. Why is <hr/> sitting in a 
> property?

If it weren't in a property it would have to be in XSL, which would be 
more verbose wouldn't it?

> And while I was looking at it, I had another question: since 
> <forrest:properties> is a child element of a <forrest:contract>, why do we

> need that contract attribute? 

It's gone in the planned POJO version I think (see above). Thorsten will 
correct me if my understanding is incorrect.

Ross

Mime
View raw message