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:
The output after script execution is:
The expected output should be:
Can anyone help me...
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: Select all
<xref ref-type="bibr" rid="ref2_33">33</xref>–<xref ref-type="bibr" rid="ref2_39">39</xref>
<xref ref-type="bibr" rid="ref2_33">Refs. 33</xref>–<xref ref-type="bibr" rid="ref2_39">39</xref>
Code: Select all
<xref ref-type="bibr" rid="ref2_33 ref2_34 ref2_35 ref2_36 ref2_37 ref2_38 ref2_39">33–39</xref>
<xref ref-type="bibr" rid="">Refs. 33–39</xref>
Code: Select all
<xref ref-type="bibr" rid="ref2_33 ref2_34 ref2_35 ref2_36 ref2_37 ref2_38 ref2_39">33–39</xref>
<xref ref-type="bibr" rid="ref2_33 ref2_34 ref2_35 ref2_36 ref2_37 ref2_38 ref2_39">Refs. 33–39</xref>
- expand_rid_in_xml.zip (947 Bytes) 0