Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

rptconvert

Convert DocBook XML files into supported document formats

Syntax

rptconvert()
rptname = rptconvert (source)
rptname = rptconvert (source, format)
rptname = rptconvert (source, format, stylesheet)
...=rptconvert(...,'-view')
...=rptconvert(...,'-quiet')
...=rptconvert(...,'-verbose')
sheetlist = rptconvert('-stylesheetlist')
sheetlist = rptconvert('-stylesheetlist',format)
FORMATLIST = rptconvert('-formatlist')

Description

This function converts a DocBook XML source file created by the report-generation process to a supported document format.

rptconvert() with no input arguments launches the converter. When input arguments are passed to this function, rptconvert converts the XML document to the specified format and displays status messages to the MATLAB® Command Window.

rptname = rptconvert (source) converts the specified DocBook XML file created by the report-generation process. You can specify this file name with or without its file extension.

rptname = rptconvert (source, format) converts using the specified unique identifier code for each output format type. If you omit this argument, the XML file is converted to HTML format by default.

rptname = rptconvert (source, format, stylesheet) converts using the specified style sheet. If you omit this argument, the default style sheet for the selected format is used.

You can also pass the following flags to the input arguments:

  • ...=rptconvert(...,'-view') displays the converted document.

  • ...=rptconvert(...,'-quiet') suppresses status messages.

  • ...=rptconvert(...,'-verbose') shows detailed status messages.

  • sheetlist = rptconvert('-stylesheetlist') returns a two-column cell array. The first column of this array includes valid style sheet identifiers. The second column includes descriptions of each style sheet.

  • sheetlist = rptconvert('-stylesheetlist',format) returns an array like that returned by sheetlist = rptconvert('-stylesheetlist'). The first column of this array includes style sheet identifiers for the specified format.

  • FORMATLIST = rptconvert('-formatlist') returns a two-column cell array. The first column of this array includes valid format values, the second column includes descriptions of each format.

Examples

Retrieve a list of available HTML style sheets:

rptconvert('-stylesheetlist','html') 

Was this topic helpful?