SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

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.