Skip to content
New issue

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

Tobi Reif XSLT Syntax Error -> Segmentation Fault #32

Closed
tobireif opened this issue May 3, 2009 · 4 comments
Closed

Tobi Reif XSLT Syntax Error -> Segmentation Fault #32

tobireif opened this issue May 3, 2009 · 4 comments

Comments

@tobireif
Copy link

tobireif commented May 3, 2009

With an XSLT stylesheet that's not well-formed, this result_doc = xslt.transform(doc) brings a segfault (at least in this specific case).

Is there a way to attach a file? For now, it's here:
http://nokogiri.lighthouseapp.com/attachments/116557/noko.rb

@flavorjones
Copy link
Member

Tobi,

Lighthouse looks like it's currently down. Would it be possible for you to create a gist with that doc?

Also, can you say which version of Nokogiri you're running?

Thanks,
-mike

@tobireif
Copy link
Author

tobireif commented May 4, 2009

@flavorjones
Copy link
Member

Reproduced with your script. Will investigate.

@flavorjones
Copy link
Member

Fixed in master on Github. Will be in 1.3.

With that version, the output of Nokogiri looks like:

./lib/nokogiri/xslt.rb:25:in `parse_stylesheet_doc': compilation error: element for-each (RuntimeError)
from ./lib/nokogiri/xslt.rb:25:in `parse'
from /home/mike/foo.rb:23:in `xpath_values'
from /home/mike/foo.rb:31

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants