Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • shine 43 posts 83 karma points
    May 16, 2013 @ 08:50
    shine
    0

    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

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    May 16, 2013 @ 18:31
    Jan Skovgaard
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft