[email protected] schrieb:
Hi Lenya users and devs,
ATM the source editor removes namespace declarations from the document
source. I'd like to change this behaviour and make the document
editable in its original form for the following reasons:
Does it mean that ervery tag has the form <ns:tag> ?
It would show the document content exactly as it is stored on the
server. For each non-default namespace, the tags would contain the
namespace prefix. But if your documents mainly use a particular
namespace (e.g., the XHTML namespace), you can use this one as the
default namespace so that prefixes are not necessary.
[…]
BTW, in my sandbox I have added some JavaScript code which allows to
jump to the corresponding location when clicking on a validation error
message (not perfect yet, but I think this could be helpful). This
only works if the document is shown in its original form.
Great !!!
Yesterday I had a corse for new lenya2 users. Locating the errors in the
oneform editor without line numbers was very hard for the participants.
Is it possible to make the behaviour of the editor configurable ?
The change would be quite fundamental, and I guess that making it
configurable would add quite a lot of complexity. Maybe you could try
the patch to see what editing with namespaces enabled looks like. I'm
not sure if the patch is working with the latest trunk, but I can
provide an updated one if you're interested.
-- Andreas
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]