Page MenuHomePhabricator
Authored By
bzimport
Nov 21 2014, 8:09 PM
Size
1 KB
Referenced Files
None
Subscribers
None

feed.xsl

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- copy everything -->
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
<!-- apply style attributes -->
<xsl:template match='*[@class="diff"]'>
<xsl:element name="{name()}">
<xsl:attribute name="style">background-color: white;</xsl:attribute>
<xsl:apply-templates select="@* | node()"/>
</xsl:element>
</xsl:template>
<xsl:template match='*[@class="diff-addedline"]'>
<xsl:element name="{name()}">
<xsl:attribute name="style">background: #cfc; font-size: smaller;</xsl:attribute>
<xsl:apply-templates select="@* | node()"/>
</xsl:element>
</xsl:template>
<xsl:template match='*[@class="diff-deletedline"]'>
<xsl:element name="{name()}">
<xsl:attribute name="style">background: #ffa; font-size: smaller;</xsl:attribute>
<xsl:apply-templates select="@* | node()"/>
</xsl:element>
</xsl:template>
<xsl:template match='*[@class="diff-context"]'>
<xsl:element name="{name()}">
<xsl:attribute name="style">background: #eee; font-size: smaller;</xsl:attribute>
<xsl:apply-templates select="@* | node()"/>
</xsl:element>
</xsl:template>
<xsl:template match='*[@class="diffchange"]'>
<xsl:element name="{name()}">
<xsl:attribute name="style">color: red; font-weight: bold;</xsl:attribute>
<xsl:apply-templates select="@* | node()"/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>

File Metadata

Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1372
Default Alt Text
feed.xsl (1 KB)

Event Timeline