[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|