Wednesday, June 13, 2007, 10:05:41 AM, Hussein Shafie wrote: > Not an issue.
(Are you sure? Note that it's not up to you to decide. Something is an issue if the users has problem with it.) > XXE is free to *visually* render newline characters in > whitespace preserving elements (such as XHTML pre or DocBook > programlisting) as it wants. If XXE does it like that only because it's free to do that (while other tools don't do that -- or do they?), then are you saying that XXE is not meant to be used with XML that originally wasn't created with XXE? > Daniel Dekany wrote: >> I'm confused... If I have something like this in an already existing >> XML document (not produced with XXE): >> >> <pre> >> x.times do >> puts "Hello World!" >> end >> </pre> >> >> or the same with programlisting element in the case of DocBook, then >> in XXE displays an empty line at the beginning of the program listing. >> The avoid that, you have to write: >> >> <pre>x.times do >> puts "Hello World!" >> end >> </pre> >> >> Also, the linebreak before the </pre> causes the XXE to show an >> "enter" symbol (but no empty line luckily). So, for the things to look >> good in XXE the XML have to contain: >> >> <pre>x.times do >> puts "Hello World!" >> end</pre> >> >> Logical, but looks strange... I mean, I haven't seen many people doing >> this. What are the statements in the "standards" that dictate this >> behavior of XXE? Is this the correct behavior at all? (Surely I'm >> lame, but I couldn't find anything related to this topic with Google.) -- Best regards, Daniel Dekany

