Skip to content

Instantly share code, notes, and snippets.

@mrichman
Created May 19, 2009 21:50
Show Gist options
  • Save mrichman/114446 to your computer and use it in GitHub Desktop.
Save mrichman/114446 to your computer and use it in GitHub Desktop.
Adding XSL Processing Instruction with to_xml
proc = Proc.new { |options| options[:builder].instruct!(:xml-stylesheet, type=>'text/xsl', :href=>'something.xsl') }
@foo.to_xml :procs => [proc]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment