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

Inherits:
Origami::XFA::Element show all
Defined in:
lib/origami/xfa/stylesheet.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.


33
34
35
36
37
38
39
# File 'lib/origami/xfa/stylesheet.rb', line 33

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