On 12/21/06, David Huynh <[EMAIL PROTECTED]> wrote:
> Dear Exhibit-ers,
>
> I'm experimenting with extending Exhibit's Expression language to make
> it support more spreadsheet functionality. For example, the Presidents
> example
>
> http://simile.mit.edu/exhibit/examples/presidents/presidents.html
>
> now has a new column called "days in office" that is calculated by
> summing up the durations of the presidencies of each president, as seen
> in the specification of the tabular view:
>
> add(foreach(.presidency, date-range(.inDate, .outDate, 'day')))
>
> Comments are greatly appreciated. Thanks,
I'd like string concatenation in there somehow, either (preferred) as
infix operators:
<a ex:href-content="'/presidents/' + .label + '.html'" ex:content=".label"></a>
or (probably somewhat less intuitive to most) function call style:
<a ex:href-content="concat('/presidents/' , .label, '.html')"
ex:content=".label"></a>
Already useful, though. Some basic numeric operations for rounding,
truncation and similar would also be convenient.
--
/ Johan Sundström, http://ecmanaut.blogspot.com/
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general