Copied to clipboard

Flag this post as spam?

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


  • Alex Perotti 2 posts 22 karma points
    May 10, 2012 @ 11:45
    Alex Perotti
    0

    Xslt parsing error - special chars

    Hi all,

    I'm using the datatype related links and I have an issue with the xslt templete used to render it (I'm using the default one)

     

    The problem is my link:

    As use see it contains lot of special chars... this somewhat breaks the xslt.
    Can you help me with that?
    Thank you

    <xsl:element name="a">
                <xsl:if test="./@newwindow = '1'">
                  <xsl:attribute name="target">_blank</xsl:attribute>
                </xsl:if>
                <xsl:choose>
                  <xsl:when test="./@type = 'external'">
                    <xsl:attribute name="href">
                      <xsl:value-of select="./@link" disable-output-escaping="yes"/>
                    </xsl:attribute>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:attribute name="href">
                      <xsl:value-of select="umbraco.library:NiceUrl(./@link)"/>
                    </xsl:attribute>
                  </xsl:otherwise>
                </xsl:choose>
                <xsl:value-of select="./@title"/>
              </xsl:element>


Please Sign in or register to post replies

Write your reply to:

Draft