Search

Hi folks

I use Markdown text formatter for several textareas. Now my XML documents include HTML codes which will be left out when bringing XML elements’ values to HTML documents.

The XML doc: <content word-count="11"><p>Lorem ipsum.</p></content>

How could I manage that this HTML tags aren’t used as XML tags?

Hi swissbastian — not sure I understand your question. Are you asking how do you insert the XML nodes inside the content node into your HTML?

If you use an xsl:value-of you will just get the text content. However if you use xsl:copy-of you will select the nodes as well:

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

This will select all child nodes inside content.

Is that close?

Ah, that’s exactly what I was looking for. Thanks, Nick!

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