Created
May 8, 2012 14:46
-
-
Save iwyg/2635795 to your computer and use it in GitHub Desktop.
xhr submit form in symphony cms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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