<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 24: XML continuation parsed incorrectly</title><link href="https://sourceforge.net/p/millscript/bugs/24/" rel="alternate"/><link href="https://sourceforge.net/p/millscript/bugs/24/feed.atom" rel="self"/><id>https://sourceforge.net/p/millscript/bugs/24/</id><updated>2006-04-04T14:40:48Z</updated><subtitle>Recent changes to 24: XML continuation parsed incorrectly</subtitle><entry><title>XML continuation parsed incorrectly</title><link href="https://sourceforge.net/p/millscript/bugs/24/" rel="alternate"/><published>2006-04-04T14:40:48Z</published><updated>2006-04-04T14:40:48Z</updated><author><name>Kevin Rogers</name><uri>https://sourceforge.net/u/moya/</uri></author><id>https://sourceforge.netf301ef222220e585c46f57407a99fe9446b4cd3c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;The XML tokenising bodge that allows a sequence of &lt;br /&gt;
XML elements and comments to occur without commas &lt;br /&gt;
doesn't parse expressions properly. In particular it &lt;br /&gt;
doesn't respect the postfix tokens, e.g. the &lt;br /&gt;
following: &lt;/p&gt;
&lt;p&gt;&amp;lt;br /&amp;gt;&amp;lt;!-- hello --&amp;gt;.format();&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;causes an odd error regarding the format function, &lt;br /&gt;
which states the following: &lt;/p&gt;
&lt;p&gt;MISHAP : Cannot format object &lt;br /&gt;
BECAUSE : Only Strings and XML comments can be &lt;br /&gt;
formatted &lt;br /&gt;
OBJECT : &amp;lt;br/&amp;gt; &lt;br /&gt;
ORIGIN : origin &lt;br /&gt;
LINE NO. : 1 &lt;br /&gt;
PHASE : Evaluation &lt;/p&gt;
&lt;p&gt;However, the format function is written correctly, &lt;br /&gt;
except the XML tokenising bodge joins the BR tag and &lt;br /&gt;
the XML comment using a CommaExpr, which then becomes &lt;br /&gt;
the first argument to the format function. &lt;/p&gt;
&lt;p&gt;The correct behaviour is that the ApplyExpr for the &lt;br /&gt;
format function should be joined to the BR tag using &lt;br /&gt;
a CommaExpr - but this would actually be an error as &lt;br /&gt;
a comma is required to join XML to non-XML. &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>