Search

Hi, guys. How to see xml without debug devkit, just in browser? Thanks.

You could simply use <xsl:comment><xsl:copy-of select="/" /></xsl:comment> on the page in question. The XML will then appear in a comment block in your HTML-source.

It isn`t flexible solution for developing xslt-template. Is there any other way?

Yes, use the debug devkit. That's what it's for.

safari web inspector or firefox firefly?

I want to use safari xml view plugin instead debug devkit. But seems no solutions for that^^.

You could always just use a URL parameter to switch between output and your template:

<xsl:variable name="url-show-xml" select="'false'"/>
<xsl:apply-templates match="/">
  <xsl:choose>
    <xsl:when test="$url-show-xml = 'true'">
      <xsl:copy-of select="/"/>
    </xsl:when>
    <xsl:otherwise>
      <!-- Normal stuff here -->
    </xsl:otherwise>
  </xsl:choose>
</xsl:apply-templates>

I think using the Debug DevKit makes more sense, but whatever floats your boat.

It sounds more like you're trying to hack someone else's Symphony site... :-)

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