Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #75454

Re: How to loop through nodes of xml through xslt

References <CAGxOggHnagZzXxCTCs9ZKxrwKV0oDcDXykOw6izDZS8MOubVtA@mail.gmail.com> <CAGGBd_pR8TeAmw3c6aQV=wptxsp5rnrrYPULxyVQrEL5pqn9AQ@mail.gmail.com> <CAGxOggH2hDM-i97Rx371HxHJWbXJC_D_zg5=S9Bb_n0V7Yh0hQ@mail.gmail.com>
Date 2014-07-31 19:48 -0700
Subject Re: How to loop through nodes of xml through xslt
From Dan Stromberg <drsalists@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.12499.1406861302.18130.python-list@python.org> (permalink)

Show all headers | View raw


You're probably still better off finding an XSLT mailing list.

On Thu, Jul 31, 2014 at 12:31 AM, varun bhatnagar <varun292006@gmail.com> wrote:
> 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


Thread

Re: How to loop through nodes of xml through xslt Dan Stromberg <drsalists@gmail.com> - 2014-07-31 19:48 -0700

csiph-web