Created
January 28, 2010 16:09
-
-
Save dtan/288871 to your computer and use it in GitHub Desktop.
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
<xsl:template match="body//*"> | |
<xsl:element name="{name()}"> | |
<xsl:apply-templates select="* | @* | text()"/> | |
</xsl:element> | |
</xsl:template> | |
<xsl:template match="body//@*"> | |
<xsl:attribute name="{name(.)}"> | |
<xsl:otherwise><xsl:value-of select="."/></xsl:otherwise> | |
</xsl:attribute> | |
</xsl:template> | |
<!-- from niels : http://symphony-cms.com/get-involved/member/Nils/ --> | |
<xsl:template match="@src" priority="1"> | |
<xsl:attribute name="src"> | |
<!-- of course better to make the /image/2/450/300/1 dynamically generated! --> | |
<xsl:value-of select="concat($root, '/image/2/450/300/1', substring-after(., $workspace))"/> | |
</xsl:attribute> | |
</xsl:template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment