The FastStringBuffer in question is Saxon's implementation in package net.sf.saxon.om. You need to change the import. Sorry I wasn't clear.
 
Michael Kay
http://www.saxonica.com/


From: saxon-help-admin@lists.sourceforge.net [mailto:saxon-help-admin@lists.sourceforge.net] On Behalf Of enis enis
Sent: 30 May 2006 10:10
To: saxon-help@lists.sourceforge.net
Subject: Re : [saxon] How to generate an Identifer in XQuery

Hello,
I'm trying to test the class that generates the id for the node but it's not working.

here is the class :
import com.sun.org.apache.xml.internal.utils.FastStringBuffer;

public class MyProject {
       public static String generateId(String node)
    {          FastStringBuffer buffer = new FastStringBuffer(16);
                node.generateId(buffer);
               return buffer.toString();
   }

   public static void main(String[] args)
    {
     System.out.println("Bonjour");
     String node = new String("noeud") ;
     String myid = generateId(node);
   }
}

The error is :
Line 0: cannot find symbol
symbol  : method generateId(com.sun.org.apache.xml.internal.utils.FastStringBuffer)
location: class java.lang.String
                node.generateId(buffer);
                       ^