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.



895
896
897
898
899
900
901
# File 'lib/origami/xfa.rb', line 895

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