CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2004
    Posts
    8

    substitue strings in xsl

    I was wondering if someone had a clever way of doing this.

    say i have an xsl variable set to:

    "you have 1 message(s)".

    i want to change it to:
    "you have %1 <a href="blah">message</a>"

    and somehow use an xsl template to substitute %1 with a parameter passed value. the problem i have is that the <a> tag gets stripped out when i use 'substring', since it treats the string as a string, cutting out all nodes.

    any ideas/clues/tips??

    thanks.

  2. #2
    Join Date
    May 2003
    Location
    Denmark
    Posts
    1,315

    Re: substitue strings in xsl

    I'am not sure I'am quite understading you.

    Perhaps you could show us what you have done so far.
    The biggest problem encountered while trying to design a system that was completely foolproof,
    was, that people tended to underestimate the ingenuity of complete fools.
    Douglas Adams

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured