Piano Sonata
Minimalist Blog
New#1: get-images.xsl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template name="get-images"> <xsl:param name="image-entry"/> <xsl:apply-templates select="$image-entry/image"> <xsl:with-param name="image-class" select="'full-width'"/> <xsl:with-param name="caption-class" select="'full-width-caption'"/> <xsl:with-param name="width" select="'790'"/> <xsl:with-param name="height" select="'350'"/> </xsl:apply-templates> </xsl:template> <xsl:template match="image"> <xsl:param name="image-class" /> <xsl:param name="caption-class" /> <xsl:param name="width" /> <xsl:param name="height" /> <img src="{$root}/image/2/{$width}/{$height}/2{@path}/{filename}" alt="{description}" class="{$image-class}"/> <!--<p class="{$caption-class}"> <xsl:value-of select="../description"/> </p>--> </xsl:template>
</xsl:stylesheet>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template name="get-images"> <xsl:param name="image-entry"/> <xsl:apply-templates select="$image-entry/image"> <xsl:with-param name="image-class" select="'full-width'"/> <xsl:with-param name="caption-class" select="'full-width-caption'"/> <xsl:with-param name="width" select="'790'"/> <xsl:with-param name="height" select="'350'"/> </xsl:apply-templates> </xsl:template> <xsl:template match="image"> <xsl:param name="image-class" /> <xsl:param name="caption-class" /> <xsl:param name="width" /> <xsl:param name="height" /> <img src="{$root}/image/2/{$width}/{$height}/2{@path}/{filename}" alt="{description}" class="{$image-class}"/> <!--<p class="{$caption-class}"> <xsl:value-of select="../description"/> </p>--> </xsl:template>
</xsl:stylesheet>
Please login to comment.
is this what is rewriting the url to image/2/750/350/2/uploads/filename? I can’t seem to get that to not rewrite the url this way. any ideas? or other places I can look to turn this off?