io7m | single-page | multi-page | epub | xstructural 2.0.1
3.5. Validate-XHTML
Previous
3. Command-Line Interface
Up
4. Maven Plugin
Next

# 3.6. XHTML

- 3.6.1. Name
- 3.6.2. Description
- 3.6.3. Examples

## 3.6.1. Name

1
xhtml - Produce XHTML

## 3.6.2. Description

1
The xhtml command produces XHTML pages for the given input document.

### 3.6.2.2. Parameters

Parameter | Type | Required | Description
--- | --- | --- | ---
--brandingFile | Path | false | The path to the branding document.
--copyResources | Boolean | false | If set to true, resources such as the default Structural CSS files will be copied to the output directory.
--messagesFile | Path | false | A file that will contain XSLT debugging messages.
--traceFile | Path | false | A file that will contain XSLT trace messages.
--typeFile | Path | true | The path to the type description file.
--sourceFile | Path | true | The path to the input document.
--outputDirectory | Path | true | The directory to which output files will be written.
--stylesheet | Stylesheet | false | The XSLT stylesheet that will be used.

## 3.6.3. Examples

### 3.6.3.1. Example

    $ xstructural xhtml \
      --sourceFile com.io7m.xstructural.documentation/target/documentation/main.xml \
      --stylesheet SINGLE_FILE \
      --outputDirectory out
    xstructural: XSValidator: INFO: validate (xstructural) com.io7m.xstructural.documentation/target/documentation/main.xml
    xstructural: XSTransformer: INFO: copy resource reset.css
    xstructural: XSTransformer: INFO: copy resource structural.css
    xstructural: XSXHTMLValidator: INFO: validate (xhtml 1.1) out/index.xhtml

    $ ls -alF out/
    total 116
    drwxr-xr-x  2 xs xs  4096 Apr 28 10:26 ./
    drwxr-xr-x 14 xs xs  4096 Apr 28 10:26 ../
    -rw-r--r--  1 xs xs 30783 Apr 28 10:26 index.xhtml
    -rw-r--r--  1 xs xs   272 Apr 28 10:26 messages.log
    -rw-r--r--  1 xs xs  6138 Apr 28 10:26 reset.css
    -rw-r--r--  1 xs xs  6881 Apr 28 10:26 structural.css
    -rw-r--r--  1 xs xs 57239 Apr 28 10:26 trace.xml

    $ xstructural xhtml \
      --sourceFile com.io7m.xstructural.documentation/target/documentation/main.xml \
      --stylesheet MULTIPLE_FILE \
      --outputDirectory out
    xstructural: XSValidator: INFO: validate (xstructural) com.io7m.xstructural.documentation/target/documentation/main.xml
    xstructural: XSTransformer: INFO: copy resource reset.css
    xstructural: XSTransformer: INFO: copy resource structural.css
    xstructural: XSXHTMLValidator: INFO: validate (xhtml 1.1) out/d2e104.xhtml
    xstructural: XSXHTMLValidator: INFO: validate (xhtml 1.1) out/d2e298.xhtml
    xstructural: XSXHTMLValidator: INFO: validate (xhtml 1.1) out/d2e300.xhtml
    xstructural: XSXHTMLValidator: INFO: validate (xhtml 1.1) out/d2e12.xhtml
    xstructural: XSXHTMLValidator: INFO: validate (xhtml 1.1) out/d2e163.xhtml
    xstructural: XSXHTMLValidator: INFO: validate (xhtml 1.1) out/d2e28.xhtml
    xstructural: XSXHTMLValidator: INFO: validate (xhtml 1.1) out/index-m.xhtml
    xstructural: XSXHTMLValidator: INFO: validate (xhtml 1.1) out/index.xhtml
    xstructural: XSXHTMLValidator: INFO: validate (xhtml 1.1) out/d2e14.xhtml

    $ ls -alF out/
    total 172
    drwxr-xr-x  2 xs xs  4096 Apr 28 10:35 ./
    drwxr-xr-x 14 xs xs  4096 Apr 28 10:26 ../
    -rw-r--r--  1 xs xs  7187 Apr 28 10:35 d2e104.xhtml
    -rw-r--r--  1 xs xs  5251 Apr 28 10:35 d2e12.xhtml
    -rw-r--r--  1 xs xs  5914 Apr 28 10:35 d2e14.xhtml
    -rw-r--r--  1 xs xs  7405 Apr 28 10:35 d2e163.xhtml
    -rw-r--r--  1 xs xs  8016 Apr 28 10:35 d2e28.xhtml
    -rw-r--r--  1 xs xs  3175 Apr 28 10:35 d2e298.xhtml
    -rw-r--r--  1 xs xs  3366 Apr 28 10:35 d2e300.xhtml
    -rw-r--r--  1 xs xs  5746 Apr 28 10:35 index-m.xhtml
    -rw-r--r--  1 xs xs 30783 Apr 28 10:26 index.xhtml
    -rw-r--r--  1 xs xs     0 Apr 28 10:35 messages.log
    -rw-r--r--  1 xs xs  6138 Apr 28 10:35 reset.css
    -rw-r--r--  1 xs xs  6881 Apr 28 10:35 structural.css
    -rw-r--r--  1 xs xs 60237 Apr 28 10:35 trace.xml

3.5. Validate-XHTML
Previous
3. Command-Line Interface
Up
4. Maven Plugin
Next
io7m | single-page | multi-page | epub | xstructural 2.0.1