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]

Looping over characters in a string


Is it possible to loop over characters in a string?  For example, I want:

XML: <tag>value</tag>

HTML: XXXXXvalue
(5 X's, 1 for each character of 'value')

XSL: (?)
<for-each select="tag[character]"> (??)
  <xsl:text>X</xsl:text>
</for-each>
<xsl:value-of select="tag"/>

Does anyone have the magic XSL code for this?

Thanks!
-Ted

Ted Weatherly                         Usability Engineer, R&D
Slam Dunk Networks, Inc.                    main 650.632.5500
http://www.slamdunknetworks.com           direct 650.632.5594
email: tweather@slamdunknetworks.com         fax 650.632.5501
 

 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]