Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1791
feed.xsl
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
bzimport
Nov 21 2014, 8:09 PM
2014-11-21 20:09:50 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
feed.xsl
View Options
<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
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1372
Default Alt Text
feed.xsl (1 KB)
Attached To
Mode
T3284: Diffs in RSS, Atom feeds missing stylesheet
Attached
Detach File
Event Timeline
Log In to Comment