Search

Sorry if this is a FAQ.

But when i use <xsl:copy-of select="..../content" />

The output wraps <content mode="formatted"> around my html?

Yep, because this is saying "perform a copy of my content element". If you just want the elements (HTML) within, select all children:

<xsl:copy-of select="content/*" />

copy-of does what its says. It doesn't wrap the content node around hour html. It copies it because it's selected in the @select. Try <xsl:copy-of select="..../content/*"/> (added the star selector).

Thanks, just found it on page 5 or so of my forum search :)

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