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
 <h2 class="demoHeaders">Tabs </h2>
    <div id='tabs'>

Anytime i save the code in SP Designer 2010 the div changes to:

  <div id='tabs{generate-id()}'>

The trick in SP Designer was to create a variable and then use it but it doesn't work in SP Designer 2010. Any ideas?

share|improve this question
What code have you tried already that isn't working? – iOnline247 Jul 21 '11 at 3:59

You need create a parameter:

<xsl:param name="videolinkshow" />


<div id="back{$videolinkshow}"></div>
share|improve this answer
Creating a parameter or giving id in braces (e.g. <div id="{divId}"></div>) did not work. Any other way to do it? – user4939 Sep 22 '11 at 7:51

I blogged this here: Hope that helps

share|improve this answer
please add some insights from your article rather than just shameless plug your blog, please! :-) – Anders Rask Sep 22 '11 at 12:04
Anders anything wrong with what i did? No Idea – naijacoder Oct 24 '11 at 0:47
As i said: post relevant info in your answer and then link to your blog, else your answer might get misunderstood as overt self-promotion. Also we want our answers to stay in the site, since external links tend to become stale quite fast. Read more in our FAQ – Anders Rask Oct 24 '11 at 7:01
Thanks for the update – naijacoder Oct 24 '11 at 7:18
You didnt fix it thou ;) – Anders Rask Oct 24 '11 at 15:44

Your Answer


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.