Translate HTML-like track changes into Wax 2 target format
XSweet#172 (closed) defines the target format for TCs in Wax.
TCs currently make it through the
editoria-basic.xsl step, but are dropped by the
editoria-reduce.xsl step. I feel we should do the conversion of TCs for Wax 2 format as part of the
editoria-basic.xsl step, though, before the
editoria-reduce.xsl step, then make sure it's passed through the
Here are the tag translations:
These two attributes' values should be passed through unchanged and set on all TCs in Wax:
data-id. Example values:
Additionally, these tags need to have their values not just passed through but transformed:
datetimeneeds to be converted into the datetime format Wax uses, then set as
data-dateon every TC
data-oldtype, when present, need to be converted to Wax's target format and set as
data-before, respectively. Not only does the format of the values need to be modified, but we probably need to decide what formatting is worth saving. That may be a Amnet-specific step. For example: you may want to save underline, bolding, italics, and ignore everything else.
@christos I have questions about these three attributes and how to handle them:
data-user: could we also pass the
data-authorvalue from XSweet into this attribute and have it serve as a user unique identifier, in addition to setting it as into
data-group: what are the possible values? This is either
"main"or what? Can Wax 2 assign this or would it be XSweet?
datetime: @christos what format does Wax use for date time? Does MS Word's timestamp need to be converted? E.g.