On Monday, Jan 13, 2003, at 12:36 Europe/London, Hussein Shafie wrote: > Jeremy Quinn wrote: >> >> Because of the way the work flows in my client's organisation, there >> will be people who need to copy-paste text from applications like M$ >> Word, into XXE. Even when XXE is accepted into the organisation, not >> everybody will be creating their documents from scratch in XXE. >> >> Is there any way I can arrange for the following to happen: >> >> The user has some paragraphs of text in a word processor: >> >> blah blah blah\n >> \n >> blah blah blah ....... wraps ...... >> ....blah blah\n >> \n >> blah blah\n >> blah\n >> \n >> >> they copy this and paste it into XXE and get: >> >> <p>blah blah blah</p> >> <p>blah blah blah ....... wraps ......blah blah </p> >> <p>blah blah<br/><blah></p> >> >> Apart from transforming the text into the XXE Clipboard DTD, before >> copy-pasting, what other way would it be possible to make this work? > > XXE does not know what is a <p>. Therefore there is no way to have a > built-in intelligent behavior which copes with: > >> blah blah blah\n >> \n >> blah blah blah ....... wraps ...... >> ....blah blah\n >> \n >> blah blah\n >> blah\n >> \n > > A custom command (which is specific to your XML-Schema or DTD and which > is declared in a custom XXE configuration file) must be written to > implement this kind of behavior. > > Writing a custom command is explained in > http://www.xmlmind.com/xmleditor/_distrib/docs/dev/ar01s05.html. > > You can download the developer's guide from > http://www.xmlmind.com/xmleditor/download.shtml . (Developer's > documentation is not contained in the distribution.) > >
Thanks, I'll check this out. Maybe it will be generic enough to be worth contributing back to XXE ... regards Jeremy

