santiagopg    02/04/15 12:51:02

  Modified:    java/src/org/apache/xalan/xsltc/runtime Tag:
                        jaxp-ri-1_2_0-fcs-branch BasisLibrary.java
  Log:
  New implementation of xsl:element
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.34.8.2  +24 -1     
xml-xalan/java/src/org/apache/xalan/xsltc/runtime/BasisLibrary.java
  
  Index: BasisLibrary.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/runtime/BasisLibrary.java,v
  retrieving revision 1.34.8.1
  retrieving revision 1.34.8.2
  diff -u -r1.34.8.1 -r1.34.8.2
  --- BasisLibrary.java 3 Apr 2002 19:26:50 -0000       1.34.8.1
  +++ BasisLibrary.java 15 Apr 2002 19:51:02 -0000      1.34.8.2
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: BasisLibrary.java,v 1.34.8.1 2002/04/03 19:26:50 tmiller Exp $
  + * @(#)$Id: BasisLibrary.java,v 1.34.8.2 2002/04/15 19:51:02 santiagopg Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -960,6 +960,29 @@
        }
       }
       
  +    /**
  +     * This function is used in the execution of xsl:element
  +     */
  +    public static String getPrefix(String qname) {
  +     final int index = qname.indexOf(':');
  +     return (index > 0) ? qname.substring(0, index) : null;
  +    }
  +
  +    /**
  +     * This function is used in the execution of xsl:element
  +     */
  +    private static int prefixIndex = 0;
  +    public static String generatePrefix() {
  +     return ("ns" + prefixIndex++);
  +    }
  +
  +    /**
  +     * This function is used in the execution of xsl:element
  +     */
  +    public static String makeQName(String localName, String prefix) {
  +     return (new 
StringBuffer(prefix).append(':').append(localName).toString());
  +    }
  +
       public static final int RUN_TIME_INTERNAL_ERR   = 0;
       public static final int RUN_TIME_COPY_ERR       = 1;
       public static final int DATA_CONVERSION_ERR     = 2;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to