This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Looping over characters in a string


  Just to add to that - if you don't know what characters might be in
  the tag element value (i.e. can't write a string that holds them all),
  you could use the value itself as the first string, and use a *long*
  list of Xs as the second string:

    translate(tag, tag, $lots-of-Xs)

Of course if you don't want to take the risk of your $lots-of-Xs
not being long enough, you could generate it dynamically by looping over
the orgininal string, making X's as you go.....

David


_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]