Skip to content

Instantly share code, notes, and snippets.

@iwyg
Created May 8, 2012 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iwyg/2635795 to your computer and use it in GitHub Desktop.
Save iwyg/2635795 to your computer and use it in GitHub Desktop.
xhr submit form in symphony cms
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" extension-element-prefixes="exsl" version="1.0" >
<xsl:import href="../utilities/xml2json.xsl"/>
<xsl:template match="data">
<xsl:variable name="event">
<xsl:element name="{events/post-comment/@result}">
<xsl:copy-of select="events/post-comment/*""/>
</xsl:element>
</xsl:variable>
<xsl:apply-templates select="exsl:node-set($event)"/>
</xsl:template>
</xsl:stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment