ivelin      2002/09/28 12:42:05

  Modified:    src/java/org/apache/cocoon/transformation
                        XMLFormTransformer.java
  Log:
  added support for xforms HINT and HELP tags,
  by Simon Price <[EMAIL PROTECTED]>
  
  Revision  Changes    Path
  1.14      +10 -3     
xml-cocoon2/src/java/org/apache/cocoon/transformation/XMLFormTransformer.java
  
  Index: XMLFormTransformer.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/transformation/XMLFormTransformer.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- XMLFormTransformer.java   27 Sep 2002 02:51:52 -0000      1.13
  +++ XMLFormTransformer.java   28 Sep 2002 19:42:05 -0000      1.14
  @@ -11,7 +11,7 @@
   
    1. Redistributions of  source code must  retain the above copyright  notice,
       this list of conditions and the following disclaimer.
  -
  + 
    2. Redistributions in binary form must reproduce the above copyright notice,
       this list of conditions and the following disclaimer in the documentation
       and/or other materials provided with the distribution.
  @@ -93,7 +93,8 @@
    * @author Andrew Timberlake <[EMAIL PROTECTED]>, June 2002
    * @author Michael Ratliff, [EMAIL PROTECTED] <[EMAIL PROTECTED]>, May 
2002
    * @author Torsten Curdt <[EMAIL PROTECTED]>, March 2002
  -
  + * @author Simon Price <[EMAIL PROTECTED]>, September 2002
  + * 
    */
   
   public class XMLFormTransformer extends AbstractSAXTransformer
  @@ -167,6 +168,8 @@
     public final static String TAG_RESET = "reset";
   
     public final static String TAG_CAPTION = "caption";
  +  public final static String TAG_HINT = "hint";
  +  public final static String TAG_HELP = "help";
     public final static String TAG_TEXTBOX = "textbox";
     public final static String TAG_TEXTAREA = "textarea";
     public final static String TAG_PASSWORD = "password";
  @@ -518,6 +521,8 @@
             }
             else if (
                       TAG_CAPTION.equals(name) ||
  +                    TAG_HINT.equals(name) ||
  +                    TAG_HELP.equals(name) ||
                       TAG_VALUE.equals(name) 
                      )
            {
  @@ -922,7 +927,9 @@
                   TAG_SELECTMANY.equals(name) ||
                   TAG_SUBMIT.equals(name) ||
                   TAG_CAPTION.equals( name ) ||
  -                TAG_VALUE.equals( name )
  +                TAG_VALUE.equals( name ) ||
  +                TAG_HINT.equals( name ) ||
  +                TAG_HELP.equals( name ) 
                   )
           { 
             super.endElement(uri, name, raw);
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to