Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ant-dev] The mysteries of PlantyContentOutlinePage.fixTagLocations(XmlElement, String)


There are two bug reports that we are attempting to fix:
XMLElements from external entities have incorrect selection in AntEditor
        http://bugs.eclipse.org/bugs/show_bug.cgi?id=30836
PlantyException on opening ant script
        http://bugs.eclipse.org/bugs/show_bug.cgi?id=31439

I was working on 30836.

My questions:
        how did you come up with the fixes that occur in the fixTagLocations method?

        the code in fixTagLocations seems to preclude it working for external entities (specifically the assumption that all elements begin with '<')
        We have added elements to represent external entities (for example "&common;"), and the fixing that occurs for the tag locations is incorrect.

Thanks in advance
Darins


Alf.Schiefelbein@xxxxxxxx
Sent by: platform-ant-dev-admin@xxxxxxxxxxx

02/10/03 11:18 AM
Please respond to platform-ant-dev

       
        To:        platform-ant-dev@xxxxxxxxxxx
        cc:        
        Subject:        Re: [platform-ant-dev] The mysteries of PlantyContentOutlinePage.fixTagLocations(XmlElement, String)



Unless somebody else created it after contribution (I doubt that ;-),
the code is the only documentation.

I tried to add some comments on that issue in the code. Though I might give
you some more infos on that if you tell me more about what you don't
understand.

Alf

---------------
> Hey all,
>
> We are looking for input on how
> PlantyContentOutlinePage.fixTagLocations(XmlElement, String) was created.

>
> The algorithm for what this is attempting to do eluded me over the
weekend.
> Is there some documentation on the positions that the Xerces parse
provides and
> the resulting manipulations occurring in fixTagLocations?
>
> I / we are experiencing troubles with some of the assumptions that the
code is
> making with respect to the elements within the document (the code doesn't
seem
> to handle external entities)
>
> Thanks in advance
> Darins
>
>

_______________________________________________
platform-ant-dev mailing list
platform-ant-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-ant-dev



Back to the top