Search

So I'm new to this stuff and I'm not sure if I really understand what's going on or even what I'm doing.

If someone can redirect me to a good tutorial, I'll be very thankful. (and I mean a complete tutorial not the ones found in this site).

Anyways, I created a new "content" with 1 text input and 1 text area. The text area will contain a long text with html tags so a lot of divs, styles ... U get it.

I'm able to render the text input by using "xsl:apply-templates select"

But i'm not able to render the html tags using "xsl:apply-templates" or "xsl:value-of" ...

Can someone help me with this plz :)

To include HTML tags you need to use <xsl:copy-of select="... instead of <xsl:value-of select="....

If you want HTML tags to be displayed as text then tick the box "HTML-encode text" in your datasource definition.

Thx for your reply.

I did try that already but it didn't work. I got the same result.

Hi devali. If you post your XSL it will probably help us to see what the issue may be.

Hi, I managed to solve the problem by using this :

<xsl:value-of select=".." disable-output-escaping="yes"/>

It looked like I had a ![CDATA[ in my xml file just before the html code. Can anybody explain this issue please ?

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