Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

my xslt:

<a href="?Filter={$itleUrl}"><xsl:value-of select="@Title" /></a>

I get this output if the title is P&O: P&O

but what i realy want is that he ignores the special characters, because the filter thinks it's a extra value. Is this possible? I already tried disable-output-escaping but nothing happens.

share|improve this question
add comment

1 Answer 1

If the value $itleUrl comes from a Hyperlink column use the XSLT OuterTemplate.GetSafeLink to retrieve the pure URL path.

Example below is standard XSLT found in most templates in the default ItemStyle.xsl file.

<xsl:variable name="SafeLinkUrl">
  <xsl:call-template name="OuterTemplate.GetSafeLink">
    <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
  </xsl:call-template>
</xsl:variable>

Create your own variable with the below and you should be good to go.

<xsl:call-template name="OuterTemplate.GetSafeLink">
  <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
</xsl:call-template>
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.