Yee-Ting Li wrote:
> Hi David,
>
> thanks for the reply :)
>
> it appears to work :) i defined an invisible table within the  
> ex:role="view" div and the substitution of (A) into column (B).  
> however, i still have a couple of issues:
>
> - i'm pretty sure that column (B) is a valid number. however, sorting  
> does not appear to be numeric but alphanumeric :(
>   
Try declaring the value type for that property in your data file, e.g.,

    {
       items: [
          ...
       ],
       properties: {
          "price": {
             valueType: "number"
          }
       }
    }


> - what is the difference between ex:formats and ex:columnFormats?  
> which should i use? if i define this invisible table, the contents of  
> ex:columnFormats appear to be ignored :( given the above, how do i  
> specify the format of the column?
>   
If you define that table, then use ex:formats and define the value types 
for the properties (see above).

    <div ex:role="view" ex:viewClass="Tabular" ...>
       <table>
          <tr>
             <td ex:formats="number { decimal-digits: 2 }">
                Only <span ex:content=".price"></span>!!!
             </td>
             ...
          </tr>
       </table>
    </div>

I haven't tested that case, so let me know if it works for you.

David

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to