This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 709978183d763b27009b0d02908ae1eda50308dd Author: Mark Thomas <ma...@apache.org> AuthorDate: Tue Sep 24 17:07:55 2019 +0100 Fix xml source file that wasn't using expected version replacement Source block is xml so need to xml escape so we can remove the CDATA allowing the version replacement to work. --- webapps/docs/default-servlet.xml | 116 +++++++++++++++++++-------------------- 1 file changed, 58 insertions(+), 58 deletions(-) diff --git a/webapps/docs/default-servlet.xml b/webapps/docs/default-servlet.xml index cd7d30e..b6d1e62 100644 --- a/webapps/docs/default-servlet.xml +++ b/webapps/docs/default-servlet.xml @@ -249,23 +249,23 @@ Format: <p> The following is a sample xsl file which mimics the default tomcat behavior: </p> -<source><![CDATA[<?xml version="1.0" encoding="UTF-8"?> +<source><?xml version="1.0" encoding="UTF-8"?> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - version="3.0"> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + version="3.0"> - <xsl:output method="html" html-version="5.0" - encoding="UTF-8" indent="no" - doctype-system="about:legacy-compat"/> + <xsl:output method="html" html-version="5.0" + encoding="UTF-8" indent="no" + doctype-system="about:legacy-compat"/> - <xsl:template match="listing"> - <html> - <head> - <title> + <xsl:template match="listing"> + <html> + <head> + <title> Sample Directory Listing For - <xsl:value-of select="@directory"/> - </title> - <style> + <xsl:value-of select="@directory"/> + </title> + <style> h1 {color : white;background-color : #0086b2;} h3 {color : white;background-color : #0086b2;} body {font-family : sans-serif,Arial,Tahoma; @@ -273,56 +273,56 @@ Format: b {color : white;background-color : #0086b2;} a {color : black;} HR{color : #0086b2;} table td { padding: 5px; } - </style> - </head> - <body> - <h1>Sample Directory Listing For - <xsl:value-of select="@directory"/> - </h1> - <hr style="height: 1px;" /> - <table style="width: 100%;"> - <tr> - <th style="text-align: left;">Filename</th> - <th style="text-align: center;">Size</th> - <th style="text-align: right;">Last Modified</th> - </tr> - <xsl:apply-templates select="entries"/> - </table> - <xsl:apply-templates select="readme"/> - <hr style="height: 1px;" /> - <h3>Apache Tomcat/<version-major-minor/></h3> - </body> - </html> - </xsl:template> + </style> + </head> + <body> + <h1>Sample Directory Listing For + <xsl:value-of select="@directory"/> + </h1> + <hr style="height: 1px;" /> + <table style="width: 100%;"> + <tr> + <th style="text-align: left;">Filename</th> + <th style="text-align: center;">Size</th> + <th style="text-align: right;">Last Modified</th> + </tr> + <xsl:apply-templates select="entries"/> + </table> + <xsl:apply-templates select="readme"/> + <hr style="height: 1px;" /> + <h3>Apache Tomcat/<version-major-minor/></h3> + </body> + </html> + </xsl:template> - <xsl:template match="entries"> - <xsl:apply-templates select="entry"/> - </xsl:template> + <xsl:template match="entries"> + <xsl:apply-templates select="entry"/> + </xsl:template> - <xsl:template match="readme"> - <hr style="height: 1px;" /> - <pre><xsl:apply-templates/></pre> - </xsl:template> + <xsl:template match="readme"> + <hr style="height: 1px;" /> + <pre><xsl:apply-templates/></pre> + </xsl:template> - <xsl:template match="entry"> - <tr> - <td style="text-align: left;"> - <xsl:variable name="urlPath" select="@urlPath"/> - <a href="{$urlPath}"> - <pre><xsl:apply-templates/></pre> - </a> - </td> - <td style="text-align: right;"> - <pre><xsl:value-of select="@size"/></pre> - </td> - <td style="text-align: right;"> - <pre><xsl:value-of select="@date"/></pre> - </td> - </tr> - </xsl:template> + <xsl:template match="entry"> + <tr> + <td style="text-align: left;"> + <xsl:variable name="urlPath" select="@urlPath"/> + <a href="{$urlPath}"> + <pre><xsl:apply-templates/></pre> + </a> + </td> + <td style="text-align: right;"> + <pre><xsl:value-of select="@size"/></pre> + </td> + <td style="text-align: right;"> + <pre><xsl:value-of select="@date"/></pre> + </td> + </tr> + </xsl:template> -</xsl:stylesheet>]]></source> +</xsl:stylesheet></source> </section> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org