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

Scripts • How to expand xref rid in XML with a script?

$
0
0
Hi all,

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

Sample input:

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>
The output after script execution is:

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>
The expected output should be:

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...
expand_rid_in_xml.zip (947 Bytes)   0

statistics: Posted by Samir13:56 - Aug 10 — Replies 4 — Views 11563



Viewing all articles
Browse latest Browse all 305

Trending Articles