tag:help-archives.hannonhill.com,2010-02-09:/discussions/xslt-formats/6116-preserve-the-p-tag-on-the-contentCascade CMS: Discussion 2018-10-18T20:37:35Ztag:help-archives.hannonhill.com,2010-02-09:Comment/372312362015-07-01T16:02:44Z2015-07-01T16:02:44ZPreserve the <p> tag on the content.<div><p>Hi,</p>
<p>Just wanted to follow up.</p></div>csaladorestag:help-archives.hannonhill.com,2010-02-09:Comment/372312362015-07-01T17:17:34Z2015-07-01T17:17:34ZPreserve the <p> tag on the content.<div><p>Hi Christian,</p>
<p>Looking over the XSLT Formats you attached, I am not seeing any
obvious reason as to why the <code><p></code> tags are being
removed. One thing I'd like for you to try is adjusting your
<code>chooser-summary</code> template to the following to see if
that makes a difference:</p>
<pre>
<code><xsl:template name="choose-summary">
<xsl:if test="system-data-structure/paragraph_content/node()">
<xsl:apply-templates mode="asHTML" select="system-data-structure/paragraph_content"/>
</xsl:if>
</xsl:template></code>
</pre>
<p>So the adjustment here is not to pass in <code>node()</code>
when applying the templates.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/372312362015-07-01T19:34:39Z2015-07-01T19:34:39ZPreserve the <p> tag on the content.<div><p>Hi Ryan,</p>
<p>I tried. Every tags were preserved except the</p>
<p>tag. Does it have something to do with the xhtml2escapedHtml
xslt?</p>
<p>Christian</p></div>csaladorestag:help-archives.hannonhill.com,2010-02-09:Comment/372312362015-07-01T20:03:22Z2015-07-01T20:03:22ZPreserve the <p> tag on the content.<div><p>Hi Christian,</p>
<p>Definitely interesting since there really isn't anything in that
escaping XSLT that appears to be targeting <code><p></code>
tags.</p>
<p>You can certainly try removing the usage of that template and
replace it with <code><xsl:copy-of
select="/path/to/element/node()"/></code>. Note; however, this
will cause your RSS to be invalid since I think the description
can't contain HTML unless it's wrapped with <code>CDATA</code>
tags.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/372312362015-07-01T20:43:42Z2015-07-01T20:43:42ZPreserve the <p> tag on the content.<div><p>That’s what I thought. I’m not sure why others where
encoded but it just stripped the</p>
<p>tags.</p></div>csaladorestag:help-archives.hannonhill.com,2010-02-09:Comment/372312362015-07-02T19:28:03Z2015-07-02T19:28:03ZPreserve the <p> tag on the content.<div><p>Curious, but could you try using <a href="https://github.com/hannonhill/XSLT-Workbook/blob/master/RSS/xhtml2escapedHtml.xsl">
the original version</a> of xhtml2escapedHtml.xsl to see if that
changes the result? Let me know how it goes.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/372312362015-07-02T19:28:55Z2015-07-02T19:28:55ZPreserve the <p> tag on the content.<div><p>Sounds good Ryan. I’ll give it a shot.</p>
<p>Thanks,<br>
Christian</p></div>csaladores