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
Hi,
I have this in my xslt
<div id="newscontentArea"> <div id="newscontentHeader"><xsl:value-of select="umbraco.library:ReplaceLineBreaks(contentHeader)" /></div> <div id="newscontentDate"><xsl:value-of select="umbraco.library:ShortDate(@createDate, true(), ' - ')" /></div> <div id="articlecontent"><xsl:value-of select="umbraco.library:TruncateString(umbraco.library:ReplaceLineBreaks(article),72,'')" disable-output-escaping="yes"/> <xsl:if test="string-length(umbraco.library:ReplaceLineBreaks(article) > 72)"> <!-- only show the link if truncated? --> <a href="{umbraco.library:NiceUrl(@id)}"> >> </a> </xsl:if> </div> </div>
Problem 1 .
When i see this in browser then i see the <br> tag after & before this
<div id="articlecontent"><xsl:value-of select="umbraco.library:TruncateString(umbraco.library:ReplaceLineBreaks(article),72,'')" disable-output-escaping="yes"/>
what to do so that i dont get this <br>
Hi vaibhav
Maybe the 'article' contains some line breaks. Could you try outputting the entire content of article in a textarea like this:
<textarea> <xsl:copy-of select="article" /></textarea>
/Kim A
Hi Vaibhav
Is this online somewhere so we can see the generated output?
/Jan
Did you ever find a solution to this issue? If you did, could you post it in here so we can see what caused the "error".
No i dident found the solution for this error......
Have you tried the textarea-trick that I mentioned in my first answer?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Problem with truncatestring in aslt
Hi,
I have this in my xslt
Problem 1 .
When i see this in browser then i see the <br> tag after & before this
what to do so that i dont get this <br>
Hi vaibhav
Maybe the 'article' contains some line breaks. Could you try outputting the entire content of article in a textarea like this:
/Kim A
Hi Vaibhav
Is this online somewhere so we can see the generated output?
/Jan
Hi vaibhav
Did you ever find a solution to this issue? If you did, could you post it in here so we can see what caused the "error".
/Kim A
No i dident found the solution for this error......
Have you tried the textarea-trick that I mentioned in my first answer?
/Kim A
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.