I think a simple change to the WSN FilterFactory will allow you to add
your own Filter implementations to the current WSN implementation. Are you
willing to use the nightly build? My changes would not be part of an
official release until version 2.2 (March 23rd). Let me know, and I will
elaborate on what to do.
Dan
dnguyen <[EMAIL PROTECTED]> wrote on 02/27/2007 12:20:09 PM:
>
> The first sample code I found is in Xalan's distro in /samples/XPathAPI.
The
> example included ExtensionTest.java (custom function through static
method),
> ExtensionFunctionResolver.java (main app), and . The main app basically
> created an instance of XPath and set its resolver with an instance of
> XPathFunctionResolverImpl. The expression passed to the XPath instance
to
> evaluate is "java:ExtensionTest.test('Bob')", where the resolver found
the
> implementation in the classpath.
>
> The second sample code is in /samples/extensions. This example included
> MyCounter.java (custom function), 4-numlistJava.xsl (has Xalan tags to
> include MyCounter function), and xml file for processing. Since this
> example involved an XSL file to include and use the custom function, I
> thought it may not be applicable to Muse.
>
>
>
> Daniel Jemiolo wrote:
> >
> > how does xalan allow you to specify custom functions? can you provide
a
> > sample of the code you want to execute? if so, perhaps we can find a
way
> > to work it in to the API. it may still be tough to do, though, given
that
> > the xpath expression is coming from the subscribe() request - you may
need
> > to specify your own dialect to get this working correctly. but send
the
> > code and we'll see what we can do.
> >
> > Dan
> >
> >
> >
> > dnguyen <[EMAIL PROTECTED]> wrote on 02/27/2007 11:07:55 AM:
> >
> >>
> >> I need to filter the NotificationMessage using MessagePatternFilter
with
> > a
> >> custom XPath function. I noticed that Muse is using Xalan, so I went
to
> >> Xalan's website to view the docs. I could not find a way to
reference
> > the
> >> custom function using just XPath, which is solely what is specified
in
> > the
> >> MessagePatternFilter. Is there a way to deploy a custom XPath
function
> > into
> >> Muse for complex filtering?
> >> --
> >> View this message in context:
> > http://www.nabble.com/How-to-insert-custom-
> >> XPath-function-into-Muse.-tf3302003.html#a9185358
> >> Sent from the Muse User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> 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]
> >
> >
> >
>
> --
> View this message in context:
http://www.nabble.com/How-to-insert-custom-
> XPath-function-into-Muse.-tf3302003.html#a9187014
> Sent from the Muse User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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]