We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This ruby:
require "nokogiri" xsl = Nokogiri::XSLT('<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"></xsl:stylesheet>') xsl.apply_to(Nokogiri::HTML("").css("body"))
This result:
/Users/arthur/.rvm/gems/ruby-1.9.2-p0/gems/nokogiri-1.4.4/lib/nokogiri/xslt/stylesheet.rb:21: [BUG] Segmentation fault ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0] -- control frame ---------- c:0005 p:---- s:0019 b:0019 l:000018 d:000018 CFUNC :transform c:0004 p:0020 s:0014 b:0013 l:000012 d:000012 METHOD /Users/arthur/.rvm/gems/ruby-1.9.2-p0/gems/nokogiri-1.4.4/lib/nokogiri/xslt/stylesheet.rb:21 c:0003 p:0067 s:0008 b:0007 l:001598 d:001130 EVAL untitled:4 c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH c:0001 p:0000 s:0002 b:0002 l:001598 d:001598 TOP --------------------------- -- Ruby level backtrace information ---------------------------------------- untitled:4:in `<main>' /Users/arthur/.rvm/gems/ruby-1.9.2-p0/gems/nokogiri-1.4.4/lib/nokogiri/xslt/stylesheet.rb:21:in `apply_to' /Users/arthur/.rvm/gems/ruby-1.9.2-p0/gems/nokogiri-1.4.4/lib/nokogiri/xslt/stylesheet.rb:21:in `transform' -- C level backtrace information ------------------------------------------- [NOTE] You may have encountered a bug in the Ruby interpreter or extension libraries. Bug reports are welcome. For details: http://www.ruby-lang.org/bugreport.html
Tested on ruby 1.9.2 with both nokokiri 1.4.4 and 1.5.0.beta.4
The text was updated successfully, but these errors were encountered:
I hesitate to even ask, but what would do you expect the result to be? Application to the serialized form of the nodeset?
Sorry, something went wrong.
@flavorjones: well to not segfault for a start. Even if no one should ever want to do this, the segfault may point to a bigger underlying bug.
What I was trying to do was to get a subset of my html (stuff within the body tag) styled nicely. To go from:
"<div><p>one</p><p>two</p></div>"
to:
"<div> <p>one</p> <p>two</p> </div>"
a0905d3
XSLT::Stylesheet#transform no longer segfaults when handed a non-XML:…
99647d6
…:Document. Closes sparklemotion#452
FFI port of a0905d3 for #452.
d76926a
No branches or pull requests
This ruby:
This result:
Tested on ruby 1.9.2 with both nokokiri 1.4.4 and 1.5.0.beta.4
The text was updated successfully, but these errors were encountered: