[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Match content within Two Files
Can you use file 2 to drive the processing flow? Find the file references in it and open file 1 to find your other details? That way file 2 drives the work flow and file 1 is just there as a lookup table.Sent from my Verizon, Samsung Galaxy smartphone -------- Original message --------From: "Byomokesh Sahoo sahoo.byomokesh@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: 8/19/24 12:12 PM (GMT-08:00) To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Match content within Two Files Hi,I have two files. Take theB TITLE value from File 1 and match the content in file 2, then placing the tag as per file 1 including <XREFID>, and <LEGNAME>. Find the below File -1<data><row><PARENTELEMENT>para0</PARENTELEMENT><TITLE>s 588FGA</TITLE><PARENTID>220-5</PARENTID><XREFID>CTH_ACT_2001-50_SEC588FGA</XR EFID><FLAG>False</FLAG><CONTENTSTREAM>legislation</CONTENTSTREAM><SOURCECONTE NTSTREAM>hla-au</SOURCECONTENTSTREAM><JURIS>CTH</JURIS><LEGNAME>STS Act</LEGNAME></row><row><PARENTELEMENT>para0</PARENTELEMENT><TITLE>s 22A(1)</TITLE><PARENTID>220-5</PARENTID><XREFID>NSW_ACT_1987-33_SEC22ASUB1</X REFID><FLAG>False</FLAG><CONTENTSTREAM>legislation</CONTENTSTREAM><SOURCECONT ENTSTREAM>hla-au</SOURCECONTENTSTREAM><JURIS>NSW</JURIS><LEGNAME>Public Authorities</LEGNAME></row>File - 2<md><chapter><num>1</num><paras id="HLA_220_1_A"><para0 curr="26-03-2018" id="220-1"><num>[220-1]</num><title>Obligations</title> B B <text>If, however, the payment s 22A(1) made without</text></para0><para0 curr="26-03-2018" id="220-5"><num>[220-5]</num> B <p><text>If, however, the payment s 588FGA made without</text></p><footnote><num>1</num><p><text>See, for example, Corporations Act 2001 s 588FGA.</text></p></footnote> B </para0> B </paras></chapter> B </md>Output Should be<md><chapter><num>1</num><paras id="HLA_220_1_A"><para0 curr="26-03-2018" id="220-1"><num>[220-1]</num><p><text>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></p></para0><para0 curr="26-03-2018" id="220-5"><num>[220-5]</num> B <p><text>Test time</text></p><footnote><num>1</num><p><text>See, for example, Corporations Act 2001 <strf jd="CTH" id="CTH_ACT_1975-91"><strfact>STS Act</strfact><sec id="CTH_ACT_2001-50_SEC588FGA">s 588FGA</sec></strf>.</text></p></footnote> B </para0> B </paras></chapter> B </md>Please help.thanksSahoo XSL-List info and archive EasyUnsubscribe (by email)
|
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
|