1<?xml version="1.0" encoding="UTF-8"?> 2<xsl:stylesheet version="1.0" 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 4 <xsl:template match="/"> 5 <xsl:if test="not(/out/png)"> 6 <xsl:message terminate="yes"> 7 /out/png element is missing. 8 </xsl:message> 9 </xsl:if> 10 11 <xsl:if test="/out/png/@name != 'test-alpha'"> 12 <xsl:message terminate="yes"> 13 /out/png/@name attribute is missing or has the wrong value. 14 </xsl:message> 15 </xsl:if> 16 17 <xsl:if test="/out/png/@width != 5"> 18 <xsl:message terminate="yes"> 19 /out/png/@width attribute is missing or has the wrong value. 20 </xsl:message> 21 </xsl:if> 22 23 <xsl:if test="/out/png/@height != 5"> 24 <xsl:message terminate="yes"> 25 /out/png/@height attribute is missing or has the wrong value. 26 </xsl:message> 27 </xsl:if> 28 29 <xsl:if test="/out/png/@format != 5"> 30 <xsl:message terminate="yes"> 31 /out/png/@format attribute is missing or has the wrong value. 32 </xsl:message> 33 </xsl:if> 34 35 <xsl:if test="not(/out/png/data)"> 36 <xsl:message terminate="yes"> 37 /out/png/data element is missing. 38 </xsl:message> 39 </xsl:if> 40 41 <xsl:if test="string(/out/png/data/text()) != 'eNpTVWBm3s/AwPDjurg4iFYF8TuXCf4Hsv9vvycBokH8H+LXU/5L3EuHYRAfpP6/RPo9GAbrl2ZWAJsH0gflAwBaZyQw'"> 42 <xsl:message terminate="yes"> 43 PNG data was not imported correctly. 44 </xsl:message> 45 </xsl:if> 46 </xsl:template> 47</xsl:stylesheet> 48