XSLT not creating a hyperlink

I am trying to create a hyperlink that includes 3 variables.
I can create the variable section and also the server / file section, but when I try to concatenate / connect them I get an error.  Because the error is a share point web part I am unable to diagnose.

The relevant part is
                     <b>Books:</b> <xsl:variable name="dept"> <xsl:value-of select="substring-before(@SectionName,'-')" /> </xsl:variable>
                                  <xsl:variable name="temp"> <xsl:value-of select="substring-after(@SectionName,'-')" /> </xsl:variable>
                                  <xsl:variable name="course"> <xsl:value-of select="substring-before($temp,'-')" /> </xsl:variable>
                                  <xsl:variable name="section"> <xsl:value-of select="substring-after($temp,'-')" /> </xsl:variable>
                                  <xsl:variable name="dd">?bookstore_id-1=372&amp;term_id-1=SU2011&amp;div-1=&amp;dept-1=<xsl:copy-of select="$dept" />&amp;course-1=<xsl:copy-of select="$course" />&amp;section-1=<xsl:copy-of select="$section" /></xsl:variable>
                 I am trying to format the output so it looks like the following string
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I don't know exactly why your code does not work, probably because some whitespace appeared inside the link.
I reformatted your XSLT, in order to make more neat and short.
Please try it, may be that will help.

<xsl:variable name="dept" select="substring-before(@SectionName,'-')" />
<xsl:variable name="temp" select="substring-after(@SectionName,'-')" />
<xsl:variable name="course" select="substring-before($temp,'-')" />
<xsl:variable name="section" select="substring-after($temp,'-')" />
<xsl:variable name="dd" select="concat('?bookstore_id-1=372&amp;term_id-1=SU2011&amp;div-1=&amp;dept-1=', $dept, 
'&amp;course-1=', $course, '&amp;section-1=', $section )" />

Open in new window

bcrooksAuthor Commented:
what you sent me does not create a hyperlink - I need to to concatenate

  <a href=http://www.bkstr.com/webapp/wcs/stores/servlet/booklookServlet
(which never changes)

(with this works I can create this text string)

"> Books </a>
(this closes out the hyperlink tag)

The problem I'm having is connecting these three strings
Like that?

<a href="{concat('http://www.bkstr.com/webapp/wcs/stores/servlet/booklookServlet?bookstore_id-1=372&amp;term_id-1=SU2011&amp;div-1=&amp;dept-1=', $dept, 
'&amp;course-1=', $course, '&amp;section-1=', $section )}"> Books </a>

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Become a Microsoft Certified Solutions Expert

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

bcrooksAuthor Commented:
This is the error I receive

Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Windows SharePoint Services-compatible HTML editor such as Microsoft Office SharePoint Designer. If the problem persists, contact your Web server administrator.
bcrooksAuthor Commented:
sorry - happy fat fingers screwed me up.

That is exactly what i needed - I was close

Thank you
You're welcome
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.