[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Filtering, xslt 2.0

Subject: Re: Filtering, xslt 2.0
From: "Dimitre Novatchev dnovatchev@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 31 Oct 2022 18:33:04 -0000
Re:  Filtering
> Sequence-equals? 3.0? function?
>   Google hasn't found this Graydon?

Has been proposed for XPath 4.0 F&O:
https://github.com/qt4cg/qtspecs/issues/99

As for the original problem, this has even a simple XPath 1.0 solution:

      contains(concat(',', $membership, ','), concat(',', membership, ','))

Thanks,
Dimitre

On Mon, Oct 31, 2022 at 10:24 AM Dave Pawson dave.pawson@xxxxxxxxx <
xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> On Mon, 31 Oct 2022 at 16:47, Graydon graydon@xxxxxxxxx
> <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> >
> > On Mon, Oct 31, 2022 at 04:35:10PM -0000, Dave Pawson
> dave.pawson@xxxxxxxxx scripsit:
> > > <grin/> Not yet (will I ever be?) familiar with xslt 3.0
> >
> > Two has the sequence concept.
> >
> > param="a;b;c;d"
> >
> > <xsl:param name="rawMatch" as="xs:string" />
> > <xsl:variable name="matchOptions" as="xs:string+"
> > select="tokenize($rawMatch,';')" />
>
> (assume xslt 2.) - OK, happy with that.
>
> >
> > Then the sequence-equals test will return true if it's any of the values
> > in the param.
>
> Sequence-equals? 3.0? function?
> Google hasn't found this Graydon?
>
> regards
>
>
> --
> Dave Pawson
> XSLT XSL-FO FAQ.
> Docbook FAQ.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.