First of all: THANK YOU! Absolutely terrific program. I love it.
I had only a little troubles with figuring out how to do traversing up/down through the nodes, so I had to make some wild guesses and finally I found it out.
Examples (wrong) -- first part of concat:
xml sel -t -m //doc -m texts -m text -v concat\(parent::text::@id,self::text\) -n -b -b radiology.xml
xml sel -t -m //doc -m texts -m text -v concat\(parent::parent::@id,self::text\) -n -b -b radiology.xml
xml sel -t -m //doc -m texts -m text -v concat\(root::@id,self::text\) -n -b -b radiology.xml
And finally I thought that I ought to exactly traverse the tree, but then I had problems to get id:
xml sel -t -m //doc -m texts -m text -v concat\(parent::texts/parent::doc[@id],self::text\) -n -b -b radiology.xml
And luckily -- bingo:
xml sel -t -m //doc -m texts -m text -v concat\(parent::texts/parent::doc/@id,self::text\) -n -b -b radiology.xml
Such example if found on web page could save some time for me and other users.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First of all: THANK YOU! Absolutely terrific program. I love it.
I had only a little troubles with figuring out how to do traversing up/down through the nodes, so I had to make some wild guesses and finally I found it out.
Examples (wrong) -- first part of concat:
xml sel -t -m //doc -m texts -m text -v concat\(parent::text::@id,self::text\) -n -b -b radiology.xml
xml sel -t -m //doc -m texts -m text -v concat\(parent::parent::@id,self::text\) -n -b -b radiology.xml
xml sel -t -m //doc -m texts -m text -v concat\(root::@id,self::text\) -n -b -b radiology.xml
And finally I thought that I ought to exactly traverse the tree, but then I had problems to get id:
xml sel -t -m //doc -m texts -m text -v concat\(parent::texts/parent::doc[@id],self::text\) -n -b -b radiology.xml
And luckily -- bingo:
xml sel -t -m //doc -m texts -m text -v concat\(parent::texts/parent::doc/@id,self::text\) -n -b -b radiology.xml
Such example if found on web page could save some time for me and other users.