cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: fi:styling type="date
Date Thu, 08 Apr 2004 08:12:14 GMT
On Thu, 2004-04-08 at 02:49, Joerg Heinicke wrote:
> On 06.04.2004 17:32, joerg@apache.org wrote:
> > joerg       2004/04/06 08:32:03
> > 
> >   Modified:    src/blocks/forms/samples/forms form1_template.xml
> >                         form1_template_action.xml
> >   Log:
> >   Tim, forget my stupid comment about different styling in and outside of repeaters
- find the difference ;-)
> > 
> >   I only wonder why I have done the mistake multiple times
> 
> This led me to the question why the form model does not give the styling 
> hint to the pipeline. Of course, it is styling, but for the date it is 
> somewhat datatype centric. In the stylesheet there is also a comment 
> about getting the convertor's format out of the form model - this issue 
> would be solved too.
> 
> WDYT?

Something like that's needed indeed. I wouldn't insert the styling hint
though, but let the datatype and convertor produce some XML, like:

<fi:datatype type="java.lang.Date">
  <fi:convertor pattern="dd-MM-yyyy"/>
</fi:datatype>

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


Mime
View raw message