You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by ig...@apache.org on 2003/10/16 22:26:15 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/templates DecimalFormatProperties.java KeyDeclaration.java

igorh       2003/10/16 13:26:15

  Modified:    java/src/org/apache/xalan/processor
                        ProcessorDecimalFormat.java
               java/src/org/apache/xalan/templates
                        DecimalFormatProperties.java KeyDeclaration.java
  Log:
  Patch for Bugzilla Bug 5972. Submitrd by  Richard Cao.
  
  Revision  Changes    Path
  1.9       +4 -1      xml-xalan/java/src/org/apache/xalan/processor/ProcessorDecimalFormat.java
  
  Index: ProcessorDecimalFormat.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/processor/ProcessorDecimalFormat.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- ProcessorDecimalFormat.java	30 Jan 2003 18:45:44 -0000	1.8
  +++ ProcessorDecimalFormat.java	16 Oct 2003 20:26:15 -0000	1.9
  @@ -98,7 +98,10 @@
     {
   
       DecimalFormatProperties dfp = new DecimalFormatProperties(handler.nextUid());
  -
  +    
  +    dfp.setDOMBackPointer(handler.getOriginatingNode());
  +    dfp.setLocaterInfo(handler.getLocator());
  +    
       setPropertiesFromAttributes(handler, rawName, attributes, dfp);
       handler.getStylesheet().setDecimalFormat(dfp);
       
  
  
  
  1.13      +22 -1     xml-xalan/java/src/org/apache/xalan/templates/DecimalFormatProperties.java
  
  Index: DecimalFormatProperties.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/templates/DecimalFormatProperties.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- DecimalFormatProperties.java	30 Jan 2003 18:45:50 -0000	1.12
  +++ DecimalFormatProperties.java	16 Oct 2003 20:26:15 -0000	1.13
  @@ -282,6 +282,16 @@
     {
       return m_dfs.getNaN();
     }
  +  
  +  /**
  +   * Return the node name.
  +   *
  +   * @return the element's name
  +   */
  +  public String getNodeName()
  +  {
  +    return Constants.ELEMNAME_DECIMALFORMAT_STRING;
  +  }
   
     /**
      * Set the "percent" attribute.
  @@ -330,7 +340,18 @@
     {
       return m_dfs.getPerMill();
     }
  -
  +  
  +  /**
  +   * Get an int constant identifying the type of element.
  +   * @see org.apache.xalan.templates.Constants
  +   *
  +   * @return The token ID for this element
  +   */
  +  public int getXSLToken()
  +  {
  +    return Constants.ELEMNAME_DECIMALFORMAT;
  +  }
  +  
     /**
      * Set the "zero-digit" attribute.
      * zero-digit specifies the character used as the digit zero; the default
  
  
  
  1.11      +22 -0     xml-xalan/java/src/org/apache/xalan/templates/KeyDeclaration.java
  
  Index: KeyDeclaration.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/templates/KeyDeclaration.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- KeyDeclaration.java	30 Jan 2003 18:45:51 -0000	1.10
  +++ KeyDeclaration.java	16 Oct 2003 20:26:15 -0000	1.11
  @@ -114,6 +114,17 @@
     {
       return m_name;
     }
  +  
  +  /**
  +   * Return the node name.
  +   *
  +   * @return the element's name
  +   */
  +  public String getNodeName()
  +  {
  +    return Constants.ELEMNAME_KEY_STRING;
  +  }
  +
   
     /**
      * The "match" attribute.
  @@ -179,6 +190,17 @@
     public XPath getUse()
     {
       return m_use;
  +  }
  +  
  +  /**
  +   * Get an int constant identifying the type of element.
  +   * @see org.apache.xalan.templates.Constants
  +   *
  +   * @return The token ID for this element
  +   */
  +  public int getXSLToken()
  +  {
  +    return Constants.ELEMNAME_KEY;
     }
     
     /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org