Your banner ad here

In this section

Follow Code Style

Site navigation below

This page is part of a searchable archive of the Code Style site log. Technical implementation notes that shed light on when, why and how the site has evolved since 2000.

RSS news feed Follow the latest entries to the site log.

Reverse chronology

FAQ servlet enhancements, 29th May 2005

Introduced short-hand topic and category parameter handling to the FAQtoXHTML transformation servlet, to enable single keyword URL references. The source XML is marked up with the keywords as category and topic names and the XSL template expands these to full section titles.

Initially the topic and category name mapping is hard-coded into the XSL template, but should ultimately be represented in the XML DTD.

Took the opportunity to rationalise the FAQ DTD by cutting out some redundancy, which allowed simplification of the XSL template. Made the category name an FAQ item element attribute, and the topic name an attribute of the repeatable topic element, rather than element content. These changes allowed the removal of various normalize-space function calls and the elimination of the SearchAndReplace template.

Actions: Ask a question about this log entry, seek clarification or offer a correction.

XSL path extractor, 26th May 2005

Created a small XSL utility template to extract the path element from an absolute URL. Uses a combination of string-length, substring, substring-before and substring-after function calls to handle URLs in a generic way, similar to the DomainExtractor and HostExtractor templates.

Actions: Ask a question about this log entry, seek clarification or offer a correction.

Simple Syndication links mode, 14th May 2005

Extended the "Simple Syndication" XHTMLtoJS and HTML XHTMLtoDemo news feed XSL templates to implement Links mode. Had to inline the sentence case translation for item titles in the SearchAndReplace call to ensure that double quotes are stripped out. The HTML demo version uses the standard SentenceCase template.

Actions: Ask a question about this log entry, seek clarification or offer a correction.

Hansel dependency trail, 13th May 2005

Modified the depends attribute of the Code Style Ant build file so that the Hansel coverage test target does not require the tests to run before it calculates statistics.

Corrected superfluous double quote characters in the close element tags of the XHTMLtoJS Javascript news feed XSL.

Actions: Ask a question about this log entry, seek clarification or offer a correction.

Last second of the sixties bug, 9th May 2005

Found there was a bug in the AbstractParseServlet where the source Web page had no HTTP Last-Modified header; the modified date passed to the SAXTransformer was -1L, which was interpreted as a second before midnight on new year's eve 1970. Changed the ResultsMarshaller class to pass the CacheValue modified date, which is adjusted to the current date in this case.

Also updated the abstract processLog method in the AbstractParseServlet class to take an HttpServletRequest argument to permit custom logging requirements on another project.

Previous modifications to the MockHttpServlet20Request class meant that the "Network" test suites for the various parse servlets had to be configured with explicit HTTP request methods.

Actions: Ask a question about this log entry, seek clarification or offer a correction.

Previously on Code Style

Find technical implementation notes on all aspects of the Code Style site.

Add this page to your chosen social bookmarking service

Style warning - please read

Home · CSS · Java · Javascript · HTML · Help · Log