elixlsx v0.0.2 Elixlsx.XMLTemplates
Summary
Functions
Returns the XML content for single sheet
Return the data for /xl/workbook.xml
get the content of the styles.xml file. the WorkbookCompInfo struct must be computed before calling this, (especially CellStyleDB.register_all)
There are 5 characters that should be escaped in XML (<,>,",',&), but only 2 of them must be escaped. Saves a couple of CPU cycles, for the environment
Escape characters for embedding in XML documents
Functions
Specs
make_sheet(Sheet.t, WorkbookCompInfo.t) :: String.t
Returns the XML content for single sheet.
Specs
make_xl_rel_sheet(Elixlsx.Compiler.SheetCompInfo.t) :: String.t
Specs
make_xl_rel_sheets([Elixlsx.Compiler.SheetCompInfo.t, ...]) :: String.t
Specs
make_xl_styles(WorkbookCompInfo.t) :: String.t
get the content of the styles.xml file. the WorkbookCompInfo struct must be computed before calling this, (especially CellStyleDB.register_all)
Specs
make_xl_workbook_xml_sheet_entry({Sheet.t, Elixlsx.Compiler.SheetCompInfo.t}) :: String.t
There are 5 characters that should be escaped in XML (<,>,",',&), but only 2 of them must be escaped. Saves a couple of CPU cycles, for the environment.
Example
iex> Elixlsx.XMLTemplates.minimal_xml_text_escape "Only '&' and '<' are escaped here, '\"' & '>' & \"'\" are not."
"Only '&' and '<' are escaped here, '\"' & '>' & \"'\" are not."