Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75405
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed1.swip.net!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <varun292006@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'output': 0.05; 'attribute': 0.07; 'list?': 0.07; 'append': 0.09; 'dan': 0.09; 'parsing': 0.09; 'subject:xml': 0.09; 'subject:How': 0.10; 'cc:addr:python-list': 0.11; 'posted': 0.15; 'bit.': 0.16; 'cc:name:python list': 0.16; 'fetch': 0.16; 'order?': 0.16; 'sequential': 0.16; '\xc2\xa0you': 0.16; 'files.': 0.16; 'thanks,': 0.17; 'wrote:': 0.18; 'wed,': 0.18; 'trying': 0.19; 'thu,': 0.19; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; 'this?': 0.23; '31,': 0.24; 'merge': 0.24; 'module,': 0.24; 'looks': 0.24; 'cc:2**0': 0.24; "i've": 0.25; '>': 0.26; 'this:': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'xml': 0.29; 'message-id:@mail.gmail.com': 0.30; 'reply.': 0.31; 'anyone': 0.31; 'file': 0.32; 'this.': 0.32; 'quite': 0.32; 'could': 0.34; 'received:google.com': 0.35; 'there': 0.35; 'done': 0.36; 'thanks': 0.36; 'hi,': 0.36; 'two': 0.37; 'list.': 0.37; 'mailing': 0.39; 'how': 0.40; 'read': 0.60; 'liked': 0.60; 'tell': 0.60; 'tag': 0.61; 'different': 0.65; '30,': 0.65; 'to:addr:gmail.com': 0.65; 'jul': 0.74; 'br,': 0.84; 'xslt': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=peuHbdKVQ4BYHtAkpEdmnXy+x+XFu3HxnAMPe6zeKCk=; b=pxe1AoxZfE1wcIM6hKXIjtphW+X9H+oCwS1prEyXiKnJdM7blkR8dfXBrx46Gf7TT6 4gKTdJ7ILhVjSZ9+bHf+CspTzluJNI+CMj/MkZJzJg+hIKm2DDQqlfjB8Z8ILr7dRFYL SoPTY3d2YBhtxoa27cvkcC5kBvk8FpjMhZePldAfSl2RDaefPMC5nomZl0UvMGuiZclM L/zOJcoo3FroI7h3Ma0vevXASktrEbGu94RnLqmZ2koOegPCegl9ajOZ+MjmNT2wyKjM T+iC3KbDjTOoj6xNLBbL1W1LGoK+FwJ2uQbkGl+t+lelIX45n5fnP7NXkt8mNW0hTB0C Qn5g== |
| MIME-Version | 1.0 |
| X-Received | by 10.236.231.178 with SMTP id l48mr3632071yhq.143.1406791877971; Thu, 31 Jul 2014 00:31:17 -0700 (PDT) |
| In-Reply-To | <CAGGBd_pR8TeAmw3c6aQV=wptxsp5rnrrYPULxyVQrEL5pqn9AQ@mail.gmail.com> |
| References | <CAGxOggHnagZzXxCTCs9ZKxrwKV0oDcDXykOw6izDZS8MOubVtA@mail.gmail.com> <CAGGBd_pR8TeAmw3c6aQV=wptxsp5rnrrYPULxyVQrEL5pqn9AQ@mail.gmail.com> |
| Date | Thu, 31 Jul 2014 09:31:17 +0200 |
| Subject | Re: How to loop through nodes of xml through xslt |
| From | varun bhatnagar <varun292006@gmail.com> |
| To | Dan Stromberg <drsalists@gmail.com> |
| Content-Type | multipart/alternative; boundary=001a11c1bdd428d57004ff784260 |
| Cc | Python List <python-list@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.12459.1406791886.18130.python-list@python.org> (permalink) |
| Lines | 92 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1406791886 news.xs4all.nl 2887 [2001:888:2000:d::a6]:58265 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:75405 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
Hi Dan, Thanks a lot for the reply. I am using lxml for the transformation and I am parsing xsl file using lxml module, that is why posted in this list. Is there any way out to achieve this? Thanks, BR, Varun On Thu, Jul 31, 2014 at 5:47 AM, Dan Stromberg <drsalists@gmail.com> wrote: > On Wed, Jul 30, 2014 at 5:16 AM, varun bhatnagar <varun292006@gmail.com> > wrote: > > Hi, > > > > I have two xml files. > > > I am trying to fetch an output file which looks like this: > > > > Output.xml > > > The number of Procedure tag (<Procedure>) can be different every time. > So I > > have to read this tag every time from each xml and then merge it > > sequentially. > > Can anyone tell me how to achieve this. How can I loop every Procedure > tag > > and and append the attrProc attribute value in a sequential order? > > Did you mean to send this to an XSLT mailing list? You came through > on the python-list. > > If you want to make this about Python, you could try xmltodict or > lxml. I've done two projects with xmltodict recently, and liked it > quite a bit. > > HTH >
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: How to loop through nodes of xml through xslt varun bhatnagar <varun292006@gmail.com> - 2014-07-31 09:31 +0200
csiph-web