Created
May 19, 2009 21:50
-
-
Save mrichman/114446 to your computer and use it in GitHub Desktop.
Adding XSL Processing Instruction with to_xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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