class EbayTrading::Types::XSLFile
Attributes¶ ↑
text_node :file_name, 'FileName', :optional => true text_node :file_version, 'FileVersion', :optional => true text_node :file_content, 'FileContent', :optional => true
Public Instance Methods
file_content()
click to toggle source
The content of the XSL stylesheet
# File lib/ebay_trading/types/xsl_file.rb, line 16 def file_content if @file_content @file ||= unpack_stylesheet(@file_content) end end
Private Instance Methods
unpack_stylesheet(base64string)
click to toggle source
# File lib/ebay_trading/types/xsl_file.rb, line 23 def unpack_stylesheet(base64string) stylesheet = base64string.unpack('m').first stylesheet.sub!(/urn:schemas-microsoft-com:xslt/, 'http://exslt.org/common') stylesheet.sub!(/exclude-result-prefixes="x"/, 'exclude-result-prefixes="x xal"') end