Class: Origami::XDP::Packet::StyleSheet

Inherits:
Origami::XFA::Element show all
Defined in:
lib/origami/xfa.rb

Overview

The stylesheet packet encloses a single XSLT stylesheet.

Instance Method Summary collapse

Methods included from Origami::XFA

included

Constructor Details

#initialize(id) ⇒ StyleSheet

Returns a new instance of StyleSheet.



892
893
894
895
896
897
898
# File 'lib/origami/xfa.rb', line 892

def initialize(id)
  super("xsl:stylesheet")

  add_attribute 'version', '1.0'
  add_attribute 'xmlns:xsl', 'http://www.w3.org/1999/XSL/Transform'
  add_attribute 'id', id.to_s
end