summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2013-05-14 18:17:42 +0100
committerRandy Morgan <[email protected]>2013-05-14 18:17:42 +0100
commit7caf2ea9dfe92fa418f40132ea3c94d3da109f2c (patch)
tree6ace66d468a3e85c72f6c43eff6027aa82a34d7d /lib
parentdc9e0523fb92f67002bc474f28f47e7255c33d3c (diff)
downloadcaxlsx-7caf2ea9dfe92fa418f40132ea3c94d3da109f2c.tar.gz
caxlsx-7caf2ea9dfe92fa418f40132ea3c94d3da109f2c.zip
correct shared strings table xml:space attribute parsing and schema
Diffstat (limited to 'lib')
-rw-r--r--lib/axlsx/workbook/shared_strings_table.rb2
-rw-r--r--lib/schema/sml.xsd1
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/axlsx/workbook/shared_strings_table.rb b/lib/axlsx/workbook/shared_strings_table.rb
index f1bee3ae..7c08205e 100644
--- a/lib/axlsx/workbook/shared_strings_table.rb
+++ b/lib/axlsx/workbook/shared_strings_table.rb
@@ -49,7 +49,7 @@ module Axlsx
def to_xml_string(str='')
str << '<?xml version="1.0" encoding="UTF-8"?><sst xmlns="' << XML_NS << '"'
str << ' count="' << @count.to_s << '" uniqueCount="' << unique_count.to_s << '"'
- str << 'xml:space="' << xml_space.to_s << '>' << @shared_xml_string << '</sst>'
+ str << ' xml:space="' << xml_space.to_s << '">' << @shared_xml_string << '</sst>'
end
private
diff --git a/lib/schema/sml.xsd b/lib/schema/sml.xsd
index f3994e0a..3a67d0f2 100644
--- a/lib/schema/sml.xsd
+++ b/lib/schema/sml.xsd
@@ -1799,6 +1799,7 @@
</xsd:sequence>
<xsd:attribute name="count" type="xsd:unsignedInt" use="optional"/>
<xsd:attribute name="uniqueCount" type="xsd:unsignedInt" use="optional"/>
+ <xsd:attribute ref="xml:space"/>
</xsd:complexType>
<xsd:simpleType name="ST_PhoneticType">
<xsd:restriction base="xsd:string">