[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: String manipulation in Xslt 1.0

Subject: Re: String manipulation in Xslt 1.0
From: "Wendell Piez wapiez@xxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 25 Aug 2020 16:36:55 -0000
Re:  String manipulation in Xslt 1.0
Hi,

So, David's solution to the nearly-same question (of earlier this
month) is also applicable here.

https://www.biglist.com/lists/lists.mulberrytech.com/xsl-list/archives/202008
/msg00094.html

A small adjustment will be necessary in one or two places.

Cheers, Wendell

On Tue, Aug 25, 2020 at 12:28 PM Prady Prady prady.chin@xxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> Thank you.. But don't I have to loop thru?
>
> Eg input :
>
> Input:
>
> <Payments>
>
> <Payment>
>
> <invoiceDetails>order1#amt1;order2#amt2;</invoiceDetails>
>
>
> </Payment>
>
> </Payments>
>
>
> Output:
>
>
> <Payments>
>
> <Payment>
>
> <invoiceDetails>order1;order2</invoiceDetails>
>
> </Payment>
>
> </Payments>
>
>
>
> On Tue, 25 Aug 2020 at 12:23, Liam R. E. Quin liam@xxxxxxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>>
>> On Tue, 2020-08-25 at 15:46 +0000, Prady Prady prady.chin@xxxxxxxxx
>> wrote:
>> > Team,
>> >
>> > I need  to delete string between b:b and b;b
>>
>> 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
> EasyUnsubscribe (by email)



--
...Wendell Piez... ...wendell -at- nist -dot- gov...
...wendellpiez.com... ...pellucidliterature.org... ...pausepress.org...
...github.com/wendellpiez... ...gitlab.coko.foundation/wendell...

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.