[JDEV] Jabber - Scripting Language
stpeter
stpeter at jabber.org
Fri Jun 8 14:12:47 CDT 2001
Yes, that's what I was thinking.
So let's say I want all jabber messages from the icq.jabber.org domain to
be sent to /dev/null (since all I ever get through the ICQ Transport is
spam). Well, I could do that by matching an XPath expression -- something
along the lines of message/@from contains icq.jabber.org, although in the
correct syntax of course :)
Something like this wouldn't handle every case, but I think it would get
us part of the way there.
Peter
On Fri, 8 Jun 2001, Bill Abbas wrote:
>
> No, I know what XPath is. I've worked a lot with XSL
> transforms. What I don't know is how it can be used to
> extend the filtering mechanism.
>
> Hmm.
>
> Basically, XPath is a navigational notation for the DOM. I
> guess there're 2 kinds of XML involved here: the filter
> rules and the actual messages. The goal would be to apply
> the rules to the messages and reformat the messages
> appropriately, right? Sounds like a job for XSLT.
>
> I think I'm answering my own question here :)
>
> =Bill
>
> On Friday 08 June 2001 10:36, you wrote:
> > xPath is kind of like regular expressions for XML. More
> > info here:
> >
> > http://www.w3.org/TR/xpath
> >
> > Peter
> >
> > On Fri, 8 Jun 2001, Bill Abbas wrote:
> > > On Friday 08 June 2001 08:57, you wrote:
> > > > I agree that powerful server-side filtering would get
> > > > us a long way toward the goal. Seems to me that a lot
> > > > of this could happen via xpath matching.
> > >
> > > I agree with the first sentence, but I have no idea
> > > what the second one means. :)
> > >
> > > How would xpath be used to enhance server-side
> > > filtering?
> > >
> > > =Bill
> > > _______________________________________________
> > > jdev mailing list
> > > jdev at jabber.org
> > > http://mailman.jabber.org/listinfo/jdev
> >
> > _______________________________________________
> > jdev mailing list
> > jdev at jabber.org
> > http://mailman.jabber.org/listinfo/jdev
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
>
More information about the JDev
mailing list