tag:help-archives.hannonhill.com,2010-02-09:/discussions/xslt-formats/76-can-you-have-start-code-or-system-viewexternal-inside-a-formatCascade CMS: Discussion 2011-07-12T13:11:42Ztag:help-archives.hannonhill.com,2010-02-09:Comment/84669132011-07-12T12:39:24Z2011-07-12T12:39:24ZCan you have START-CODE or system-view:external inside a format?<div><p><a href=
"http://www.hannonhill.com/kb/Code-Sections/">Passthrough Code
Sections</a> are really just HTML comments that instruct Cascade to
ignore whatever is inside the code section until the asset is
published. When you place these passthrough code sections inside of
an XSLT Format, the XSL treats it as a comment in the Format. To
actually have the comment created as a part of the result tree,
you'll need to use the <code><xsl:comment></code> element.
Try something like this:</p>
<pre>
<code><xsl:comment>#START-CODE your code goes here #END-CODE</xsl:comment></code>
</pre>
<p>The <code>[system-view:internal]</code> and
<code>[system-view:external]</code> tags should work just fine from
within an XSLT Format. If you continue to have problems getting
these to work, please attach or paste the related snippet of your
XSLT code here.</p>
<p>Thanks</p></div>Timtag:help-archives.hannonhill.com,2010-02-09:Comment/84669132011-07-12T13:08:49Z2011-07-12T13:08:49ZCan you have START-CODE or system-view:external inside a format?<div><p>I gave up on trying to use pass through in the format. I didn't
use <code><xsl:comment></code> but neither selector seemed to
work. I settled on a Block selector in the Data Definition (between
the two WYSIWYG) and put the PHP code in the block; formating was a
lot easier.</p></div>c-siemstag:help-archives.hannonhill.com,2010-02-09:Comment/84669132011-07-12T13:11:39Z2011-07-12T13:11:39ZCan you have START-CODE or system-view:external inside a format?<div><p>Thanks for the update. Be sure to keep what I mentioned in mind
for any projects you may be attempting in the future that need to
use the passthrough code sections.</p></div>Tim