Class: Origami::XDP::Packet::StyleSheet
- Inherits:
-
Origami::XFA::Element
- Object
- REXML::Element
- Origami::XFA::Element
- Origami::XDP::Packet::StyleSheet
- Defined in:
- lib/origami/xfa.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.
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 |