Changeset 63 for trunk


Ignore:
Timestamp:
05/05/08 16:34:35 (16 years ago)
Author:
pinsard
Message:

usage of xml(starlet) in twindoi.sh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/twindoi.sh

    r56 r63  
    1717# $ ./twindoi.sh -i data/biball.xml -t raw 
    1818# $Id$ 
     19# fplod 2008-05-05T14:26:31Z aedon.locean-ipsl.upmc.fr (Darwin) 
     20# usage of xml(starlet) for doi extraction in xml file 
     21# fplod 2007-06-20T16:12:22Z aedon.locean-ipsl.upmc.fr (Darwin) 
     22# consolidation and homogeneisation 
    1923# smasson 2007-06-20T16:11:47Z 
    2024# creation 
    21 # fplod 2007-06-20T16:12:22Z aedon.locean-ipsl.upmc.fr (Darwin) 
    22 # consolidation and homogeneisation 
    2325# 
    2426# 
     
    7981        ;; 
    8082     xml) 
    81         grep -i '<biblioid class="doi">' ${filexml} | \ 
    82         sed -e 's+^.*<biblioid class="doi">\(.*\)</biblioid>.*$+\1+' | \ 
     83        xml sel -N dbk="http://docbook.org/ns/docbook" \ 
     84        -t -m "//dbk:biblioid[@class='doi']" -v . -n ${filexml} | \ 
    8385        grep -v "???" | \ 
    8486        sort -d > /tmp/doilist.txt 
Note: See TracChangeset for help on using the changeset viewer.