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. For information about supported output formats, see Supported Report Formats.

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)

rptname = rptconvert (source, format)

rptname = rptconvert (source, format, stylesheet)

In the following commands:

source is the name of the DocBook XML file created by the report-generation process. You can specify this file name with or without its file extension.

format is a unique identifier code for each output format type. If you omit this argument, the XML file is converted to HTML format by default.

stylesheet is a unique identifier for a given stylesheet. If you omit this argument, the default stylesheet 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 stylesheet identifiers. The second column includes descriptions of each stylesheet.

  • sheetlist = rptconvert('-stylesheetlist',format) returns an array like that returned by sheetlist = rptconvert('-stylesheetlist'). The first column of this array includes stylesheet 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 stylesheets:

rptconvert('-stylesheetlist','html') 
Was this topic helpful?