Adjust XSL to handle multiple entries properly - strip out unwanted line breaks

I need to adjust the transform below so that it does NOT insert an unwanted line break as seen in this output example:


The problem can occur when there are multiple entries in the PDF-Full-Text-Link field and closing tags follow a line break (I think).

How should the transform be adjusted? Here's the code:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="" xmlns:xsi="" xmlns:inm="">
    <xsl:output omit-xml-declaration="no" indent="yes"/>
    <xsl:strip-space elements="*"/>
    <xsl:template match="node()|@*">
            <xsl:apply-templates select="node()|@*"/>
    <xsl:template match="inm:PDF-Full-Text-Link[normalize-space(.)]">
            <xsl:apply-templates select="@*"/>
            <xsl:value-of select="concat( '\\cas122\PDF\', .,'.pdf')"/>

Some sample input attached.
Who is Participating?
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.

Geert BormansInformation ArchitectCommented:
try this instead

            <xsl:value-of select="concat( '\\cas122\PDF\', normalize-space(.),'.pdf')"/>

edit: tested with your example XML, it is the linebreak immedeatly following the value that is breaking your field up... normalize-space() is indeed the solution to that

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
GessWurkerAuthor Commented:
Thanks! All good!
Geert BormansInformation ArchitectCommented:
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

From novice to tech pro — start learning today.