Search

Hello,

I have this code http://xpathr.com/view/2961956/

Could someone explain why does the section node gets matched, if I match <xsl:apply-templates select="corsi-per-tutti" />?

Sure the section node has a handle, but I thought apply-templates would match just node names, not attributes...

Thank you very much

Hi Manaus,

It's not matching the section via its attribute - you don't have a template that matches the corsi-per-tutti node, so your <xsl:apply-templates select="corsi-per-tutti" /> is applying XSLT's default template which outputs the text content of corsi-per-tutti.

xpathr gist forked.

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