Quantcast
Channel: UltraEdit, UltraCompare, UEStudio forums
Viewing all articles
Browse latest Browse all 307

Scripts • XREF RID EXPEND IN XML

$
0
0
Hi all,

I am trying to expand xref rid value based on specific ref-type, I am trying to create a script which is attached.

sample input like

Code:

<xref ref-type="bibr" rid="ref2_33">33</xref>&#x2013;<xref ref-type="bibr" rid="ref2_39">39</xref><xref ref-type="bibr" rid="ref2_33">Refs. 33</xref>&#x2013;<xref ref-type="bibr" rid="ref2_39">39</xref>

After run script output like

Code:

<xref ref-type="bibr" rid="ref2_33 ref2_34 ref2_35 ref2_36 ref2_37 ref2_38 ref2_39">33&#x2013;39</xref><xref ref-type="bibr" rid="">Refs. 33&#x2013;39</xref>
Expected Output:

Code:

<xref ref-type="bibr" rid="ref2_33 ref2_34 ref2_35 ref2_36 ref2_37 ref2_38 ref2_39">33&#x2013;39</xref><xref ref-type="bibr" rid="ref2_33 ref2_34 ref2_35 ref2_36 ref2_37 ref2_38 ref2_39">Refs. 33&#x2013;39</xref>

Can anyone help me...
expend_rid_in_xml.zip (951 Bytes)   0

statistics: Posted by Samir13:56 - 1 day ago — Replies 2 — Views 130



Viewing all articles
Browse latest Browse all 307

Trending Articles