Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
XSLTUtils Class Reference

#include <XSLTUtils.h>

Public Member Functions

 XSLTUtils ()
 
 ~XSLTUtils ()
 
bool SetInput (const std::string &input)
 Set the input XML for an XSLT transform from a string. This sets up the XSLT transformer with some input XML from a string in memory. The input XML should be well formed.
 
bool SetStylesheet (const std::string &stylesheet)
 Set the stylesheet (XSL) for an XSLT transform from a string. This sets up the XSLT transformer with some stylesheet XML from a string in memory. The input XSL should be well formed.
 
bool XSLTTransform (std::string &output)
 Perform an XSLT transform on an inbound XML document. This will apply an XSLT transformation on an input XML document, giving an output XML document, using the specified XSLT document as the transformer.
 

Constructor & Destructor Documentation

◆ XSLTUtils()

XSLTUtils::XSLTUtils ( )

◆ ~XSLTUtils()

XSLTUtils::~XSLTUtils ( )

Member Function Documentation

◆ SetInput()

bool XSLTUtils::SetInput ( const std::string & input)

Set the input XML for an XSLT transform from a string. This sets up the XSLT transformer with some input XML from a string in memory. The input XML should be well formed.

Parameters
inputthe XML document to be transformed.

◆ SetStylesheet()

bool XSLTUtils::SetStylesheet ( const std::string & stylesheet)

Set the stylesheet (XSL) for an XSLT transform from a string. This sets up the XSLT transformer with some stylesheet XML from a string in memory. The input XSL should be well formed.

Parameters
inputthe XSL document to be transformed.

◆ XSLTTransform()

bool XSLTUtils::XSLTTransform ( std::string & output)

Perform an XSLT transform on an inbound XML document. This will apply an XSLT transformation on an input XML document, giving an output XML document, using the specified XSLT document as the transformer.

Parameters
inputthe parent containing the <tag>'s.
filenamethe <tag> in question.

The documentation for this class was generated from the following files: