Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8396913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:39:26+00:00 2026-06-09T20:39:26+00:00

I code custom search result page on Sharepoint. I’ve got a problem with XSLT.

  • 0

I code custom search result page on Sharepoint.
I’ve got a problem with XSLT.

Search result from SP is something like:

<Result>
...
<url>http://server/_bdc/name/source.aspx?id=444</url>
...
</Result>

But I want to make own link, from this url variable I want to cut only the id (444):

<a href="http://mynewlink/page.aspx?id=444">MyResult</a>

I tried something like (based on standard SP template)

...
<a>
<xsl:attribute name="href">        
{concat('http://mynewlink/page.aspx?id=', substring-after("{url}", "="))}
</xsl:attribute>
</a>
...

but it didn’t work – I don’t know where put this concat…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T20:39:28+00:00Added an answer on June 9, 2026 at 8:39 pm

    Your code is “almost” correct, start by replacing:

    "{url}" 
    

    with:

    url
    

    Here is a complete transformation:

    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     <xsl:output omit-xml-declaration="yes" indent="yes"/>
     <xsl:strip-space elements="*"/>
    
     <xsl:template match="/*">
        <a href=
           "http://mynewlink/page.aspx?id={substring-after(url,'=')}">MyResult</a>
     </xsl:template>
    </xsl:stylesheet>
    

    When this is applied on the provided XML document:

    <Result>
     ...
     <url>http://server/_bdc/name/source.aspx?id=444</url>
     ...
    </Result>
    

    the wanted, correct result is produced:

    <a href="http://mynewlink/page.aspx?id=444">MyResult</a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Am using Custom Google search in my web page Code: <div id=cse style=width: 100%;>Loading</div>
The following code taken from: Java code for using google custom search API .
Here is my code i am using for custom search, <div id=cse-search-form style=width: 100%;>Loading</div>
When we search a product in magento it shows result on search page with
I just got started with Google API for Custom Search Engine, and I have
I have several pages listing search results, for each result I would like to
right now, i code custom wordpress theme and testing it in xampp windows XP
Is there any code or custom options available to achieve the following : 1>
Check this code (My Custom Keyboard): -(IBAction) updateTextBackSpace:(id)sender { if([txtview.text length]>0) { NSString *deletedLastCharString
How do I execute my custom code after all normal processing associated to changing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.