Ok, thanks!

I've been looking for a way to somehow attach a Session to this filter,
but can't see one.

Essentially, I am trying to grab certain tags (such as <p>) and add the
attribute lang="en" (or whatever, according to the current locale).

Tried looking at the Page component, too, but didn't see any nice way of
doing this.


Any suggestions?




On Thu, 2007-08-30 at 11:19 +0200, Matej Knopp wrote:
> Hi,
> 
> but the default factory doesn't do much, just creates markup parse. You have
> to create your own markup factory, it's trivial.
> 
> IMarkupSettings.setMarkupParserFactory(new IMarkupParserFactory() {
>     public MarkupParser newMarkupParser(final MarkupResourceStream resource)
> {
>        MarkupParser mp = new MarkupParser(new XmlPullParser(), resource);
>        mp.appendMarkupFilter(yourFilter);
>        return mp;
>     }
> });
> 
> -Matej
> 
> On 8/30/07, David Leangen <[EMAIL PROTECTED]> wrote:
> >
> >
> > What's the best way to add a markup filter to my app?
> >
> > I noticed that in the settings I can override the MarkupParserFactory
> > and provide my own filter, but that is not what I want to do. I just
> > want to use the default factory, but add my own filter.
> >
> >
> > Thanks!
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >


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

Reply via email to