| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
result = xslt(source, style, dest)
[result,style] = xslt(...)
xslt(...,'-web')
result = xslt(source, style, dest) transforms an XML document using a stylesheet and returns the resulting document's URL. The function uses these inputs, the first of which is required:
source is the filename or URL of the source XML file. source can also specify a DOM node.
style is the filename or URL of an XSL stylesheet.
dest is the filename or URL of the desired output document. If dest is absent or empty, the function uses a temporary filename. If dest is '-tostring', the function returns the output document as a MATLAB string.
[result,style] = xslt(...) returns a processed stylesheet appropriate for passing to subsequent XSLT calls as style. This prevents costly repeated processing of the stylesheet.
xslt(...,'-web') displays the resulting document in the Help Browser.
Find out more about XSL stylesheets and how to write them at the World Wide Web Consortium (W3C) web site, http://www.w3.org/Style/XSL/.
This example converts the file info.xml using the stylesheet info.xsl, writing the output to the file info.html. It launches the resulting HTML file in the Help Browser. MATLAB has several info.xml files that are used by the Start menu.
xslt info.xml info.xsl info.html -web
![]() | xor | zeros | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |