how to propagete text.
Hi,
We need to propagate some element. Here i have pasted input and output file for your reference.
Instruction:
1. If "</HR-CP><HR-CP>" occurs then <DE> and <OR> tags are copied within the HR-CP closing and opening.
2. In case <OR> Tag placed in between </HR-CP> and <HR-CP> then we have to use <DE>
3. if morethan one <DE> comes in xml we have to use the second <DE> propagate on </HR-CP> and <HR-CP>
For your reference please see below sample:
Input File:
<HR>
<DE>[]FIRST DESCRIPTOR[]</DE>
<OR>&rtrif; 64.451</OR>
<OR>&rtrif; 64.452</OR>
<OR>&rtrif; 64.458</OR>
<HR-CP>In passing upon petitions to sever craft or departmental not limited to the following:</HR-CP>
<HR-CP>(1) Whether proposed unit consists of distinct and homogeneous group of separate representation exists</HR-CP>
<OR>&rtrif; 64.457</OR>
<HR-CP>(2) History of collective bargaining of stable labor relations and whether such stability will be unduly disrupted by severance.</HR-CP>
<OR>&rtrif; 64.457</OR>
<HR-CP>(3) Extent to which employees sought have established and obtain separate representation</HR-CP>
<OR>&rtrif; 64.457</OR>
<HR-CP>(4) History and pattern of collective bargaining in industry involved</HR-CP>
<OR>&rtrif; 64.453</OR>
<HR-CP>(5) Degree of integration of employer<A1>s production processes, employees in proposed unit</HR-CP>
<OR>&rtrif; 64.458</OR>
<HR-CP>(6) Qualifications of union seeking to action</HR-CP>
<OR>&rtrif; 64.451</OR>
<OR>&rtrif; 64.452</OR>
<OR>&rtrif; 64.453</OR>
<OR>&rtrif; 64.458</OR>
<HR-CP>In passing upon petitions to sever </HR-CP>
<DE>[]SECOND DESCRIPTOR[]</DE>
<OR>&rtrif; 64.453</OR>
<OR>&rtrif; 64.5312</OR>
<OR>&rtrif; 65.54</OR>
<HR-CP>Unit of instrument mechanics may not be carv</HR-CP>
<HR-CP>Second test text</HR-CP>
</HR>
Outputfile:
<HEADNOTE>
<DESCRIPTOR>FIRST DESCRIPTOR</DESCRIPTOR>
<OUTLINE.REF REF="64.451">▸64.451</OUTLINE.REF>
<OUTLINE.REF REF="64.452">▸64.452</OUTLINE.REF>
<OUTLINE.REF REF="64.458">▸64.458</OUTLINE.REF>
<PARA>In passing upon petitions to sever craft or departmental not limited to the following:</PARA>
</HEADNOTE>
<HEADNOTE>
<DESCRIPTOR>FIRST DESCRIPTOR</DESCRIPTOR>
<OUTLINE.REF REF="64.451">▸64.451</OUTLINE.REF>
<OUTLINE.REF REF="64.452">▸64.452</OUTLINE.REF>
<OUTLINE.REF REF="64.458">▸64.458</OUTLINE.REF>
<PARA>(1) Whether proposed unit consists of distinct and homogeneous group of separate representation exists</PARA>
</HEADNOTE>
<HEADNOTE>
<DESCRIPTOR>FIRST DESCRIPTOR</DESCRIPTOR>
<OUTLINE.REF REF="64.457">▸64.457</OUTLINE.REF>
<PARA>(2) History of collective bargaining of stable labor relations and whether such stability will be unduly disrupted by severance.</PARA>
</HEADNOTE>
<HEADNOTE>
<DESCRIPTOR>FIRST DESCRIPTOR</DESCRIPTOR>
<OUTLINE.REF REF="64.457">▸64.457</OUTLINE.REF>
<PARA>(3) Extent to which employees sought have established and obtain separate representation</PARA>
</HEADNOTE>
<HEADNOTE>
<DESCRIPTOR>FIRST DESCRIPTOR</DESCRIPTOR>
<OUTLINE.REF REF="64.457">▸64.457</OUTLINE.REF>
<PARA>(4) History and pattern of collective bargaining in industry involved</PARA>
</HEADNOTE>
<HEADNOTE>
<DESCRIPTOR>FIRST DESCRIPTOR</DESCRIPTOR>
<OUTLINE.REF REF="64.453">▸64.453</OUTLINE.REF>
<PARA>(5) Degree of integration of employer<A1>s production processes, employees in proposed unit</PARA>
</HEADNOTE>
<HEADNOTE>
<DESCRIPTOR>FIRST DESCRIPTOR</DESCRIPTOR>
<OUTLINE.REF REF="64.458">▸64.458</OUTLINE.REF>
<PARA>(6) Qualifications of union seeking to action</PARA>
</HEADNOTE>
<HEADNOTE>
<DESCRIPTOR>FIRST DESCRIPTOR</DESCRIPTOR>
<OUTLINE.REF REF="64.451">▸64.451</OUTLINE.REF>
<OUTLINE.REF REF="64.452">▸64.452</OUTLINE.REF>
<OUTLINE.REF REF="64.453">▸64.453</OUTLINE.REF>
<PARA>In passing upon petitions to sever</>
</HEADNOTE>
<HEADNOTE>
<DESCRIPTOR>SECOND DESCRIPTOR</DESCRIPTOR>
<OUTLINE.REF REF="64.453">▸64.453</OUTLINE.REF>
<OUTLINE.REF REF="64.5312">▸64.5312</OUTLINE.REF>
<OUTLINE.REF REF="65.54">▸65.54</OUTLINE.REF>
<PARA>Unit of instrument mechanics may not be carv</PARA>
</HEADNOTE>
<HEADNOTE>
<DESCRIPTOR>SECOND DESCRIPTOR</DESCRIPTOR>
<OUTLINE.REF REF="64.453">▸64.453</OUTLINE.REF>
<OUTLINE.REF REF="64.5312">▸64.5312</OUTLINE.REF>
<OUTLINE.REF REF="65.54">▸65.54</OUTLINE.REF>
<PARA>Second test text</PARA>
</HEADNOTE>
|