On Tuesday 15 May 2007 22:04:07 xil...@li...=
=20
wrote:
> 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. =A0With Xilize you have source files
> (*.xil) and output files (*.html). =A0Do you also need another output for=
mat,
> 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? =A0This 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=20
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** e=
tc)=20
for full text indexing engine.
Evheniy.
|