xsl-list
[Top] [All Lists]

Re: [xsl] String manipulation in Xslt 1.0

2020-08-25 11:23:14
On Tue, 2020-08-25 at 15:46 +0000, Prady Prady 
prady(_dot_)chin(_at_)gmail(_dot_)com
wrote:
Team,

I need  to delete string between ‘:’ and “;”

Some implementations (including xsltproc) have a regular expression
replace facility.

Otherwise, you could use,
   concat(
      substring-before(., ':'),
      ';',
      substring-after(., ';')
   )

Liam

-- 
Liam Quin, https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations:  http://www.fromoldbooks.org
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>