Writing .leo files with a leo namespace

0 views
Skip to first unread message

Edward K. Ream

unread,
Oct 6, 2008, 7:25:17 AM10/6/08
to leo-editor
A long time ago, but not in a galaxy far away, Kent asked that Leo use
xml namespaces in Leo elements. Now that Leo uses a sax parser, this
should be feasible: although the file format is different, nobody
except the parser will notice.

I shall do this in a separate branch to minimize damage if there are
unexpected problems.

My plan is to include the namespace declaration in the leo_file
element:

Instead of writing: <leo_file>, Leo will write:

<leo_file xmlns:leo="http://edreamleo.org/namespaces/leo-editor/1.1">

and Leo will prefix all xml element names with "leo:". Does this seem
reasonable to the xml gurus out there?

Edward

P.S. Imo, the potential for confusion of the url above with any other
namespace in the galaxy is minuscule. I shall not waste money by
registering it.

EKR
Reply all
Reply to author
Forward
0 new messages