Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
here is my xslt
<xsl:for-each select="$currentPage/ancestor-or-self::SiteRoot/SEGWThreeTextCol/ImageGallery"> <img style="width: 914px;" > <xsl:attribute name="src"> <xsl:value-of select="image"/> </xsl:attribute> </img> </xsl:for-each>
which generate the path like /media/4578/1.jpg
i want to remove the media folder in my path and want to replace '/' tag to '\/' that means
i want to path \/4578\/1.jpg using starts with and ends with function for my above xslt
Hi Shine
What is your reason for wanting to do so? By removing "media" you ruin the path for the image and you will get a broken image in your browser instead? Perhaps some redirection stuff can be done but I'm not sure I'm getting the point of doing so?
/Jan
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How we can use starts with and end ends with in xslt?
here is my xslt
<xsl:for-each select="$currentPage/ancestor-or-self::SiteRoot/SEGWThreeTextCol/ImageGallery">
<img style="width: 914px;" >
<xsl:attribute name="src">
<xsl:value-of select="image"/>
</xsl:attribute>
</img>
</xsl:for-each>
which generate the path like /media/4578/1.jpg
i want to remove the media folder in my path and want to replace '/' tag to '\/' that means
i want to path \/4578\/1.jpg using starts with and ends with function for my above xslt
Hi Shine
What is your reason for wanting to do so? By removing "media" you ruin the path for the image and you will get a broken image in your browser instead? Perhaps some redirection stuff can be done but I'm not sure I'm getting the point of doing so?
/Jan
is working on a reply...