You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Alex Harui <ah...@adobe.com> on 2014/10/06 20:28:32 UTC

[FALCON] MXML Parsing Issue

Gordon, Darrell,

I was porting the FlexStore example to FlexJS and made some mistakes that
I think the compiler should have caught.  The file is posted below.  Note
the extra ³>² on the line above the fx:Script block, and another extra
³/>² after the closing basic:Image tag at the end.

The compiler did not report an error.  Instead, it treated each mistake as
a String entry in the default property (in this case mxmlContent).  In my
poking around, it looks like each MXML file is visited twice: Once by some
RawMXMLTokenizer which breaks the MXML file into tokens, and again by
MXMLTreeBuilder.  The RawMXMLTokenizer did not return a token for ³>².
Instead it included the ³>² in a TEXT block that included everything
between the closing of the style token on the line above and the fx:Script
token.  I don¹t know how to fix the tokenizers, but shouldn¹t it have
returned a token for ³>²?  I didn¹t keep going to see what it for the ³/>²
but I would guess the same.

Thoughts on how to fix this?

Thanks,
-Alex

---------
<basic:VContainer xmlns:fx="http://ns.adobe.com/mxml/2009"
                  xmlns:basic="library://ns.apache.org/flexjs/basic"
                  xmlns:mx="library://ns.adobe.com/flex/mx" width="17"
height="100%" >
    <basic:style>
        <basic:SimpleCSSStyles paddingTop="10" horizontalAlign="center" />
    </basic:style>
        >
    <fx:Script>
        <![CDATA[
           [Bindable]
           public var gripTip:String;
           
           [Bindable]
           public var gripIcon:String;
        ]]>
    </fx:Script>

    <basic:Image source="{gripIcon}" />
    <basic:Image source="assets/grip.png" >
        <basic:beads>
            <basic:ToolTipBead toolTip="{gripTip}" />
        </basic:beads>
    </basic:Image> />
    
</basic:VContainer>




Re: [FALCON] MXML Parsing Issue

Posted by Tom Chiverton <tc...@extravision.com>.
I do :-)

     <basic:style>
         <basic:SimpleCSSStyles paddingTop="10" horizontalAlign="center" />
     </basic:style>
         *>*
     <fx:Script>
         <![CDATA[

Tom

On 09/10/14 15:20, Gordon Smith wrote:
> </basic:style>
>   <fx:Script>
>
> I don't see anything but whitespace between these.
>
> - Gordon
>
>> On Oct 6, 2014, at 11:29 AM, "Alex Harui" <ah...@adobe.com> wrote:
>>
>> </basic:style>
>>     <fx:Script>
> ______________________________________________________________________
> This email has been scanned by the Symantec Email Security.cloud service.
> For more information please visit http://www.symanteccloud.com
> ______________________________________________________________________
>


Re: [FALCON] MXML Parsing Issue

Posted by Gordon Smith <gs...@hotmail.com>.
</basic:style>
 <fx:Script>

I don't see anything but whitespace between these.

- Gordon

> On Oct 6, 2014, at 11:29 AM, "Alex Harui" <ah...@adobe.com> wrote:
> 
> </basic:style>
>    <fx:Script>