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:

      <inm:PDF-Full-Text-Link>\\cas122\PDF\23269562
.pdf
      </inm:PDF-Full-Text-Link>
      <inm:PDF-Full-Text-Link>\\cas122\PDF\23269562suppl.pdf</inm:PDF-Full-Text-Link>

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="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:inm="http://www.inmagic.com/webpublisher/query">
    <xsl:output omit-xml-declaration="no" indent="yes"/>
    <xsl:strip-space elements="*"/>
    <xsl:template match="node()|@*">
        <xsl:copy>
            <xsl:apply-templates select="node()|@*"/>
        </xsl:copy>
    </xsl:template>
   
    <xsl:template match="inm:PDF-Full-Text-Link[normalize-space(.)]">
        <xsl:copy>
            <xsl:apply-templates select="@*"/>
            <xsl:value-of select="concat( '\\cas122\PDF\', .,'.pdf')"/>
        </xsl:copy>
    </xsl:template>  
</xsl:stylesheet>

Some sample input attached.
multiplePDF-sample.xml
GessWurkerAsked:
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
0

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!
0
Geert BormansInformation ArchitectCommented:
welcome
0
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
XML

From novice to tech pro — start learning today.