Document template syntax
Reflex Blue uses Aspose for processing and converting MS Word document templates (e.g., quotation templates). A typical template consists of common document content and tags that describe the structure and data of the template in a format supported by Aspose. You can form these tags by simply using plain text that can span multiple paragraphs for more detail.
A tag must meet the following requirements:
- A tag must be surrounded by character strings “<<” and “>>”.
- A tag may only contain text elements.
- A tag must not be placed within document markup elements such as
StructuredDocumentTag,CustomXmlMarkup, orSmartTag.
A tag typically consists of the following elements:
- A tag name.
- An expression surrounded by parentheses.
- A series of options available for the tag, each preceded by the character “-”.
- An optional tag header used for syntax control as further explained.
- An optional comment providing a human-readable explanation, further ignored.
<<tagname [expression] -option1 -option2 ... # optional_tagheader // optional_remark >> Certain tags may have additional elements. Some tags require closing counterparts. A closing tag has the “/” character preceding its name. The name of this tag must match the name of the corresponding opening tag.
<</tagname>> Elements of tags are case-sensitive.
Tags consisting of opening and closing parts can be nested. In the case of nested tags of the same type, it may be more difficult to determine which closing part relates to which opening part. To simplify this, you can use tag headers as indicated below.
<<tagname ... #header1>><<tagname ... #header2>> ... <</tagname #header2>><</tagname #header1>> For more detailed information on using this template syntax, we refer you to the Aspose documentation.