# Sample XHTML 1.1 plus MathML 2.0 plus SVG 1.1 document

## XHTML 1.1 sample (ruby)

Simple ruby, with `rp` fall-back Simple ruby, without `rp` fall-back Complex ruby Complex ruby, with multiple ruby texts

Multilingual ruby example: Hebrew base (right-to-left) with Japanese katakana ruby (right-to-left, quite unusual but occasionally used) and English ruby (left-to-right)

## MathML sample

Math expression $y=\frac{1}{\sqrt{{x}^{2}+1}}$ inside an XHTML paragraph.

Math expression in display style:

$det|\begin{array}{ccccc}\hfill {c}_{0}\hfill & \hfill {c}_{1}\hfill & \hfill {c}_{2}\hfill & \hfill \dots \hfill & \hfill {c}_{n}\hfill \\ \hfill {c}_{1}\hfill & \hfill {c}_{2}\hfill & \hfill {c}_{3}\hfill & \hfill \dots \hfill & \hfill {c}_{n+1}\hfill \\ \hfill {c}_{2}\hfill & \hfill {c}_{3}\hfill & \hfill {c}_{4}\hfill & \hfill \dots \hfill & \hfill {c}_{n+2}\hfill \\ \hfill ⋮\hfill & \hfill ⋮\hfill & \hfill ⋮\hfill & \hfill \hfill & \hfill ⋮\hfill \\ \hfill {c}_{n}\hfill & \hfill {c}_{n+1}\hfill & \hfill {c}_{n+2}\hfill & \hfill \dots \hfill & \hfill {c}_{2n}\hfill \end{array}|>0$

## Mixed sample

XHTML and MathML inside SVG (via `foreignObject`):

Inside the `foreignObject` element, math expression like $y=\frac{1}{\sqrt{{x}^{2}+1}}$ can be put inside XHTML as well as ruby like WWW World Wide Web .

The base direction of the following paragraph is `rtl`.

$det|\begin{array}{ccccc}\hfill {c}_{0}\hfill & \hfill {c}_{1}\hfill & \hfill {c}_{2}\hfill & \hfill \dots \hfill & \hfill {c}_{n}\hfill \\ \hfill {c}_{1}\hfill & \hfill {c}_{2}\hfill & \hfill {c}_{3}\hfill & \hfill \dots \hfill & \hfill {c}_{n+1}\hfill \\ \hfill {c}_{2}\hfill & \hfill {c}_{3}\hfill & \hfill {c}_{4}\hfill & \hfill \dots \hfill & \hfill {c}_{n+2}\hfill \\ \hfill ⋮\hfill & \hfill ⋮\hfill & \hfill ⋮\hfill & \hfill \hfill & \hfill ⋮\hfill \\ \hfill {c}_{n}\hfill & \hfill {c}_{n+1}\hfill & \hfill {c}_{n+2}\hfill & \hfill \dots \hfill & \hfill {c}_{2n}\hfill \end{array}|>0$