Index: jrst2/src/java/org/codelutin/jrst/directive/DateDirective.java diff -u jrst2/src/java/org/codelutin/jrst/directive/DateDirective.java:1.1 jrst2/src/java/org/codelutin/jrst/directive/DateDirective.java:1.2 --- jrst2/src/java/org/codelutin/jrst/directive/DateDirective.java:1.1 Mon Nov 6 15:08:47 2006 +++ jrst2/src/java/org/codelutin/jrst/directive/DateDirective.java Thu May 10 10:18:41 2007 @@ -23,19 +23,17 @@ * Created: 4 nov. 06 13:29:25 * * @author poussin - * @version $Revision: 1.1 $ + * @version $Revision: 1.2 $ * - * Last update: $Date: 2006/11/06 15:08:47 $ - * by : $Author: bpoussin $ + * Last update: $Date: 2007/05/10 10:18:41 $ + * by : $Author: sletellier $ */ package org.codelutin.jrst.directive; import java.text.SimpleDateFormat; import java.util.Date; - import org.codelutin.jrst.JRSTDirective; -import org.codelutin.jrst.JRSTLexer; import org.dom4j.DocumentHelper; import org.dom4j.Element; import org.dom4j.Node; @@ -56,7 +54,7 @@ */ public Node parse(Element e) { - String format = e.attributeValue(JRSTLexer.DIRECTIVE_VALUE); + //String format = e.attributeValue(JRSTLexer.DIRECTIVE_VALUE); // TODO used format to format date, this format is not Java standard // is python standard "%Y-%m-%d" Index: jrst2/src/java/org/codelutin/jrst/directive/ContentDirective.java diff -u /dev/null jrst2/src/java/org/codelutin/jrst/directive/ContentDirective.java:1.1 --- /dev/null Thu May 10 10:18:46 2007 +++ jrst2/src/java/org/codelutin/jrst/directive/ContentDirective.java Thu May 10 10:18:41 2007 @@ -0,0 +1,20 @@ +package org.codelutin.jrst.directive; + +import org.codelutin.jrst.JRSTDirective; +import org.dom4j.DocumentHelper; +import org.dom4j.Element; +import org.dom4j.Node; + +public class ContentDirective implements JRSTDirective { + + /* (non-Javadoc) + * @see org.codelutin.jrst.JRSTDirective#parse(org.dom4j.Element) + */ + public Node parse(Element e) { + Element result = DocumentHelper.createElement("topic").addAttribute("value",e.attributeValue("value")); + result.addAttribute("type", "contents"); + result.setText(e.getText()); + return result; + } + +} \ No newline at end of file