Am 14.02.2019 um 09:19 schrieb Hussein Shafie:
On 02/13/2019 08:56 PM, Gerd Wagner wrote:
When I set xml:space to "preserve" for a triple space character sequence
(" ") in an ebook HTML division

This is somewhat unusual.

I need this for explaining the distinction between a valid string and a valid name (or non-empty string).

and then generate HTML

I would say that you must additionally specify CSS property "white-space: pre;" for this kind of div. I mean, xml:space="preserve" alone is not sufficient.

It would probably be good, if you would add the required CSS styling for this to your "ebook.css".

I've added

   *[xml\:space="preserve"] {white-space:pre;}

to my local "ebook.css" and it works fine for the generated HTML, at least.

Notice that this is treating the namespace-qualified attribute "xml:space" as an HTML extension attribute. When the ebook division files are served as XHTML, then

   |@namespace xml "http://www.w3.org/XML/1998/namespace";;|
   *[xml|space="preserve"] {white-space:pre;}

would be correct.

-Gerd

--

Dr. Gerd Wagner
(1) Professor, Brandenburg University of Technology, Germany
(2) Adjunct Associate Professor, Old Dominion University, USA
Email: g.wag...@b-tu.de  Tel: (+49|0) 355.69.2397
Web: http://oxygen.informatik.tu-cottbus.de/IT

--
(1) Chair of Internet Technology
Brandenburg University of Technology
Cottbus, Germany
--
(2) Department Modeling, Simulation
and Visualization Engineering
Old Dominion University
Norfolk, VA, USA

--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to