Search

In my xml i got 5 link nodes; how can i filter them (based on “rel” or “type” i guess) so i can select a unique href attribute?

the xml:

What you’re looking for are predicates:

<xsl:value-of select="link[@rel='replies' and @rel='text/html']/@href" />

Thanks! works I guess i should get into xlst a bit more, But this saved me a lot of time searching!

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details