Giter VIP home page Giter VIP logo

web-xslt's People

Watchers

 avatar

web-xslt's Issues

Python lxml fails to load pmml2texfrag.xsl

I'm following the instructions in: http://codespeak.net/lxml/xpathxslt.html#xslt

$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import lxml.etree
>>> doc = lxml.etree.parse(file('pmml2texfrag.xsl'))
>>> xslt = etree.XSLT(doc)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'etree' is not defined
>>> xslt = lxml.etree.XSLT(doc)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "xslt.pxi", line 399, in lxml.etree.XSLT.__init__ (src/lxml/lxml.etree.c:107912)
lxml.etree.XSLTParseError: Attribute 'p': Failed to compile the expression 
'sum($position,@position/number(.))' in the AVT.
>>> 

This could, of course, be a lxml issue (but I don't know either way).

Jonathan

Original issue reported on code.google.com by [email protected] on 25 Jan 2011 at 2:10

ctop.xsl missing parens for minus?

What steps will reproduce the problem?
Transform the following content markup:

<math xmlns='http://www.w3.org/1998/Math/MathML'>
<apply>
  <minus/>
  <cn>1</cn>
  <apply>
    <minus/>
    <cn>9</cn>
    <cn>2</cn>
  </apply>
</apply>
</math>

using ctop.xsl

What is the expected output? What do you see instead?
I would have expected to see 1 - (9-2).
Instead I see 1 - 9 - 2. The underlying XML does not contain mo's for parens, 
or mfenced.

What version of the product are you using? On what operating system?
Testing using the latest version of ctop.xsl from this website as of 9/20/11, 
on Ubuntu 11.04, Firefox 6.02.

Please provide any additional information below.
I'm new to MathML in general, and so may be providing bad input, or doing 
something else incorrectly, but I'm seeing lots of other correctly rendered 
transformations, just not things involving precedence and the minus operator. 

Original issue reported on code.google.com by [email protected] on 20 Sep 2011 at 3:11

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.