From: lexius K. <lex...@gm...> - 2007-05-15 19:53:36
|
> Hi Evheniy, > > > Sorry for my English. > > I am use Xilize in my web project for post/edit articles. > > And I need to clear text from formating element for full text indexing. > > Can I do this with xilize-engine.jar? > > I don't understand your question. With Xilize you have source files > (*.xil) and output files (*.html). Do you also need another output format, > say, a plain text file (i.e. *.txt) that is stripped of all Xilize markup > so you can give that "clean" file to the indexing engine? This not > something you can do with Xilize (yet), however, it can probably be done > easily by running the *.html output through XSLT. > > You might consider adding a feature request to the Xilize project so we > pick it up in the future. > > Andy Thanks for reply. I am using xilize in my web project. My code: public class XilizeProcessor implements TextProcessor { public XilizeProcessor() { super(); Xilize2.startup(new ReporterStd(), new BeanShell(), new HashMap<String, String>()); } public String process(String text) { try { return (new Xilize2()).xilizeBlocks(text); } catch (Exception e) { //logger.error(e.getMessage(), e); return text; } } } and I need to get plaing text without Xilize elements (*strong*, **bold** etc) for full text indexing engine. Evheniy. |