-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the implementation of omitMatches so it is not doing n-square…
…d tree traversals, instead it is a single pass.
- Loading branch information
1 parent
c5a98dd
commit 0472d20
Showing
19 changed files
with
324 additions
and
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
<xs:element name="updates"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="application"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="title" type="xs:string"> | ||
<xs:annotation> | ||
<xs:documentation>The name of the application being updated.</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
<xs:element name="location" type="xs:string"> | ||
<xs:annotation> | ||
<xs:documentation>The location of the update xml page.</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
<xs:element name="download" type="xs:string"> | ||
<xs:annotation> | ||
<xs:documentation>Location of the download page.</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
<xs:element name="installer" type="xs:string"> | ||
<xs:annotation> | ||
<xs:documentation>Location of the installation page.</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
<xs:element name="history" type="xs:string"> | ||
<xs:annotation> | ||
<xs:documentation>Location of the page showing update history.</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
<xs:element name="frequency" type="xs:string" > | ||
<xs:annotation> | ||
<xs:documentation>The frequency we need to check for updates to the application, any valid TimeSpan.</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:element maxOccurs="unbounded" name="version"> | ||
<xs:annotation> | ||
<xs:documentation>This element describes a new version of the application.</xs:documentation> | ||
</xs:annotation> | ||
<xs:complexType> | ||
<xs:choice minOccurs="0" maxOccurs="unbounded" > | ||
<xs:element name="feature" type="xs:string"> | ||
<xs:annotation> | ||
<xs:documentation>Description of a new feature added in this version.</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
<xs:element name="bug" type="xs:string" > | ||
<xs:annotation> | ||
<xs:documentation>Description of a bug fixed in this version.</xs:documentation> | ||
</xs:annotation> | ||
</xs:element> | ||
</xs:choice> | ||
<xs:attribute name="number" type="xs:string" use="required"> | ||
<xs:annotation> | ||
<xs:documentation>The version number.</xs:documentation> | ||
</xs:annotation> | ||
</xs:attribute> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:schema> |
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,76 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | ||
<xsl:output method="html" indent="yes"/> | ||
<xsl:template match="/"> | ||
<html> | ||
<head> | ||
<title> | ||
<xsl:value-of select="updates/application/title"/> | ||
</title> | ||
<style> | ||
body, th, td { font-family: Verdana; font-size:x-small;} | ||
</style> | ||
</head> | ||
<body> | ||
<center> | ||
<table width="600" border="0" cellpadding="0" cellspacing="0"> | ||
<tr> | ||
<td align="center" bgcolor="teal" style="height: 29px"> | ||
<span style="color:white;background:teal;font-size:18pt"> | ||
<xsl:value-of select="updates/application/title"/> - Change History | ||
</span> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<br/> | ||
<p> | ||
</p> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<table border="1" cellpadding="2" > | ||
<xsl:apply-templates/> | ||
</table> | ||
</td> | ||
</tr> | ||
</table> | ||
</center> | ||
</body> | ||
</html> | ||
</xsl:template> | ||
<xsl:template match="updates"> | ||
<xsl:apply-templates/> | ||
</xsl:template> | ||
<xsl:template match="application"> | ||
</xsl:template> | ||
<xsl:template match="version"> | ||
<xsl:variable name="color">background:teal;color:white</xsl:variable> | ||
<tr> | ||
<td style="{$color}"> </td> | ||
<td style="{$color}" align="center"> | ||
Version <xsl:value-of select="@number"/> | ||
</td> | ||
</tr> | ||
<xsl:apply-templates/> | ||
</xsl:template> | ||
<xsl:template match="feature"> | ||
<xsl:variable name="color">background:MediumTurquoise</xsl:variable> | ||
<tr> | ||
<td style="{$color}" valign="top">Feature</td> | ||
<td> | ||
<xsl:value-of select="."/> | ||
</td> | ||
</tr> | ||
</xsl:template> | ||
<xsl:template match="bug"> | ||
<xsl:variable name="color">background:LightPink</xsl:variable> | ||
<tr> | ||
<td style="{$color}" valign="top">Bug</td> | ||
<td> | ||
<xsl:value-of select="."/> | ||
</td> | ||
</tr> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.0.8 | ||
1.1.0 |
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
Oops, something went wrong.