Markdown: HTML code within XML elements
This is an open discussion with 2 replies, filed under XSLT.
Search
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.
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?