Re: compare two lists

Jirka Kosek <[email protected]> Sat, 14 Nov 2009 23:37:53 +0100
Newsgroups gmane.text.xml.xslt.extensions
Message-ID <[email protected]>
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--===============1305567344==
Content-Type: multipart/signed; micalg=pgp-sha1;
 protocol="application/pgp-signature";
 boundary="------------enig300F1AB69CE783E9F73F8508"

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig300F1AB69CE783E9F73F8508
Content-Type: text/plain; charset=ISO-8859-2
Content-Transfer-Encoding: quoted-printable

matthew abbott wrote:

> Is there a way with the exslt extentions to compare two lists?
>=20
> =20
>=20
> I have a list, a string "a,b" passed in as a parameter or variable and =
i have an attribute in my xml file=20
>=20
> <node list=3D"a,b,c"/>
>=20
> =20
>=20
> i need to see if a or b is in the @list attribute

If you don't mind using pure XSLT code, you can use cross.compare named
template from

http://docbook.xml-doc.org/snapshots/xsl/profiling/profile-mode.xsl

--=20
------------------------------------------------------------------
  Jirka Kosek      e-mail: [email protected]      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------


--------------enig300F1AB69CE783E9F73F8508
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkr/MUcACgkQzwmSw7n0dR6azQCeNwW4A1EjjaOVRsgkF8nGY/Xb
hMMAoJWMRJ5DsvrTD7S9hfmKhf5bC3Yu
=N5g1
-----END PGP SIGNATURE-----

--------------enig300F1AB69CE783E9F73F8508--

--===============1305567344==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
exslt mailing list
[email protected]
http://www.exslt.org/list
--===============1305567344==--