This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 39bcbd0c5474f73ad0110aa0de6246493495c1c1 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 d849618..ef01b8f 100644 --- a/webapps/docs/default-servlet.xml +++ b/webapps/docs/default-servlet.xml @@ -229,23 +229,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; @@ -253,56 +253,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