commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject cvs commit: jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/parser XMLParser.java
Date Mon, 11 Feb 2002 18:14:17 GMT
jstrachan    02/02/11 10:14:17

  Modified:    jelly    PROPOSAL.html STATUS.html TODO.txt
               jelly/src/java/org/apache/commons/jelly/parser
                        XMLParser.java
  Log:
  Added Geir as a committer, added an API to register namespaceURIs with TagLibrary instances
and added more to the TODO.txt
  
  Revision  Changes    Path
  1.2       +2 -1      jakarta-commons-sandbox/jelly/PROPOSAL.html
  
  Index: PROPOSAL.html
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/PROPOSAL.html,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PROPOSAL.html	11 Feb 2002 00:27:40 -0000	1.1
  +++ PROPOSAL.html	11 Feb 2002 18:14:17 -0000	1.2
  @@ -27,7 +27,7 @@
   
   <h3>(1.5) Interaction With Other Packages</h3>
   
  -<p><em>Jelly</em> relies only on standard JDK 1.2 (or later) APIs for

  +<p><em>Jelly</em> relies  on standard JDK 1.2 (or later) APIs for 
   production deployment.
   
   <p><i>Jelly</i> also currently uses the following packages from Jakarta

  @@ -78,6 +78,7 @@
   
   <h3>(4) Initial Committers</h3>
   <ul>
  +   <li>Geir Magnusson</li>
      <li>James Strachan</li>
   </ul>
   </body>
  
  
  
  1.2       +2 -1      jakarta-commons-sandbox/jelly/STATUS.html
  
  Index: STATUS.html
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/STATUS.html,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- STATUS.html	11 Feb 2002 00:27:40 -0000	1.1
  +++ STATUS.html	11 Feb 2002 18:14:17 -0000	1.2
  @@ -7,7 +7,7 @@
   
   <div align="center">
   <h1>The Jakarta Commons <em>Jelly</em> Package</h1>
  -$Id: STATUS.html,v 1.1 2002/02/11 00:27:40 jstrachan Exp $<br>
  +$Id: STATUS.html,v 1.2 2002/02/11 18:14:17 jstrachan Exp $<br>
   <a href="#Introduction">[Introduction]</a>
   <a href="#Dependencies">[Dependencies]</a>
   <a href="#Release Info">[Release Info]</a>
  @@ -72,6 +72,7 @@
   projects are encouraged to collaborate on the future development of this
   component to ensure that it continues to meet a variety of needs.</p>
   <ul>
  +   <li>Geir Magnusson</li>
      <li><a href="mailto:jstrachan@apache.org">James Strachan</a></li>
   </ul>
   
  
  
  
  1.2       +11 -1     jakarta-commons-sandbox/jelly/TODO.txt
  
  Index: TODO.txt
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/TODO.txt,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TODO.txt	11 Feb 2002 00:27:40 -0000	1.1
  +++ TODO.txt	11 Feb 2002 18:14:17 -0000	1.2
  @@ -1,11 +1,21 @@
   TO DO LIST
   ==========
   
  -* add core tags with pluggable expression engines like Velocity, beanshell, Rhino etc.
  +* add core tags from JSTL with pluggable expression engines like Velocity, beanshell, Rhino
etc.
  +
  +* add EmptyScript to allow tags optimise if their body is empty.
  +
  +* add whitespace trimming support. Allow a taglib to decide which tags 'trim' and which
don't so that
  +  unnecessary whitespace can be removed at compile time.
  +
  +* add parent Context and support for other scopes such as session, request, cookie, initParam,
param etc.
  +  maybe add a Scope class for variable names which can contain a scope name and variable
name
   
   * make Ant task to run Jelly
   
   * document much more!
  +
  +* add demo of tag which parses its body at compile time and modifies it. 
   
   * provide an alternative non-XML parser such that Jelly scripts do not
     need to be XML. This could allow Velocity-style concise notation 
  
  
  
  1.2       +12 -6     jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/parser/XMLParser.java
  
  Index: XMLParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/parser/XMLParser.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XMLParser.java	11 Feb 2002 00:27:41 -0000	1.1
  +++ XMLParser.java	11 Feb 2002 18:14:17 -0000	1.2
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/parser/XMLParser.java,v
1.1 2002/02/11 00:27:41 jstrachan Exp $
  - * $Revision: 1.1 $
  - * $Date: 2002/02/11 00:27:41 $
  + * $Header: /home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/parser/XMLParser.java,v
1.2 2002/02/11 18:14:17 jstrachan Exp $
  + * $Revision: 1.2 $
  + * $Date: 2002/02/11 18:14:17 $
    *
    * ====================================================================
    *
  @@ -57,7 +57,7 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    *
  - * $Id: XMLParser.java,v 1.1 2002/02/11 00:27:41 jstrachan Exp $
  + * $Id: XMLParser.java,v 1.2 2002/02/11 18:14:17 jstrachan Exp $
    */
   package org.apache.commons.jelly.parser;
   
  @@ -111,7 +111,7 @@
    * The SAXParser and XMLReader portions of this code come from Digester.</p>
    *
    * @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
  - * @version $Revision: 1.1 $
  + * @version $Revision: 1.2 $
    */
   public class XMLParser extends DefaultHandler {
       
  @@ -233,7 +233,13 @@
       public XMLParser(XMLReader reader) {
           this.reader = reader;
       }
  -    
  +
  +    /** Registers the given tag library against the given namespace URI.
  +     * This should be called before the parser is used.
  +     */
  +    public void registerTaglib(String namespaceURI, TagLibrary taglib) {
  +        taglibs.put( namespaceURI, taglib );
  +    }
       
       /**
        * Parse the content of the specified file using this XMLParser.  Returns
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message