Subject: Re: [xsl] Match content within Two Files From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 23 Aug 2024 12:04:31 -0000 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Match content within Two File, Byomokesh Sahoo saho | Thread | [xsl] Scope of =>, Leo Studer leo.stude |
[xsl] Match content within Two File, Byomokesh Sahoo saho | Date | |
Month |