Hi there,
first things first... thanks for this great tool.
I use ECS to create a simple web page from within my programm.
When trying to use the CharacterFilter I ran into serious trouble. My
test programme won't do anything, neither will TestBed. Rebuilding the
jar file didn't do any good.
Is there a problem in the current release, and if so which file should I
"downgrade" to fix it?
Thanks in advance
Markus Hammori
--
Markus *MARKSMAN* Hammori
The test code I used :
import java.io.*;
import java.util.Vector;
import java.util.Hashtable;
import java.text.BreakIterator;
import org.apache.ecs.*;
import org.apache.ecs.xml.*;
import org.apache.ecs.html.*;
import org.apache.ecs.filter.*;
import org.apache.ecs.factory.DOMFactory;
public class Case
{
public static void printCase()
{
Filter filter = new CharacterFilter();
filter.addAttribute("$","dollar");
filter.addAttribute("#",Entities.POUND);
P p = new P();
p.setFilter(filter);
p.setFilterState(true);
p.addElement("$");
Document doc = new Document();
doc.getBody().addElement(p);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
doc.output(baos);
try
{
baos.writeTo(System.out);
}
catch(Exception e)
{
System.out.println(e.toString());
}
}
public static void main(String[] args)
{
printCase();
}
}
--
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]