Using HTML and CSS#
HTML markup and CSS styling are a first class citizen in XTS.
See this example:
<Layout xmlns="urn:speedata.de/2021/xts/en"
xmlns:sd="urn:speedata.de/2021/xtsfunctions/en">
<Stylesheet>
p {
font-family: serif;
}
.regular {
font-feature-settings: "lnum","tnum" ;
}
.smcp {
font-feature-settings: "smcp" ;
}
</Stylesheet>
<Record element="data">
<PlaceObject>
<Textblock>
<Paragraph class="regular">
<Value>Text with table figures 1234567890</Value>
</Paragraph>
<Paragraph class="smcp">
<Value>Text with small caps 1234567890</Value>
</Paragraph>
</Textblock>
</PlaceObject>
</Record>
</Layout>
Within <Value>
use can use HTML formatting: