Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 12th, 2005, 10:19 PM
Authorized User
 
Join Date: Oct 2005
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default String Problem

I have a string(s1) which I want to tag. I also have a list of
strings(validstr) which I call valid strings. The tagging should occur if a substring in s1 matches one or all of the validstr.
The tag should be place in the match string.
Example:
<s1>Name1 and Name3 also Name4 Name5 but not Name2</s1>
validstr = (Name1, Name2, Name4 Name5)
output should be:
<s1>
 <name1>Name1</name1> and <name3>Name3</name3> also
<name4name5>Name4 Name5</name4name5> but not Name2
</s1>
is there a way I can do this? I'm trying to look for a string function that can get the value and removes the value from the string, but I can't find one. Thanks.







Similar Threads
Thread Thread Starter Forum Replies Last Post
Query string problem sathish_reddy ASP.NET 2.0 Basics 0 February 23rd, 2007 08:18 AM
String Problem seran128 ASP.NET 2.0 Basics 1 April 13th, 2006 11:11 AM
string problem shoakat Classic ASP Databases 3 October 20th, 2004 08:53 AM
Problem with the connection string?? budman Access ASP 2 March 29th, 2004 07:12 AM
connection string problem mateenmohd SQL Server 2000 2 September 3rd, 2003 01:41 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.