xsl-list
[Top] [All Lists]

Re: [xsl] Re: Need help with tokenize functionality in XSLT 1.0

2020-08-19 18:28:48
might check out exslt extensions which work on libxslt-based
processors for tokenize and some other basic stuff...

On Wed, Aug 19, 2020 at 8:51 AM Prady Prady 
prady(_dot_)chin(_at_)gmail(_dot_)com
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:

Team,

Sorry to re-open this issue.. I haven't realized that I have to use XSLT 1.0 
and  tokenize and regex functionality is NOT supported.

Can I get the alternate solution that works with XSLT 1.0

Here is the question again:


=====================
Input xml:

<Payments>

<Payment>

<invoiceDetails>order1#amt1;order2#amt2;</invoiceDetails>


</Payment>

</Payments>


I need to be able to convert this to:

Output xml:

<Orders>

<Order>

<OrderNumber>order1</OrderNumber>

<Amount>amt1</Amount>

</Order>

<Order>

<OrderNumber>order2</OrderNumber>

<Amount>amt2</Amount>

</Order>

</Orders>

======================

Thank you very much for your help

XSL-List info and archive
EasyUnsubscribe (by email)
--~----------------------------------------------------------------
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>