Adding a string to an href value in XSLT

I am trying to add an anchor tag to an automatically generated URL. The code below shows how it is being called:

            <span style="font: bold 14px Arial, Helvetica, sans-serif; padding: 15px 0;">
                  <a title="Continue reading this post">
                        <xsl:attribute name="href">
                        <xsl:value-of
                              select="met:digestPageUrl(0,$currentObject//path,$portalContext)" />
                  </xsl:attribute>
                        <b>Continue reading this post &#187;</b>
                  </a>
            </span>

I assume I need to add the #tag as a string but I'm stumped as to how to start doing this.

Thanks for your help!
tepper714Asked:
Who is Participating?
 
Geert BormansInformation ArchitectCommented:
Your question is very fuzzy,
but I give it a shot based on the question title

try this
                      <xsl:attribute name="href">
                        <xsl:value-of
                              select="met:digestPageUrl(0,$currentObject//path,$portalContext)" />
                        <xsl:text>#tag</xsl:text>
                  </xsl:attribute>
the two url parts will be concatenated
0
 
tepper714Author Commented:
Thanks, that was very helpful!
0
 
Geert BormansInformation ArchitectCommented:
welcome
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.