Class: Origami::XDP::Packet::StyleSheet
- Inherits:
-
Origami::XFA::Element
- Object
- REXML::Element
- Origami::XFA::Element
- Origami::XDP::Packet::StyleSheet
- Defined in:
- lib/origami/xfa/stylesheet.rb
Overview
The stylesheet packet encloses a single XSLT stylesheet.
Instance Method Summary collapse
-
#initialize(id) ⇒ StyleSheet
constructor
A new instance of StyleSheet.
Methods included from Origami::XFA
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 |