Added user-supplied XSL style sheets for XML-based test reports.
Added new command line option: --xsl.
This commit is contained in:
parent
cdc832d2b9
commit
5f77401c49
8 changed files with 62 additions and 12 deletions
|
@ -105,9 +105,18 @@ XMLOutputter(const int currentIdentLevel,
|
|||
}
|
||||
|
||||
void
|
||||
XMLRunStarted(int parameterCount, char *runnerParameters[], time_t eventTime)
|
||||
XMLRunStarted(int parameterCount, char *runnerParameters[], time_t eventTime,
|
||||
void *data)
|
||||
{
|
||||
char *output = XMLOpenDocument(documentRoot);
|
||||
char *xslStylesheet = "style.xsl";
|
||||
if(data != NULL) {
|
||||
char *tmp = (char *)data;
|
||||
if(SDL_strlen(tmp) > 0) {
|
||||
xslStylesheet = tmp;
|
||||
}
|
||||
}
|
||||
|
||||
char *output = XMLOpenDocument(documentRoot, xslStylesheet);
|
||||
XMLOutputter(indentLevel++, YES, output);
|
||||
|
||||
output = XMLOpenElement(parametersElementName);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue