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

Re: Match content within Two Files

Subject: Re: Match content within Two Files
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 23 Aug 2024 12:04:31 -0000
Re:  Match content within Two Files
On 23/08/2024 14:00, Byomokesh Sahoo sahoo.byomokesh@xxxxxxxxx wrote:
> Hi,
>
> How can I take that particular value without impacting other content
> in the same line?
>
> Example:
>
> <text>If, however, the payment s 22A(1) made without</text>
> should be
> <text>If, however, the payment <strf jd="CTH" id="CTH_ACT_1975-91">
> <strfact>Public Authorities</strfact>
> <sec id="NSW_ACT_1987-33_SEC22ASUB1">s 22A(1)</sec>
> </strf> made without</text>
> In my code elements structure comes in full content instead of particular
matching content.


This seems to be a job for (XSLT 2 and later) the xsl:analyze-string
instruction or (XSLT 3 and later) the XPath 3.1 analyze-string function.
That way you can use regular expressions to process contents based on
matching and/or non-matching parts and insert/create nodes as needed.

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.