Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
XSL to transform a validation result XML from the Windows Application Certification Kit into a JUnit XML which can be parsed by common Continuous Integration systems such as Jenkins. Copyright (C)2013 doo GmbH, licensed under MIT License. See for a tool which can install appx packages for automatic processing …
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl=""
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
<xsl:output method="xml" encoding="utf-8" indent="yes"/>
<xsl:template match="REPORT">
<xsl:apply-templates select="REQUIREMENTS/REQUIREMENT"/>
<xsl:template match="REQUIREMENT">
<xsl:attribute name="name">
<xsl:value-of select="@TITLE"/>
<xsl:apply-templates select="TEST">
<xsl:with-param name="Requirement" select="."/>
<xsl:template match="TEST">
<xsl:param name="Requirement"/>
<xsl:attribute name="classname">
<xsl:value-of select="$Requirement/@TITLE"/>
<xsl:attribute name="name">
<xsl:value-of select="@NAME"/>
<!-- skip this test because the package is installed in authoring mode and it fails -->
<xsl:when test="RESULT='FAIL' and @NAME != 'Bytecode generation'">
<xsl:value-of select="MESSAGES/MESSAGE/@TEXT"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.