- From: Wolfgang Jeltsch <wolfgang@jeltsch.net>
- Date: Wed, 28 Jun 2006 21:10:00 +0200
- To: www-amaya@w3.org
Am Freitag, 23. Juni 2006 15:18 schrieb Irene Vatton: > On Wednesday 21 June 2006 23:43, Wolfgang Jeltsch wrote: > > Hello, > > > > the document on > > > > http://www.badgers-in-foil.co.uk/projects/docbook-css/cvsspam-doc.xml > > > > is a DocBook document which uses some cool CSS stylesheet for DocBook. > > However, when displayed in Amaya, one can see that Amaya doesn't seem to > > handle preformatted text as such. The document is correctly displayed in > > Mozilla Firefox 1.0.4. > > It would be managed correctly if XML elements have a XML attribute > xml-space="preserve". The preserve constraint concerns the document contents > (spaces should be still preserved when the document is saved after an edit). > CSS concerns only its current presentation. Thank you for pointing this out. However, I experienced that Amaya killed all newlines in preformatted text upon saving the file. To reproduce this, please first create a file with the following content (preferably without the linebreaks and the indentation in the processing instruction): <?xml version="1.0"?> <?xml-stylesheet href="http://www.badgers-in-foil.co.uk/projects/docbook-css/driver.css" type="text/css"?> <article> </article> Then open this file in Amaya. Now create a programlisting element.*) Set xml:space to preserve. Enter some text containing line breaks. If you save the file, you can see that they don't occur in the file. > [...] Best wishes, Wolfgang ____________________ *) In order to do this, you probably first have to enter some character and delete it afterwards since Amaya seems to be unable to create an element otherwise. This should maybe be changed. In addition, it would be good if the element types would appear strictly alphabetically ordered in the XML Element type widget.
Received on Wednesday, 28 June 2006 19:10:15 UTC