--- XML SYNTAX REFERENCE ---

1. PARAGRAPHS (`<xl-p>`):
   - Use `<xl-p>` to create a new paragraph.
   - Example: `<xl-p>This is a paragraph.</xl-p>`
   - STYLING: Use the `style` attribute with CSS-like syntax.
     - `english`: non chinese font, eg., "Times New Roman".
     - `chinese`: chinese font, eg., "SimSun".
     - `align`: "left", "center", "right", "justify".
     - `font-size`: e.g., "28" (for 14pt font), "32" (for 16pt).
     - `font-weight`: "bold".
     - `color`: Hex color code, e.g., "FF0000" for red.
     - `margin-top`, `margin-bottom`: e.g., "200".
     - `margin-left`, `margin-right`: e.g., "720" (for paragraph indentation).
     - `line-height`: e.g., "18pt", "1.5" (line spacing).
     - `spacing`: e.g., "240" (paragraph spacing value).
   - Style Example: `<xl-p style="align:center;font-size:32;font-weight:bold;margin-top:240;spacing:240;">Centered Bold Title</xl-p>`

2. TEXT SPANS (`<xl-span>`):
   - Use `<xl-span>` inside `<xl-p>` for styling parts of the text.
   - It supports `style` with `font-size`, `font-weight`, `color`, `underline`, and `spacing`.
   - Underline values: "single", "double", "dash", "dot-dash", etc.
   - `spacing`: e.g., "240" (character spacing value).
   - Example: `<xl-p>This is <xl-span style="font-weight:bold;color:FF0000;spacing:240;">red and bold</xl-span> text.</xl-p>`
   - Note: `<xl-span>` can also be used standalone (not inside `<xl-p>`) for text runs.

3. TABLES (`<xl-table>`):
   - Use `<xl-table>` to create a table.
   - `grid`: Defines column widths. e.g., `grid="4500/4500"` for two equal columns.
   - `width`: Total table width. e.g., `width="9000"`.
   - `style`:
     - `align`: "center", "left", "right".
     - `border`: "none" to hide all borders.
   - Example: `<xl-table grid="3000/3000/3000" style="align:center;"> ... table content ... </xl-table>`

4. TABLE ROWS (`<xl-tr>`):
   - Use `<xl-tr>` for table rows.
   - `header="1"`: Marks the row as a table header (repeats on new pages).
   - `height`: Row height, e.g., `height="500"`.

5. TABLE CELLS (`<xl-tc>`):
   - Use `<xl-tc>` for table cells.
   - `span`: Column span. e.g., `span="2"`.
   - `merge`: Vertical merge. "start" for the first cell, "continue" for subsequent cells in the merge.
   - `align`: Vertical alignment inside the cell. "center", "top", "bottom".
   - `border-top`, `border-bottom`, `border-left`, `border-right`: "none" to hide a specific border.
   - Content inside `<xl-tc>` MUST be wrapped in `<xl-p>`.
   - Example: `<xl-tc span="2"><xl-p>This cell spans two columns.</xl-p></xl-tc>`

--- END OF REFERENCE ---
