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


Groups > comp.lang.python > #20344

Re: XSLT to Python script conversion?

From Stefan Behnel <stefan_ml@behnel.de>
Subject Re: XSLT to Python script conversion?
Date 2012-02-13 14:34 +0100
References <jharfo$1rij$1@ns.felk.cvut.cz>
Newsgroups comp.lang.python
Message-ID <mailman.5759.1329140063.27778.python-list@python.org> (permalink)

Show all headers | View raw


Matej Cepl, 13.02.2012 12:20:
> I am getting more and more discouraged from using XSLT for a transformation
> from one XML scheme to another one.

Could you explain what it is that discourages you about it? That would
allow us to come up with better alternatives for your specific problem.


> Does anybody could share any experience
> with porting moderately complicated XSLT stylesheet
> (https://gitorious.org/sword/czekms-csp_bible/blobs/master/CEP2OSIS.xsl)
> into a Python script using ElementTree's interparse or perhaps xml.sax?
> 
> Any tools for this? Speed differences (currently I am using xsltproc)? Any
> thoughts?

You could try switching to lxml. It would at least allow you to do a part
of the processing in Python and only use XSLT when it seems more
appropriate and/or easier.

Stefan

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

XSLT to Python script conversion? Matej Cepl <mcepl@redhat.com> - 2012-02-13 12:20 +0100
  Re: XSLT to Python script conversion? Stefan Behnel <stefan_ml@behnel.de> - 2012-02-13 14:34 +0100
  Re: XSLT to Python script conversion? "Mike C. Fletcher" <mcfletch@vrplumber.com> - 2012-02-13 11:28 -0500
  Re: XSLT to Python script conversion? Tim Arnold <Tim.Arnold@sas.com> - 2012-02-15 12:48 -0500
    Re: XSLT to Python script conversion? Matej Cepl <mcepl@redhat.com> - 2012-02-16 18:17 +0100
      Re: XSLT to Python script conversion? Ross Ridge <rridge@csclub.uwaterloo.ca> - 2012-02-17 15:37 -0500
        Re: XSLT to Python script conversion? Stefan Behnel <stefan_ml@behnel.de> - 2012-02-17 21:53 +0100
          Re: XSLT to Python script conversion? Ross Ridge <rridge@csclub.uwaterloo.ca> - 2012-02-17 16:11 -0500

csiph-web