-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/test' into prod
- Loading branch information
Showing
11 changed files
with
164 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
asndisc/asnvalidate summary -> proc_annot_stats | ||
proc_annot_stats format of XML is a format that serves as a standard input | ||
for subsequent loading to ProkRefseqTracking..ProcessAnnotationStats table | ||
the latter XML format is used as a template for classes under valres C++ namespace | ||
top element corresponding to ncbi::objects::valres::CValidationResults | ||
--> | ||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
exclude-result-prefixes="xs" | ||
version="2.0"> | ||
<xsl:output method="xml" indent="yes" encoding="UTF-8"/> | ||
<xsl:variable name="smallcase" select="'abcdefghijklmnopqrstuvwxyz'" /> | ||
<xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" /> | ||
|
||
<xsl:template match="ValidationErrors|DiscrepancyCounts"> | ||
<html> | ||
<body> | ||
<table border="1"> | ||
<xsl:variable name="caption"> | ||
<xsl:if test="name(.) = 'ValidationErrors'">STATISTICS OF ASNVALIDATE DIAGNOSTICS</xsl:if> | ||
<xsl:if test="name(.) = 'DiscrepancyCounts'">STATISTICS OF ASNDISC DIAGNOSTICS</xsl:if> | ||
</xsl:variable> | ||
<caption> | ||
<xsl:value-of select="$caption"/> | ||
</caption> | ||
<tr> | ||
<th>Application/level</th> | ||
<th>Level/code</th> | ||
<th>Count</th> | ||
</tr> | ||
<xsl:variable name="application"> | ||
<xsl:if test="name(.) = 'ValidationErrors'">asnval</xsl:if> | ||
<xsl:if test="name(.) = 'DiscrepancyCounts'">asndisc</xsl:if> | ||
</xsl:variable> | ||
<xsl:for-each select="Counts/Total"> | ||
<tr> | ||
<td><xsl:value-of select="$application"/></td> | ||
<td><xsl:value-of select='translate(../@Severity, $uppercase , $smallcase)'/></td> | ||
<td><xsl:value-of select="text()"/></td> | ||
</tr> | ||
</xsl:for-each> | ||
<xsl:for-each select="Counts/Subcount"> | ||
<tr> | ||
<td><xsl:value-of select="$application"/><xsl:text> </xsl:text><xsl:value-of | ||
select='translate(../@Severity, $uppercase , $smallcase)'/></td> | ||
<td><xsl:value-of select="@Code"/></td> | ||
<td><xsl:value-of select="text()"/></td> | ||
</tr> | ||
</xsl:for-each> | ||
</table> | ||
</body> | ||
</html> | ||
</xsl:template> | ||
</xsl:stylesheet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters