Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-10

lazde problem with '<' character

8 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Howard Page-Clark

If you attempt to open the lazarus\docs\xml\rtl\system.xml in lazde it chokes on line 9705 pos 31 with an exception:
character '<' not allowed in attribute value

and in the offending line:
<element name="operator <=(variant, variant): Boolean"> it is clear that the 'less-than' operator is causing the problem.

Presumably lazde was not used to create this file? Is there some way to escape characters such as this which have a special meaning to an XML file parser?
If not, should I report this as a bug?

Howard

Reply by email

Alex Shishkin
to Howard Page-Clark

02.10.2011 23:57, Howard Page-Clark ?????:

Show quoted text 22 lines
If you attempt to open the lazarus\docs\xml\rtl\system.xml in lazde it chokes on line 9705 pos 31 with an exception: character '<' not allowed in attribute value and in the offending line: <element name="operator <=(variant, variant): Boolean"> it is clear that the 'less-than' operator is causing the problem. Presumably lazde was not used to create this file? Is there some way to escape characters such as this which have a special meaning to an XML file parser? If not, should I report this as a bug? Howard -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

may be related to http://bugs.freepascal.org/view.php?id=15120

Reply by email

Hans-Peter Diettrich
to Alex Shishkin
Show quoted text 10 lines
02.10.2011 23:57, Howard Page-Clark ?????: > If you attempt to open the lazarus\docs\xml\rtl\system.xml in lazde it > chokes on line 9705 pos 31 with an exception: > character '<' not allowed in attribute value > > and in the offending line: > <element name="operator <=(variant, variant): Boolean"> > it is clear that the 'less-than' operator is causing the problem. may be related to http://bugs.freepascal.org/view.php?id=15120

I just added a note to that one: XML defines escapes for such special characters, similar to HTML syntax. IMO such escapes should be handled in the XML classes, in both reading and writing XML files.

DoDi

Reply by email

Mattias Gaertner
to Howard Page-Clark: If you attempt to open the lazarus\docs\xml\rtl\system.xml in lazde it chokes on line…
If you attempt to open the lazarus\docs\xml\rtl\system.xml in lazde it chokes on line 9705 pos 31 with an exception: character '<' not allowed in attribute value

I fixed the system.xml

Show quoted text 5 lines
and in the offending line: <element name="operator <=(variant, variant): Boolean"> it is clear that the 'less-than' operator is causing the problem. Presumably lazde was not used to create this file?

Maybe an old version of lazde or fpdoc editor was used.

Is there some way to escape characters such as this which have a special meaning to an XML file parser? If not, should I report this as a bug?

Mattias

Reply by email

Howard Page-Clark
to Mattias Gaertner
Mattias Gaertner wrote 8 lines
On Sun, 02 Oct 2011 20:57:20 +0100 Howard Page-Clark wrote: > If you attempt to open the lazarus\docs\xml\rtl\system.xml in lazde it > chokes on line 9705 pos 31 with an exception: > character '<' not allowed in attribute value I fixed the system.xml

Many thanks

Howard

Reply by email

Vincent Snijders
to Mattias Gaertner: On Sun, 02 Oct 2011 20:57:20 +0100 I fixed the system.xml Maybe an old version of lazde…

2011/10/3 Mattias Gaertner :

Show quoted text 8 lines
On Sun, 02 Oct 2011 20:57:20 +0100 Howard Page-Clark wrote: > If you attempt to open the lazarus\docs\xml\rtl\system.xml in lazde it > chokes on line 9705 pos 31 with an exception: > ? ? ? character '<' not allowed in attribute value I fixed the system.xml

Why doe we have these files in the docs\xml\rtl directory? These files shoudl not be in the lazarus repository, but in the fpcdocs repository.

The only exception is for the fcl units, for which the documentation is not yet completer. If it is complete then there is no objection to include it in the fpcdocs repository.

Vincent

Reply by email

Mattias Gaertner
to Vincent Snijders
Show quoted text 13 lines
2011/10/3 Mattias Gaertner : > On Sun, 02 Oct 2011 20:57:20 +0100 > Howard Page-Clark wrote: > >> If you attempt to open the lazarus\docs\xml\rtl\system.xml in lazde it >> chokes on line 9705 pos 31 with an exception: >> ? ? ? character '<' not allowed in attribute value > > I fixed the system.xml Why doe we have these files in the docs\xml\rtl directory? These files shoudl not be in the lazarus repository, but in the fpcdocs repository.

The README.txt says something about "eventually must be sent to FPC as patches".

DoDi?

The only exception is for the fcl units, for which the documentation is not yet completer. If it is complete then there is no objection to include it in the fpcdocs repository.

Mattias

Reply by email

Hans-Peter Diettrich
to Mattias Gaertner
Show quoted text 8 lines
> Why doe we have these files in the docs\xml\rtl directory? These files > shoudl not be in the lazarus repository, but in the fpcdocs > repository. The README.txt says something about "eventually must be sent to FPC as patches". DoDi?

Yes, most probably it was me who copied the FPC docs into the LCL. Now that the FPC docs are more useful, the copies can be removed again.

Another option is the inclusion of the FPC docs into the LCL docs as sub-projects.

DoDi

Reply by email