| OLD | NEW |
| (Empty) | |
| 1 <?php |
| 2 $etag = "must-have-some-etag"; |
| 3 if (isset($_SERVER['HTTP_IF_NONE_MATCH']) && stripslashes($_SERVER['HTTP_IF_NONE
_MATCH']) == $etag) { |
| 4 header("HTTP/1.0 304 Not Modified"); |
| 5 die; |
| 6 } |
| 7 header("ETag: " . $etag); |
| 8 header("Cache-Control: no-cache"); |
| 9 header("Content-Type: text/xsl"); |
| 10 print("<?xml version=\"1.0\"?>"); |
| 11 ?> |
| 12 <xsl:stylesheet version="1.0" |
| 13 xmlns:xhtml="http://www.w3.org/1999/xhtml" |
| 14 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
| 15 |
| 16 <xsl:template match="*"> |
| 17 <xsl:copy> |
| 18 <xsl:copy-of select="@*" /> |
| 19 <xsl:apply-templates select="node()" /> |
| 20 </xsl:copy> |
| 21 </xsl:template> |
| 22 |
| 23 <xsl:template match="xhtml:div[@id='markgreen']"> |
| 24 <xsl:copy> |
| 25 <xsl:copy-of select="@*" /> |
| 26 <xsl:attribute name="style"> |
| 27 <xsl:value-of select="'color: green;'" /> |
| 28 </xsl:attribute> |
| 29 <xsl:apply-templates select="node()" /> |
| 30 </xsl:copy> |
| 31 </xsl:template> |
| 32 </xsl:stylesheet> |
| OLD | NEW |