Sha256: 448665a262b2800c18a58eeaac9512032d6491aa457fe5c0bf187899b3dee797

Contents?: true

Size: 792 Bytes

Versions: 11

Compression:

Stored size: 792 Bytes

Contents

module Nokogiri
  module XSLT
    ###
    # A Stylesheet represents an XSLT Stylesheet object.  Stylesheet creation
    # is done through Nokogiri.XSLT.  Here is an example of transforming
    # an XML::Document with a Stylesheet:
    #
    #   doc   = Nokogiri::XML(File.read('some_file.xml'))
    #   xslt  = Nokogir::XSLT(File.read('some_transformer.xslt'))
    #
    #   puts xslt.transform(doc)
    #
    # See Nokogiri::XSLT::Stylesheet#transform for more transformation
    # information.
    class Stylesheet
      ###
      # Apply an XSLT stylesheet to an XML::Document.
      # +params+ is an array of strings used as XSLT parameters.
      # returns serialized document
      def apply_to document, params = []
        transform(document, params).to_s
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 5 rubygems

Version Path
rubyjedi-nokogiri_java-1.4.0.20100513161003-java lib/nokogiri/xslt/stylesheet.rb
revo-nokogiri-1.4.1-java lib/nokogiri/xslt/stylesheet.rb
revo-nokogiri-1.4.0.3-java lib/nokogiri/xslt/stylesheet.rb
revo-nokogiri-1.4.0-java lib/nokogiri/xslt/stylesheet.rb
revo-nokogiri-1.4.0.20100202165440-java lib/nokogiri/xslt/stylesheet.rb
superfeedr-nokogiri-1.4.0.20091116183308 lib/nokogiri/xslt/stylesheet.rb
caring-nokogiri-1.4.1.pre1 lib/nokogiri/xslt/stylesheet.rb
nokogiri-1.4.0-java lib/nokogiri/xslt/stylesheet.rb
nokogiri-1.4.0-x86-mswin32 lib/nokogiri/xslt/stylesheet.rb
nokogiri-1.4.0-x86-mingw32 lib/nokogiri/xslt/stylesheet.rb
nokogiri-1.4.0 lib/nokogiri/xslt/stylesheet.rb