You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-user@ws.apache.org by dnguyen <do...@l-3comcept.com> on 2007/02/27 17:07:55 UTC

How to insert custom XPath function into Muse.

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: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org


Re: How to insert custom XPath function into Muse.

Posted by dnguyen <do...@l-3comcept.com>.
Yes I can use the nightly build.  Thanks for your help.


Daniel Jemiolo wrote:
> 
> 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 <do...@l-3comcept.com> 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 <do...@l-3comcept.com> 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: muse-user-unsubscribe@ws.apache.org
>> >> For additional commands, e-mail: muse-user-help@ws.apache.org
>> >> 
>> > 
>> > 
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
>> > For additional commands, e-mail: muse-user-help@ws.apache.org
>> > 
>> > 
>> > 
>> 
>> -- 
>> 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: muse-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: muse-user-help@ws.apache.org
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-insert-custom-XPath-function-into-Muse.-tf3302003.html#a9191015
Sent from the Muse User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org


Re: How to insert custom XPath function into Muse.

Posted by Daniel Jemiolo <da...@us.ibm.com>.
yes - it's in the 2.2 release. here's the change:

      http://svn.apache.org/viewvc?view=rev&revision=513019

the code involved would be:

      FilterHandler handler = ...   // implement this interface as we've
done
                                    // for the three standard filter types

      FilterFactory.getInstance().addHandler(handler);

Dan



david2 <Da...@l-3comcept.com> wrote on 08/08/2007 11:30:19 AM:

>
> Dan,
>
> Did this change ever make it into the regular build?  If so, which
version?
>
> Thanks,
> -David
>
>
>
> Daniel Jemiolo wrote:
> >
> > 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 <do...@l-3comcept.com> 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 <do...@l-3comcept.com> 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: muse-user-unsubscribe@ws.apache.org
> >> >> For additional commands, e-mail: muse-user-help@ws.apache.org
> >> >>
> >> >
> >> >
> >> >
---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> >> > For additional commands, e-mail: muse-user-help@ws.apache.org
> >> >
> >> >
> >> >
> >>
> >> --
> >> 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: muse-user-unsubscribe@ws.apache.org
> >> For additional commands, e-mail: muse-user-help@ws.apache.org
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: muse-user-help@ws.apache.org
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/How-to-insert-
> custom-XPath-function-into-Muse.-tf3302003.html#a12055640
> Sent from the Muse User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
>

RE: How to insert custom XPath function into Muse.

Posted by le...@bt.com.
I must admit I use a custom implementation of xPath to solve my issues
with notification messages. One word of caution the duplicate namespace
found when using the current xml parser (the .toXml() ) function, caused
some problems with my custom xPath implementation, but was solved after
I removed the duplicate namespace (seems always to be
xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2").


/Lenni

-----Original Message-----
From: david2 [mailto:David.Bueche@l-3comcept.com] 
Sent: 08 August 2007 16:30
To: muse-user@ws.apache.org
Subject: Re: How to insert custom XPath function into Muse.


Dan,

Did this change ever make it into the regular build?  If so, which
version?

Thanks,
-David



Daniel Jemiolo wrote:
> 
> 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 <do...@l-3comcept.com> 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 <do...@l-3comcept.com> 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: muse-user-unsubscribe@ws.apache.org
>> >> For additional commands, e-mail: muse-user-help@ws.apache.org
>> >> 
>> > 
>> > 
>> >
---------------------------------------------------------------------
>> > To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
>> > For additional commands, e-mail: muse-user-help@ws.apache.org
>> > 
>> > 
>> > 
>> 
>> -- 
>> 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: muse-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: muse-user-help@ws.apache.org
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/How-to-insert-custom-XPath-function-into-Muse.-tf3
302003.html#a12055640
Sent from the Muse User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org


Re: How to insert custom XPath function into Muse.

Posted by david2 <Da...@l-3comcept.com>.
Dan,

Did this change ever make it into the regular build?  If so, which version?

Thanks,
-David



Daniel Jemiolo wrote:
> 
> 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 <do...@l-3comcept.com> 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 <do...@l-3comcept.com> 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: muse-user-unsubscribe@ws.apache.org
>> >> For additional commands, e-mail: muse-user-help@ws.apache.org
>> >> 
>> > 
>> > 
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
>> > For additional commands, e-mail: muse-user-help@ws.apache.org
>> > 
>> > 
>> > 
>> 
>> -- 
>> 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: muse-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: muse-user-help@ws.apache.org
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-insert-custom-XPath-function-into-Muse.-tf3302003.html#a12055640
Sent from the Muse User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org


Re: How to insert custom XPath function into Muse.

Posted by Daniel Jemiolo <da...@us.ibm.com>.
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 <do...@l-3comcept.com> 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 <do...@l-3comcept.com> 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: muse-user-unsubscribe@ws.apache.org
> >> For additional commands, e-mail: muse-user-help@ws.apache.org
> >> 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: muse-user-help@ws.apache.org
> > 
> > 
> > 
> 
> -- 
> 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: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org


Re: How to insert custom XPath function into Muse.

Posted by dnguyen <do...@l-3comcept.com>.
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 <do...@l-3comcept.com> 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: muse-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: muse-user-help@ws.apache.org
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
> 
> 
> 

-- 
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: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org


Re: How to insert custom XPath function into Muse.

Posted by Daniel Jemiolo <da...@us.ibm.com>.
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 <do...@l-3comcept.com> 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: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org