xsl-list
[Top] [All Lists]

Re: [xsl] How to find out if Xml contains two or more equal element name value with xsl?

2016-09-07 05:13:53
On 07/09/16 10:44, Rahul Singh rahulsinghindia15(_at_)gmail(_dot_)com wrote:
Hi,

I have only one XML. and there <Nid> contains same data like 000817441.
I want to throw an email for same data. 

If you just need to extract the value and email it to (let us assume)
the Id, you could use lxprintf:

$ lxprintf -e 'Nid[.=following::Nid][not(.=preceding::Nid)]' "%s\n" .
test.xml

and pipe the result into a mail utility.

///Peter
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>