Finn Bock wrote:
I have not yet removed the properties.xsl file from CVS. I guess it should be removed since it isn't used anymore.

I think you could leave the file there for now. It should be sufficient to inactivate the related task in the buildfile (for example putting it in an XML comment).

Does anyone know why we wrap the datatypes instances in a property instance?

No.


Actually we should strive to use a proper parse tree for
property expressions:
1. Create a few classes for the symbols in the property
  expression grammar (section 5.9 of the spec). I think we need
 as terminals
 - AbsoluteNumeric
 - RelativeNumeric
 - Color (the #NNNNN thingy)
 - String (aka Literal)
 - NCName (everything else, basically, including enum tokens and
  "inherit")
 and for the nonterminals
 - PropertyFunction
 - Some classes for the operators
2. Write a proper parser (maybe using ANTLR, at least for bootstrap)
 which produces a proper parse tree.
3. Add methods to the objects for resolving relative numeric values
 (percentages, em) and for evaluation.
4. Perhaps add constant folding to the parser.

J.Pietschmann



Reply via email to