Josdelsan / Proteus

Proteus is a configurable tool for editing structured documents, based on the concept of archetypes.
BSD 3-Clause "New" or "Revised" License
28 stars 3 forks source link

Develop unit-based properties #28

Open amador-duran-toro opened 2 weeks ago

amador-duran-toro commented 2 weeks ago

Some archetypes may need unit-based properties, i.e. properties with a numeric value representing some dimension such as time, length or weight. These properties must store not only a numerical value, but the corresponding unit from a enum-like list of units (see screenshot from REMUS).

Tentative XML syntax:

<unitProperty name="maximum_lifetime" units="tbd year month week day hour minute second milisecond">  
   <value>7</value>  
   <unit>day</unit>  
</unitProperty>

imagen