The Generate XHTML workflow action converts a Content XML (.cxml) file into an XHTML file (.xhtml).
Generate XHTML is divided into three tabs: General, Links, and CSS.
General
Use this tab to specify the input, output, resources, and required metadata.
| Field | Description |
|---|---|
| Input | The file path to the input Content XML file (.cxml). Click the Choose File |
| Output | The path to the output (.zip) file. Enter a name or click the Choose File The default output is output-1.zip. |
| Resources |
The path to the core XZIP resource package (.xzip). Your Solutions Consultant will make resources available for you to download from the Typefi FTP. Click the Choose File |
| Required Metadata |
Metadata is data about data. That is, if an e-book is considered data, then the information describing the e-book, like the title and creator, would be metadata. Use this section to enter the required metadata elements that an XHTML file needs to be successfully validated. While a browser may render this file without the metadata, an editing tool may flag its absence as an error or warning. Note: Leaving the Required metadata field empty may cause third-party validation to fail. |
| Title | Enter the title element (<dc:title>). For more information about adding a title, see the Dublin Core Metadata Initiative. |
Links
Use this tab to configure how images (JPEG, PNG, and GIF) are exported.
| Field | Description |
|---|---|
| Optimize images | Select Optimize images to optimize images for the generated webpage. Optimize images is deselected by default. |
| Output format |
Specify the output format. Choosing a format converts all images to the selected format. Options include:
The default value is Automatic. |
| Resolution (ppi) |
Choose the resolution of the images in pixels per inch (ppi). While operating systems have standardised on either 72 ppc or 96 ppi, mobile devices have not. Options include:
The default resolution is 72, which is standard for webpages. |
| JPEG quality | Specify the image quality. Enter a value between 1-100. Higher values yield better quality. Default is 80. |
| PNG quality | Specify the image quality. Enter a value between 1-100. Higher values yield better quality. Default is 80. |
| GIF palette |
Adaptive: Creates a palette using a representative sample of colours in the graphic without any dithering (mixing of small spots of colours to simulate additional colours). Web: Creates a palette of web-safe colours that are a subset of Windows and macOS system colours. The default palette is Adaptive. |
CSS
Use this section to load Cascading Style Sheets (CSS) files that control the appearance and layout of your XHTML content.
| Field | Description |
|---|---|
| Custom CSS | The file path to one or more external Cascading Style Sheets (.css). Click the Choose File |
| Include built-in CSS | Select Include built-in CSS to apply Typefi’s built-in cascading style sheet (.css), which provides basic styling rules (for example, allcaps and smallcaps) for your XHTML output. Note: Uncheck Include built-in CSS to take full control of the styling by providing your own Custom CSS file. Include built-in CSS is selected by default. |
You can also use workflow variables to specify input fields. To insert a workflow variable, click the lightning bolt icon and choose a variable from the pop-up menu.
Comments
0 comments
Please sign in to leave a comment.