Error processing request

Parameters

CONTENT_LENGTH0
REQUEST_METHODGET
REQUEST_URI/revision/Creating+an+OpenOffice+Spreadsheet+in+pure+Tcl?V=5
QUERY_STRINGV=5
CONTENT_TYPE
DOCUMENT_URI/revision/Creating+an+OpenOffice+Spreadsheet+in+pure+Tcl
DOCUMENT_ROOT/var/www/nikit/nikit/nginx/../docroot
SCGI1
SERVER_PROTOCOLHTTP/1.1
HTTPSon
REMOTE_ADDR172.69.58.74
REMOTE_PORT51686
SERVER_PORT4443
SERVER_NAMEwiki.tcl-lang.org
HTTP_HOSTwiki.tcl-lang.org
HTTP_CONNECTIONKeep-Alive
HTTP_ACCEPT_ENCODINGgzip, br
HTTP_X_FORWARDED_FOR3.16.66.206
HTTP_CF_RAY87a93103d828124b-ORD
HTTP_X_FORWARDED_PROTOhttps
HTTP_CF_VISITOR{"scheme":"https"}
HTTP_ACCEPT*/*
HTTP_USER_AGENTMozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])
HTTP_CF_CONNECTING_IP3.16.66.206
HTTP_CDN_LOOPcloudflare
HTTP_CF_IPCOUNTRYUS

Body


Error

Unknow state transition: LINE -> END

-code

1

-level

0

-errorstack

INNER {returnImm {Unknow state transition: LINE -> END} {}} CALL {my render_wikit {Creating an OpenOffice Spreadsheet in pure Tcl} \[SRIV\]\ '''Sept\ 18,2010'''\ This\ is\ a\ quick\ port\ of\ the\ php\ example\ at\ http://www.ibm.com/developerworks/web/library/wa-odf/\ .\nIt's\ not\ a\ generic\ file\ writing\ library,\ but\ instead\ just\ a\ script\ that\ creates\ a\ spreadsheet,\ that\ you\ can\ modify\ and\ enhance\ to\ your\ liking.\ Feel\ free\ to\ add\ enhancements\ and\ break\ out\ the\ functionality,\ perhaps\ using\ TclOO.\n\n======\n#!/usr/bin/env\ tclsh\n\n###########################################\n#\ application\ name:\ odswriter.tcl\n#\ author:\ Steve\ Redler\ IV,\ SR\ Technology\n#\ date:\ Sept\ 18,\ 2010\n#\ function:\ Create\ an\ OpenOffice\ Spreadsheet\ in\ pure\ tcl\n#\n\n\nset\ XML_START\ \{<?xml\ version=\"1.0\"\ encoding=\"UTF-8\"?>\n<office:document-content\ xmlns:office=\"urn:oasis:names:tc:opendocument:xmlns:office:1.0\"\ xmlns:style=\"urn:oasis:names:tc:opendocument:xmlns:style:1.0\"\ xmlns:text=\"urn:oasis:names:tc:opendocument:xmlns:text:1.0\"\ xmlns:table=\"urn:oasis:names:tc:opendocument:xmlns:table:1.0\"\ xmlns:draw=\"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0\"\ xmlns:fo=\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0\"\ xmlns:xlink=\"http://www.w3.org/1999/xlink\"\ xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\ xmlns:meta=\"urn:oasis:names:tc:opendocument:xmlns:meta:1.0\"\ xmlns:number=\"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0\"\ xmlns:presentation=\"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0\"\ xmlns:svg=\"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0\"\ xmlns:chart=\"urn:oasis:names:tc:opendocument:xmlns:chart:1.0\"\ xmlns:dr3d=\"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0\"\ xmlns:math=\"http://www.w3.org/1998/Math/MathML\"\ xmlns:form=\"urn:oasis:names:tc:opendocument:xmlns:form:1.0\"\ xmlns:script=\"urn:oasis:names:tc:opendocument:xmlns:script:1.0\"\ xmlns:ooo=\"http://openoffice.org/2004/office\"\ xmlns:ooow=\"http://openoffice.org/2004/writer\"\ xmlns:oooc=\"http://openoffice.org/2004/calc\"\ xmlns:dom=\"http://www.w3.org/2001/xml-events\"\ xmlns:xforms=\"http://www.w3.org/2002/xforms\"\ xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\ xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\ xmlns:rpt=\"http://openoffice.org/2005/report\"\ xmlns:of=\"urn:oasis:names:tc:opendocument:xmlns:of:1.2\"\ xmlns:xhtml=\"http://www.w3.org/1999/xhtml\"\ xmlns:grddl=\"http://www.w3.org/2003/g/data-view#\"\ xmlns:tableooo=\"http://openoffice.org/2009/table\"\ xmlns:field=\"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0\"\ xmlns:formx=\"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0\"\ office:version=\"1.2\"\ grddl:transformation=\"http://docs.oasis-open.org/office/1.2/xslt/odf2rdf.xsl\">\n<office:scripts/>\n\}\n\nset\ XML_AUTOMATIC_STYLES\ \{<office:automatic-styles>\n\ \ \ \ \ \ \ \ <style:style\ style:name='bbb'\ style:display-name='bbb'\ \n\ \ \ \ \ \ \ \ \ \ \ \ style:family='table-cell'>\n\ \ \ \ \ \ \ \ \ \ \ \ <style:text-properties\ fo:font-weight='bold'\ \n\ \ \ \ \ \ \ \ \ \ \ \ fo:color='#0000ff'\ fo:font-size='15'/>\n\ \ \ \ \ \ \ \ </style:style>\n\ \ \ \ \ \ \ \ <style:style\ style:name='bld'\ \ style:display-name='bld'\ \n\ \ \ \ \ \ \ \ \ \ \ \ style:family='table-cell'>\n\ \ \ \ \ \ \ \ \ \ \ \ <style:text-properties\ fo:font-weight='bold'/>\n\ \ \ \ \ \ \ \ \ \ \ \ <style:table-cell-properties\ fo:background-color='#AEAEAE'/>\n\ \ \ \ \ \ \ \ </style:style>\n\ \ \ \ </office:automatic-styles>\n\}\n\nset\ XML_BODY_START\ \{<office:body>\n<office:spreadsheet>\n<table:table\ table:name=\"Sheet1\"\ table:style-name=\"ta1\"\ table:print=\"false\">\ \ \ \ \ \ \ \ \n\}\n\nset\ MIMETYPE\ \"application/vnd.oasis.opendocument.spreadsheet\"\n\nset\ XML_MANIFEST\ \{<?xml\ version=\"1.0\"\ encoding=\"UTF-8\"?>\n<manifest:manifest\ xmlns:manifest=\"urn:oasis:names:tc:opendocument:xmlns:manifest:1.0\">\n\ <manifest:file-entry\ manifest:media-type=\"application/vnd.oasis.opendocument.spreadsheet\"\ manifest:version=\"1.2\"\ manifest:full-path=\"/\"/>\n\ <manifest:file-entry\ manifest:media-type=\"text/xml\"\ manifest:full-path=\"content.xml\"/>\n</manifest:manifest>\}\n\nset\ XML_ROW_START\ \"<table:table-row>\"\nset\ XML_CELL_START\ \"<table:table-cell><text:p>\"\nset\ XML_CELL_END\ \"</text:p></table:table-cell>\"\nset\ XML_ROW_END\ \"</table:table-row>\"\nset\ XML_END\ \"</table:table></office:spreadsheet></office:body></office:document-content>\"\n\nset\ XML_BBB_CELL_START\ \"<table:table-cell\ table:style-name='bbb'><text:p>\"\nset\ XML_BLD_CELL_START\ \"<table:table-cell\ table:style-name='bld'><text:p>\"\n\n#\ Create\ the\ content.xml\ file\nset\ contents\ \$XML_START\nappend\ contents\ \$XML_AUTOMATIC_STYLES\nappend\ contents\ \$XML_BODY_START\n#\ Add\ a\ big,\ bold,\ blue,\ title,\ and\ an\ empty\ line:\n\nappend\ contents\ \$XML_ROW_START\nappend\ contents\ \$XML_BBB_CELL_START\nappend\ contents\ \"Cities\ whose\ name\ starts\ with\ 'Darwin'\"\nappend\ contents\ \$XML_CELL_END\nappend\ contents\ \$XML_ROW_END\n\nappend\ contents\ \$XML_ROW_START\nappend\ contents\ \$XML_ROW_END\n\n#\ Add\ some\ titles,\ in\ bold:\n\nappend\ contents\ \$XML_ROW_START\nforeach\ title\ \{\"Country\"\ \"\"\ \"Region\"\ \"\"\ \"City\"\ \"Pop\"\ \"Lat\"\ \"Long\"\}\ \{\n\ \ \ \ append\ contents\ \$XML_BLD_CELL_START\n\ \ \ \ append\ contents\ \$title\n\ \ \ \ append\ contents\ \$XML_CELL_END\n\}\nappend\ contents\ \$XML_ROW_END\n\n#\ ...get\ the\ data...\nset\ data\ \{\{AR\ Argentina\ 16\ \{Rio\ Negro\}\ darwin\ \{\}\ -39.200000008\ -65.7666702\}\ \\\n\ \ \ \ \ \ \ \ \ \ \{AU\ Australia\ 03\ \{Nothern\ Territory\}\ darwin\ 93081\ -12.4666672\ 130.8333282\}\ \\\n\ \ \ \ \ \ \ \ \ \{IQ\ Iraq\ 05\ \{As\ Sulaymaniya\}\ darwina\ \{\}\ 36.126667\ 45.2377777\}\}\n\nforeach\ row\ \$data\ \{\n\ \ \ \ append\ contents\ \$XML_ROW_START\n\ \ \ \ foreach\ value\ \$row\ \{\n\ \ \ \ \ \ \ \ append\ contents\ \$XML_CELL_START\n\ \ \ \ \ \ \ \ append\ contents\ \$value\n\ \ \ \ \ \ \ \ append\ contents\ \$XML_CELL_END\n\ \ \ \ \}\n\ \ \ \ append\ contents\ \$XML_ROW_END\n\}\nappend\ contents\ \$XML_END\n\n#\ let\ tempzip\ be\ the\ name\ of\ a\ temporary\ file\n\nfile\ mkdir\ tempzip\nfile\ mkdir\ tempzip/META-INF\nset\ fh\ \[open\ tempzip/META-INF/manifest.xml\ \"CREAT\ WRONLY\ TRUNC\"\]\nputs\ -nonewline\ \$fh\ \$XML_MANIFEST\nclose\ \$fh\n\nset\ fh\ \[open\ tempzip/content.xml\ \"CREAT\ WRONLY\ TRUNC\"\]\nputs\ -nonewline\ \$fh\ \ \$contents\nclose\ \$fh\n\nset\ fh\ \[open\ tempzip/mimetype\ \"CREAT\ WRONLY\ TRUNC\"\]\nputs\ -nonewline\ \$fh\ \$MIMETYPE\nclose\ \$fh\n\ncd\ tempzip\n#\ zip\ creation\ was\ only\ tested\ in\ Linux\ and\ WinXP\n#get\ zip.exe\ from\ http://stahlworks.com/dev/zip.exe\nexec\ \{*\}\{zip\ -mr\ ../tempzip.ods\ mimetype\ META-INF/manifest.xml\ content.xml\}\ncd\ ..\n\nfile\ delete\ -force\ tempzip\n\n======\nRunning\ the\ file\ result\ againsts\ https://odf-validator.rhcloud.com/\ fails\ with\ few\ errors.\ Few\ fixes\ are\ needed.\n======\n\n\n<<categories>>Application\ |\ Office\ Automation regexp2} CALL {my render {Creating an OpenOffice Spreadsheet in pure Tcl} \[SRIV\]\ '''Sept\ 18,2010'''\ This\ is\ a\ quick\ port\ of\ the\ php\ example\ at\ http://www.ibm.com/developerworks/web/library/wa-odf/\ .\nIt's\ not\ a\ generic\ file\ writing\ library,\ but\ instead\ just\ a\ script\ that\ creates\ a\ spreadsheet,\ that\ you\ can\ modify\ and\ enhance\ to\ your\ liking.\ Feel\ free\ to\ add\ enhancements\ and\ break\ out\ the\ functionality,\ perhaps\ using\ TclOO.\n\n======\n#!/usr/bin/env\ tclsh\n\n###########################################\n#\ application\ name:\ odswriter.tcl\n#\ author:\ Steve\ Redler\ IV,\ SR\ Technology\n#\ date:\ Sept\ 18,\ 2010\n#\ function:\ Create\ an\ OpenOffice\ Spreadsheet\ in\ pure\ tcl\n#\n\n\nset\ XML_START\ \{<?xml\ version=\"1.0\"\ encoding=\"UTF-8\"?>\n<office:document-content\ xmlns:office=\"urn:oasis:names:tc:opendocument:xmlns:office:1.0\"\ xmlns:style=\"urn:oasis:names:tc:opendocument:xmlns:style:1.0\"\ xmlns:text=\"urn:oasis:names:tc:opendocument:xmlns:text:1.0\"\ xmlns:table=\"urn:oasis:names:tc:opendocument:xmlns:table:1.0\"\ xmlns:draw=\"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0\"\ xmlns:fo=\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0\"\ xmlns:xlink=\"http://www.w3.org/1999/xlink\"\ xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\ xmlns:meta=\"urn:oasis:names:tc:opendocument:xmlns:meta:1.0\"\ xmlns:number=\"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0\"\ xmlns:presentation=\"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0\"\ xmlns:svg=\"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0\"\ xmlns:chart=\"urn:oasis:names:tc:opendocument:xmlns:chart:1.0\"\ xmlns:dr3d=\"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0\"\ xmlns:math=\"http://www.w3.org/1998/Math/MathML\"\ xmlns:form=\"urn:oasis:names:tc:opendocument:xmlns:form:1.0\"\ xmlns:script=\"urn:oasis:names:tc:opendocument:xmlns:script:1.0\"\ xmlns:ooo=\"http://openoffice.org/2004/office\"\ xmlns:ooow=\"http://openoffice.org/2004/writer\"\ xmlns:oooc=\"http://openoffice.org/2004/calc\"\ xmlns:dom=\"http://www.w3.org/2001/xml-events\"\ xmlns:xforms=\"http://www.w3.org/2002/xforms\"\ xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\ xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\ xmlns:rpt=\"http://openoffice.org/2005/report\"\ xmlns:of=\"urn:oasis:names:tc:opendocument:xmlns:of:1.2\"\ xmlns:xhtml=\"http://www.w3.org/1999/xhtml\"\ xmlns:grddl=\"http://www.w3.org/2003/g/data-view#\"\ xmlns:tableooo=\"http://openoffice.org/2009/table\"\ xmlns:field=\"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0\"\ xmlns:formx=\"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0\"\ office:version=\"1.2\"\ grddl:transformation=\"http://docs.oasis-open.org/office/1.2/xslt/odf2rdf.xsl\">\n<office:scripts/>\n\}\n\nset\ XML_AUTOMATIC_STYLES\ \{<office:automatic-styles>\n\ \ \ \ \ \ \ \ <style:style\ style:name='bbb'\ style:display-name='bbb'\ \n\ \ \ \ \ \ \ \ \ \ \ \ style:family='table-cell'>\n\ \ \ \ \ \ \ \ \ \ \ \ <style:text-properties\ fo:font-weight='bold'\ \n\ \ \ \ \ \ \ \ \ \ \ \ fo:color='#0000ff'\ fo:font-size='15'/>\n\ \ \ \ \ \ \ \ </style:style>\n\ \ \ \ \ \ \ \ <style:style\ style:name='bld'\ \ style:display-name='bld'\ \n\ \ \ \ \ \ \ \ \ \ \ \ style:family='table-cell'>\n\ \ \ \ \ \ \ \ \ \ \ \ <style:text-properties\ fo:font-weight='bold'/>\n\ \ \ \ \ \ \ \ \ \ \ \ <style:table-cell-properties\ fo:background-color='#AEAEAE'/>\n\ \ \ \ \ \ \ \ </style:style>\n\ \ \ \ </office:automatic-styles>\n\}\n\nset\ XML_BODY_START\ \{<office:body>\n<office:spreadsheet>\n<table:table\ table:name=\"Sheet1\"\ table:style-name=\"ta1\"\ table:print=\"false\">\ \ \ \ \ \ \ \ \n\}\n\nset\ MIMETYPE\ \"application/vnd.oasis.opendocument.spreadsheet\"\n\nset\ XML_MANIFEST\ \{<?xml\ version=\"1.0\"\ encoding=\"UTF-8\"?>\n<manifest:manifest\ xmlns:manifest=\"urn:oasis:names:tc:opendocument:xmlns:manifest:1.0\">\n\ <manifest:file-entry\ manifest:media-type=\"application/vnd.oasis.opendocument.spreadsheet\"\ manifest:version=\"1.2\"\ manifest:full-path=\"/\"/>\n\ <manifest:file-entry\ manifest:media-type=\"text/xml\"\ manifest:full-path=\"content.xml\"/>\n</manifest:manifest>\}\n\nset\ XML_ROW_START\ \"<table:table-row>\"\nset\ XML_CELL_START\ \"<table:table-cell><text:p>\"\nset\ XML_CELL_END\ \"</text:p></table:table-cell>\"\nset\ XML_ROW_END\ \"</table:table-row>\"\nset\ XML_END\ \"</table:table></office:spreadsheet></office:body></office:document-content>\"\n\nset\ XML_BBB_CELL_START\ \"<table:table-cell\ table:style-name='bbb'><text:p>\"\nset\ XML_BLD_CELL_START\ \"<table:table-cell\ table:style-name='bld'><text:p>\"\n\n#\ Create\ the\ content.xml\ file\nset\ contents\ \$XML_START\nappend\ contents\ \$XML_AUTOMATIC_STYLES\nappend\ contents\ \$XML_BODY_START\n#\ Add\ a\ big,\ bold,\ blue,\ title,\ and\ an\ empty\ line:\n\nappend\ contents\ \$XML_ROW_START\nappend\ contents\ \$XML_BBB_CELL_START\nappend\ contents\ \"Cities\ whose\ name\ starts\ with\ 'Darwin'\"\nappend\ contents\ \$XML_CELL_END\nappend\ contents\ \$XML_ROW_END\n\nappend\ contents\ \$XML_ROW_START\nappend\ contents\ \$XML_ROW_END\n\n#\ Add\ some\ titles,\ in\ bold:\n\nappend\ contents\ \$XML_ROW_START\nforeach\ title\ \{\"Country\"\ \"\"\ \"Region\"\ \"\"\ \"City\"\ \"Pop\"\ \"Lat\"\ \"Long\"\}\ \{\n\ \ \ \ append\ contents\ \$XML_BLD_CELL_START\n\ \ \ \ append\ contents\ \$title\n\ \ \ \ append\ contents\ \$XML_CELL_END\n\}\nappend\ contents\ \$XML_ROW_END\n\n#\ ...get\ the\ data...\nset\ data\ \{\{AR\ Argentina\ 16\ \{Rio\ Negro\}\ darwin\ \{\}\ -39.200000008\ -65.7666702\}\ \\\n\ \ \ \ \ \ \ \ \ \ \{AU\ Australia\ 03\ \{Nothern\ Territory\}\ darwin\ 93081\ -12.4666672\ 130.8333282\}\ \\\n\ \ \ \ \ \ \ \ \ \{IQ\ Iraq\ 05\ \{As\ Sulaymaniya\}\ darwina\ \{\}\ 36.126667\ 45.2377777\}\}\n\nforeach\ row\ \$data\ \{\n\ \ \ \ append\ contents\ \$XML_ROW_START\n\ \ \ \ foreach\ value\ \$row\ \{\n\ \ \ \ \ \ \ \ append\ contents\ \$XML_CELL_START\n\ \ \ \ \ \ \ \ append\ contents\ \$value\n\ \ \ \ \ \ \ \ append\ contents\ \$XML_CELL_END\n\ \ \ \ \}\n\ \ \ \ append\ contents\ \$XML_ROW_END\n\}\nappend\ contents\ \$XML_END\n\n#\ let\ tempzip\ be\ the\ name\ of\ a\ temporary\ file\n\nfile\ mkdir\ tempzip\nfile\ mkdir\ tempzip/META-INF\nset\ fh\ \[open\ tempzip/META-INF/manifest.xml\ \"CREAT\ WRONLY\ TRUNC\"\]\nputs\ -nonewline\ \$fh\ \$XML_MANIFEST\nclose\ \$fh\n\nset\ fh\ \[open\ tempzip/content.xml\ \"CREAT\ WRONLY\ TRUNC\"\]\nputs\ -nonewline\ \$fh\ \ \$contents\nclose\ \$fh\n\nset\ fh\ \[open\ tempzip/mimetype\ \"CREAT\ WRONLY\ TRUNC\"\]\nputs\ -nonewline\ \$fh\ \$MIMETYPE\nclose\ \$fh\n\ncd\ tempzip\n#\ zip\ creation\ was\ only\ tested\ in\ Linux\ and\ WinXP\n#get\ zip.exe\ from\ http://stahlworks.com/dev/zip.exe\nexec\ \{*\}\{zip\ -mr\ ../tempzip.ods\ mimetype\ META-INF/manifest.xml\ content.xml\}\ncd\ ..\n\nfile\ delete\ -force\ tempzip\n\n======\nRunning\ the\ file\ result\ againsts\ https://odf-validator.rhcloud.com/\ fails\ with\ few\ errors.\ Few\ fixes\ are\ needed.\n======\n\n\n<<categories>>Application\ |\ Office\ Automation} CALL {my revision {Creating an OpenOffice Spreadsheet in pure Tcl}} CALL {::oo::Obj1890022 process revision/Creating+an+OpenOffice+Spreadsheet+in+pure+Tcl} CALL {::oo::Obj1890020 process}

-errorcode

NONE

-errorinfo

Unknow state transition: LINE -> END
    while executing
"error $msg"
    (class "::Wiki" method "render_wikit" line 6)
    invoked from within
"my render_$default_markup $N $C $mkup_rendering_engine"
    (class "::Wiki" method "render" line 8)
    invoked from within
"my render $name $C"
    (class "::Wiki" method "revision" line 31)
    invoked from within
"my revision $page"
    (class "::Wiki" method "process" line 56)
    invoked from within
"$server process [string trim $uri /]"

-errorline

4